From: Andes <uboot@andestech.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 07/12] riscv: configs: Add nx25-ae250.h to support RISC-V
Date: Tue, 26 Dec 2017 13:55:54 +0800 [thread overview]
Message-ID: <1514267759-3508-8-git-send-email-uboot@andestech.com> (raw)
In-Reply-To: <1514267759-3508-1-git-send-email-uboot@andestech.com>
From: Rick Chen <rick@andestech.com>
Add nx25-ae250 board configuartion options for RISC-V
Signed-off-by: Rick Chen <rick@andestech.com>
Signed-off-by: Rick Chen <rickchen36@gmail.com>
Signed-off-by: Greentime Hu <green.hu@gmail.com>
---
include/configs/nx25-ae250.h | 126 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 126 insertions(+)
create mode 100644 include/configs/nx25-ae250.h
diff --git a/include/configs/nx25-ae250.h b/include/configs/nx25-ae250.h
new file mode 100644
index 0000000..b523797
--- /dev/null
+++ b/include/configs/nx25-ae250.h
@@ -0,0 +1,126 @@
+/*
+ * Copyright (C) 2017 Andes Technology Corporation
+ * Rick Chen, Andes Technology Corporation <rick@andestech.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+/*
+ * CPU and Board Configuration Options
+ */
+#define CONFIG_SKIP_LOWLEVEL_INIT
+
+#define CONFIG_CMDLINE_EDITING
+#define CONFIG_BOOTP_SEND_HOSTNAME
+#define CONFIG_BOOTP_SERVERIP
+
+#ifdef CONFIG_SKIP_LOWLEVEL_INIT
+#define CONFIG_SYS_TEXT_BASE 0x00000000
+#ifdef CONFIG_OF_CONTROL
+#undef CONFIG_OF_SEPARATE
+#define CONFIG_OF_EMBED
+#endif
+#else
+#define CONFIG_SYS_TEXT_BASE 0x80000000
+#endif
+
+/*
+ * Miscellaneous configurable options
+ */
+#define CONFIG_SYS_LONGHELP /* undef to save memory */
+#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
+
+/*
+ * Print Buffer Size
+ */
+#define CONFIG_SYS_PBSIZE \
+ (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+
+/*
+ * max number of command args
+ */
+#define CONFIG_SYS_MAXARGS 16
+
+/*
+ * Boot Argument Buffer Size
+ */
+#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
+
+/*
+ * Size of malloc() pool
+ * 512kB is suggested, (CONFIG_ENV_SIZE + 128 * 1024) was not enough
+ */
+#define CONFIG_SYS_MALLOC_LEN (512 << 10)
+
+/*
+ * Physical Memory Map
+ */
+#define CONFIG_NR_DRAM_BANKS 2
+#define PHYS_SDRAM_0 0x00000000 /* SDRAM Bank #1 */
+#define PHYS_SDRAM_1 \
+ (PHYS_SDRAM_0 + PHYS_SDRAM_0_SIZE) /* SDRAM Bank #2 */
+#define PHYS_SDRAM_0_SIZE 0x20000000 /* 512 MB */
+#define PHYS_SDRAM_1_SIZE 0x20000000 /* 512 MB */
+#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_0
+
+/*
+ * Serial console configuration
+ */
+#define CONFIG_CONS_INDEX 1
+#define CONFIG_SYS_NS16550_SERIAL
+#ifndef CONFIG_DM_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE -4
+#endif
+#define CONFIG_SYS_NS16550_CLK 19660800
+
+/*
+ * SD (MMC) controller
+ */
+#define CONFIG_FTSDC010_NUMBER 1
+#define CONFIG_FTSDC010_SDIO
+
+/* Init Stack Pointer */
+#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x1000000 - \
+ GENERATED_GBL_DATA_SIZE)
+
+/*
+ * Load address and memory test area should agree with
+ * arch/riscv/config.mk. Be careful not to overwrite U-Boot itself.
+ */
+#define CONFIG_SYS_LOAD_ADDR 0x100000 /* SDRAM */
+
+/*
+ * memtest works on 512 MB in DRAM
+ */
+#define CONFIG_SYS_MEMTEST_START PHYS_SDRAM_0
+#define CONFIG_SYS_MEMTEST_END (PHYS_SDRAM_0 + PHYS_SDRAM_0_SIZE)
+
+/* environments */
+#define CONFIG_ENV_SPI_BUS 0
+#define CONFIG_ENV_SPI_CS 0
+#define CONFIG_ENV_SPI_MAX_HZ 50000000
+#define CONFIG_ENV_SPI_MODE 0
+#define CONFIG_ENV_SECT_SIZE 0x1000
+#define CONFIG_ENV_OVERWRITE
+
+/* SPI FLASH */
+#define CONFIG_SF_DEFAULT_BUS 0
+#define CONFIG_SF_DEFAULT_CS 0
+#define CONFIG_SF_DEFAULT_SPEED 1000000
+#define CONFIG_SF_DEFAULT_MODE 0
+
+/*
+ * For booting Linux, the board info and command line data
+ * have to be in the first 16 MB of memory, since this is
+ * the maximum mapped by the Linux kernel during initialization.
+ */
+
+/* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ (64 << 20)
+/* Increase max gunzip size */
+#define CONFIG_SYS_BOOTM_LEN (64 << 20)
+
+#endif /* __CONFIG_H */
--
2.7.4
next prev parent reply other threads:[~2017-12-26 5:55 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-26 5:55 [U-Boot] [PATCH v2 00/12] Add NX25 to support RISC-V Andes
2017-12-26 5:55 ` [U-Boot] [PATCH v2 01/12] riscv: cpu: Add nx25 " Andes
2018-01-09 5:47 ` 陳建志
2018-01-09 13:46 ` Tom Rini
2018-01-15 13:52 ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-01-16 6:52 ` 陳建志
2018-02-02 8:20 ` 陳建志
2018-02-08 1:43 ` 陳建志
2017-12-26 5:55 ` [U-Boot] [PATCH v2 02/12] riscv: nx25: lib: Add relative lib funcs " Andes
2018-01-15 13:52 ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-12-26 5:55 ` [U-Boot] [PATCH v2 03/12] riscv: nx25: dts: Add AE250 dts " Andes
2018-01-15 13:52 ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-12-26 5:55 ` [U-Boot] [PATCH v2 04/12] riscv: nx25: include: Add header files " Andes
2018-01-15 13:52 ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-12-26 5:55 ` [U-Boot] [PATCH v2 05/12] riscv: Add Kconfig " Andes
2018-01-15 13:52 ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-12-26 5:55 ` [U-Boot] [PATCH v2 06/12] riscv: board: Add nx25-ae250 " Andes
2018-01-15 13:52 ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-12-26 5:55 ` Andes [this message]
2018-01-15 13:53 ` [U-Boot] [U-Boot, v2, 07/12] riscv: configs: Add nx25-ae250.h " Tom Rini
2017-12-26 5:55 ` [U-Boot] [PATCH v2 08/12] riscv: defconfig: Add nx25-ae250 defconfig " Andes
2018-01-15 13:53 ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-12-26 5:55 ` [U-Boot] [PATCH v2 09/12] riscv: tools: Prelink u-boot Andes
2018-01-15 13:53 ` [U-Boot] [U-Boot,v2,09/12] " Tom Rini
2017-12-26 5:55 ` [U-Boot] [PATCH v2 10/12] riscv: Support standalone Andes
2018-01-15 13:53 ` [U-Boot] [U-Boot,v2,10/12] " Tom Rini
2017-12-26 5:55 ` [U-Boot] [PATCH v2 11/12] riscv: Modify generic codes to support RISC-V Andes
2018-01-15 13:53 ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-12-26 5:55 ` [U-Boot] [PATCH v2 12/12] riscv: doc: Add relative doc to describe RISC-V Andes
2018-01-15 13:53 ` [U-Boot] [U-Boot, v2, " Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1514267759-3508-8-git-send-email-uboot@andestech.com \
--to=uboot@andestech.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox