diff options
author | Joel Stanley <joel@jms.id.au> | 2016-07-13 16:39:06 +0930 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2016-07-27 15:44:02 +0930 |
commit | f9b2a49f57c153c7358f9769234c0cefdf4de8d4 (patch) | |
tree | 4b8c68ec844541a8d065211330900bb5c226d428 /board/aspeed/ast-g5 | |
parent | 784c705b79b08b3c2c599766ea97ce7de3b32423 (diff) | |
download | blackbird-obmc-uboot-f9b2a49f57c153c7358f9769234c0cefdf4de8d4.tar.gz blackbird-obmc-uboot-f9b2a49f57c153c7358f9769234c0cefdf4de8d4.zip |
board/aspeed: Add ast-g5 board
This adds a Aspeed fifth generation board with defconfigs for a system
with NCSI and with a directly attached PHY configuration.
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'board/aspeed/ast-g5')
-rw-r--r-- | board/aspeed/ast-g5/Kconfig | 22 | ||||
-rw-r--r-- | board/aspeed/ast-g5/Makefile | 1 | ||||
-rw-r--r-- | board/aspeed/ast-g5/ast-g5.c | 48 |
3 files changed, 71 insertions, 0 deletions
diff --git a/board/aspeed/ast-g5/Kconfig b/board/aspeed/ast-g5/Kconfig new file mode 100644 index 0000000000..9bd3e7de49 --- /dev/null +++ b/board/aspeed/ast-g5/Kconfig @@ -0,0 +1,22 @@ +if TARGET_AST_G5 + +config SYS_ARCH + default "arm" + +config SYS_CPU + default "arm1176" + +config SYS_BOARD + default "ast-g5" + +config SYS_VENDOR + default "aspeed" + +config SYS_SOC + default "aspeed" + +config SYS_CONFIG_NAME + default "ast-g5-phy" if ASPEED_NET_PHY + default "ast-g5-ncsi" if ASPEED_NET_NCSI + +endif diff --git a/board/aspeed/ast-g5/Makefile b/board/aspeed/ast-g5/Makefile new file mode 100644 index 0000000000..d1d7f8525e --- /dev/null +++ b/board/aspeed/ast-g5/Makefile @@ -0,0 +1 @@ +obj-y = ast-g5.o diff --git a/board/aspeed/ast-g5/ast-g5.c b/board/aspeed/ast-g5/ast-g5.c new file mode 100644 index 0000000000..da79d7b79a --- /dev/null +++ b/board/aspeed/ast-g5/ast-g5.c @@ -0,0 +1,48 @@ +/* + * Copyright 2016 IBM Corporation + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version + * 2 of the License, or (at your option) any later version. + */ + +#include <common.h> +#include <netdev.h> + +#include <asm/arch/ast_scu.h> +#include <asm/arch/ast-sdmc.h> +#include <asm/io.h> + +DECLARE_GLOBAL_DATA_PTR; + +int board_init(void) +{ + gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; + gd->flags = 0; + + return 0; +} + +int dram_init(void) +{ + u32 vga = ast_scu_get_vga_memsize(); + u32 dram = ast_sdmc_get_mem_size(); + gd->ram_size = dram - vga; + + return 0; +} + +#ifdef CONFIG_FTGMAC100 +int board_eth_init(bd_t *bd) +{ + return ftgmac100_initialize(bd); +} +#endif + +#ifdef CONFIG_ASPEEDNIC +int board_eth_init(bd_t *bd) +{ + return aspeednic_initialize(bd); +} +#endif |