summaryrefslogtreecommitdiffstats
path: root/include/configs
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2016-07-14 00:02:38 +0930
committerJoel Stanley <joel@jms.id.au>2016-07-27 15:44:01 +0930
commit784c705b79b08b3c2c599766ea97ce7de3b32423 (patch)
tree9fab1a8d4e7aa6abf0cd5b263a586fece93939f9 /include/configs
parenta0ca4ecbeae4ae9632ebc67bf5318dd2ea09c94f (diff)
downloadblackbird-obmc-uboot-784c705b79b08b3c2c599766ea97ce7de3b32423.tar.gz
blackbird-obmc-uboot-784c705b79b08b3c2c599766ea97ce7de3b32423.zip
board/aspeed: Add ast-g4 board
This adds a Aspeed fourth 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 'include/configs')
-rw-r--r--include/configs/ast-common.h107
-rw-r--r--include/configs/ast-g4-ncsi.h29
-rw-r--r--include/configs/ast-g4-phy.h31
3 files changed, 167 insertions, 0 deletions
diff --git a/include/configs/ast-common.h b/include/configs/ast-common.h
new file mode 100644
index 0000000000..b39ea33ce7
--- /dev/null
+++ b/include/configs/ast-common.h
@@ -0,0 +1,107 @@
+/*
+ * Copyright (C) 2012-2020 ASPEED Technology Inc.
+ * Ryan Chen <ryan_chen@aspeedtech.com>
+ *
+ * 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.
+ *
+ */
+
+#ifndef __AST_COMMON_CONFIG_H
+#define __AST_COMMON_CONFIG_H
+
+#define CONFIG_ARCH_ASPEED
+#define CONFIG_EXTRA_ENV_SETTINGS ASPEED_ENV_SETTINGS
+
+#define CONFIG_ARCH_CPU_INIT
+#define CONFIG_MACH_TYPE MACH_TYPE_ASPEED
+
+#include <asm/arch/platform.h>
+
+/* Misc CPU related */
+#define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
+#define CONFIG_SETUP_MEMORY_TAGS
+#define CONFIG_INITRD_TAG
+
+#define CONFIG_CMDLINE_EDITING 1
+
+/* Enable cache controller */
+#define CONFIG_SYS_DCACHE_OFF 1
+
+#define CONFIG_SYS_SDRAM_BASE AST_DRAM_BASE
+#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_INIT_RAM_SIZE (32*1024)
+#define CONFIG_SYS_INIT_RAM_END (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_SIZE)
+#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_END - GENERATED_GBL_DATA_SIZE)
+
+#define CONFIG_NR_DRAM_BANKS 1
+
+#define CONFIG_SYS_TEXT_BASE 0x00000000
+
+#define CONFIG_SYS_MALLOC_LEN (0x1000 + 4*1024*1024) /* malloc() len */
+
+#define CONFIG_ASPEED_TIMER_CLK (1*1000*1000) /* use external clk (1M) */
+
+/*
+ * NS16550 Configuration
+ */
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE (-4)
+#define CONFIG_SYS_NS16550_CLK 24000000
+#define CONFIG_SYS_NS16550_COM1 AST_UART0_BASE
+#define CONFIG_SYS_LOADS_BAUD_CHANGE
+#define CONFIG_SERIAL1 1
+#define CONFIG_CONS_INDEX 1
+#define CONFIG_BAUDRATE 115200
+
+/*
+ * BOOTP options
+ */
+#define CONFIG_BOOTP_BOOTFILESIZE
+#define CONFIG_BOOTP_BOOTPATH
+#define CONFIG_BOOTP_GATEWAY
+#define CONFIG_BOOTP_HOSTNAME
+#define CONFIG_BOOTP_SUBNETMASK
+
+/*
+ * Environment Config
+ */
+#define CONFIG_BOOTDELAY 2
+
+/*
+ * Miscellaneous configurable options
+ */
+#define CONFIG_SYS_LONGHELP
+#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
+#define CONFIG_SYS_PROMPT "ast# "
+
+/* Print Buffer Size */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_MAXARGS 16
+#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
+
+#define CONFIG_BOOTARGS "console=ttyS4,115200n8 root=/dev/ram rw"
+
+#define CONFIG_AST_SPI_NOR /* AST SPI NOR Flash */
+#define CONFIG_FMC_CS 1
+#define CONFIG_SYS_MAX_FLASH_BANKS (CONFIG_FMC_CS)
+#define CONFIG_SYS_MAX_FLASH_SECT (8192) /* max number of sectors on one chip */
+#define CONFIG_ENV_IS_IN_FLASH 1
+#define CONFIG_ENV_ADDR (AST_FMC_CS0_BASE + 0x60000)
+
+#define CONFIG_ENV_OFFSET 0x60000 /* environment starts here */
+#define CONFIG_ENV_SIZE 0x20000 /* Total Size of Environment Sector */
+
+#define CONFIG_BOOTCOMMAND "bootm 20080000 20300000"
+#define CONFIG_ENV_OVERWRITE
+
+#define ASPEED_ENV_SETTINGS \
+ "verify=yes\0" \
+ "spi_dma=yes\0" \
+ ""
+
+#endif /* __AST_COMMON_CONFIG_H */
diff --git a/include/configs/ast-g4-ncsi.h b/include/configs/ast-g4-ncsi.h
new file mode 100644
index 0000000000..8191dfcd39
--- /dev/null
+++ b/include/configs/ast-g4-ncsi.h
@@ -0,0 +1,29 @@
+/*
+ * 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.
+ *
+ */
+
+#ifndef __AST_G4_NCSI_CONFIG_H
+#define __AST_G4_NCSI_CONFIG_H
+
+#define CONFIG_ARCH_AST2400
+#define CONFIG_SYS_LOAD_ADDR 0x43000000
+
+#define CONFIG_MISC_INIT_R
+
+#include <configs/ast-common.h>
+
+/* Ethernet */
+#define CONFIG_LIB_RAND
+#define CONFIG_ASPEEDNIC
+
+/* platform.S settings */
+#define CONFIG_CPU_420 1
+#define CONFIG_DRAM_528 1
+
+#endif /* __AST_G4_NCSI_CONFIG_H */
diff --git a/include/configs/ast-g4-phy.h b/include/configs/ast-g4-phy.h
new file mode 100644
index 0000000000..baa522ff55
--- /dev/null
+++ b/include/configs/ast-g4-phy.h
@@ -0,0 +1,31 @@
+/*
+ * 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.
+ *
+ */
+
+#ifndef __AST_G4_NCSI_CONFIG_H
+#define __AST_G4_NCSI_CONFIG_H
+
+#define CONFIG_ARCH_AST2400
+#define CONFIG_SYS_LOAD_ADDR 0x43000000
+
+#define CONFIG_MISC_INIT_R
+
+#include <configs/ast-common.h>
+
+/* Ethernet */
+#define CONFIG_MAC_NUM 2
+#define CONFIG_FTGMAC100
+#define CONFIG_PHY_MAX_ADDR 32
+#define CONFIG_FTGMAC100_EGIGA
+
+/* platform.S settings */
+#define CONFIG_CPU_420 1
+#define CONFIG_DRAM_528 1
+
+#endif /* __AST_G4_NCSI_CONFIG_H */
OpenPOWER on IntegriCloud