upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
879 B
48 lines
879 B
12 years ago
|
/*
|
||
|
* Copyright (C) 2013 Gabor Juhos <juhosg@openwrt.org>
|
||
|
*
|
||
12 years ago
|
* SPDX-License-Identifier: GPL-2.0
|
||
12 years ago
|
*/
|
||
|
|
||
|
#include <common.h>
|
||
12 years ago
|
#include <netdev.h>
|
||
12 years ago
|
|
||
12 years ago
|
#include <asm/addrspace.h>
|
||
12 years ago
|
#include <asm/io.h>
|
||
|
#include <asm/malta.h>
|
||
12 years ago
|
#include <pci_gt64120.h>
|
||
12 years ago
|
|
||
12 years ago
|
phys_size_t initdram(int board_type)
|
||
|
{
|
||
|
return CONFIG_SYS_MEM_SIZE;
|
||
|
}
|
||
|
|
||
|
int checkboard(void)
|
||
|
{
|
||
|
puts("Board: MIPS Malta CoreLV (Qemu)\n");
|
||
|
return 0;
|
||
|
}
|
||
12 years ago
|
|
||
12 years ago
|
int board_eth_init(bd_t *bis)
|
||
|
{
|
||
|
return pci_eth_init(bis);
|
||
|
}
|
||
|
|
||
12 years ago
|
void _machine_restart(void)
|
||
|
{
|
||
|
void __iomem *reset_base;
|
||
|
|
||
|
reset_base = (void __iomem *)CKSEG1ADDR(MALTA_RESET_BASE);
|
||
|
__raw_writel(GORESET, reset_base);
|
||
|
}
|
||
12 years ago
|
|
||
|
void pci_init_board(void)
|
||
|
{
|
||
|
set_io_port_base(CKSEG1ADDR(MALTA_IO_PORT_BASE));
|
||
|
|
||
|
gt64120_pci_init((void *)CKSEG1ADDR(MALTA_GT_BASE),
|
||
|
0x00000000, 0x00000000, CONFIG_SYS_MEM_SIZE,
|
||
|
0x10000000, 0x10000000, 128 * 1024 * 1024,
|
||
|
0x00000000, 0x00000000, 0x20000);
|
||
|
}
|