summaryrefslogtreecommitdiff
path: root/board/AndesTech/adp-ag101p
diff options
context:
space:
mode:
authorrick <rick@andestech.com>2017-05-18 09:37:53 +0300
committerAndes <uboot@andestech.com>2017-05-22 09:05:46 +0300
commitb841b6e94662b3b21a56d6ecaab64dcdfb0d311c (patch)
tree92847f53ffaeb104754e2940b32b981314627750 /board/AndesTech/adp-ag101p
parentf5076f869855045e527de7f1367c65f55a2b1448 (diff)
downloadu-boot-b841b6e94662b3b21a56d6ecaab64dcdfb0d311c.tar.xz
nds32: Support AE3XX platform.
Support Andestech AE3xx platform: serial, timer device tree flow. Signed-off-by: rick <rick@andestech.com>
Diffstat (limited to 'board/AndesTech/adp-ag101p')
-rw-r--r--board/AndesTech/adp-ag101p/adp-ag101p.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/board/AndesTech/adp-ag101p/adp-ag101p.c b/board/AndesTech/adp-ag101p/adp-ag101p.c
index 805a266f63..0fd6fb04f8 100644
--- a/board/AndesTech/adp-ag101p/adp-ag101p.c
+++ b/board/AndesTech/adp-ag101p/adp-ag101p.c
@@ -7,8 +7,10 @@
*/
#include <common.h>
+#if defined(CONFIG_FTMAC100)
#include <netdev.h>
-#include <asm/io.h>
+#endif
+#include <linux/io.h>
#include <faraday/ftsdc010.h>
#include <faraday/ftsmc020.h>
@@ -25,6 +27,7 @@ int board_init(void)
* refer to BOOT_PARAMETER_PA_BASE within
* "linux/arch/nds32/include/asm/misc_spec.h"
*/
+ printf("Board: %s\n" , CONFIG_SYS_BOARD);
gd->bd->bi_arch_number = MACH_TYPE_ADPAG101P;
gd->bd->bi_boot_params = PHYS_SDRAM_0 + 0x400;
@@ -59,10 +62,12 @@ int dram_init_banksize(void)
return 0;
}
+#if defined(CONFIG_FTMAC100)
int board_eth_init(bd_t *bd)
{
return ftmac100_initialize(bd);
}
+#endif
ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t *info)
{
@@ -78,6 +83,8 @@ ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t *info)
int board_mmc_init(bd_t *bis)
{
+#ifdef CONFIG_FTSDC010
ftsdc010_mmc_init(0);
+#endif
return 0;
}