summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-06-29 22:28:51 +0300
committerTom Rini <trini@konsulko.com>2017-06-29 22:28:51 +0300
commitf42f25dad80688886b4e0b12b8e75c86c4d350e7 (patch)
tree6a09cbb34ea3d25119ee3085327273dac6c42004 /include
parente3f40720bac263c00b5f78777fa948775ed1330f (diff)
parent67482f57e6127d7d3e216dae6860dac7b33132d5 (diff)
downloadu-boot-f42f25dad80688886b4e0b12b8e75c86c4d350e7.tar.xz
Merge git://git.denx.de/u-boot-arc
Diffstat (limited to 'include')
-rw-r--r--include/configs/axs10x.h36
-rw-r--r--include/configs/hsdk.h93
-rw-r--r--include/configs/nsim.h1
-rw-r--r--include/configs/tb100.h1
4 files changed, 102 insertions, 29 deletions
diff --git a/include/configs/axs10x.h b/include/configs/axs10x.h
index 66e8cd5e9a..908b018800 100644
--- a/include/configs/axs10x.h
+++ b/include/configs/axs10x.h
@@ -52,32 +52,6 @@
#define CONFIG_SYS_NS16550_MEM32
/*
- * I2C configuration
- */
-#define CONFIG_SYS_I2C
-#define CONFIG_I2C_ENV_EEPROM_BUS 2
-#define CONFIG_SYS_I2C_SPEED 100000
-#define CONFIG_SYS_I2C_SPEED1 100000
-#define CONFIG_SYS_I2C_SPEED2 100000
-#define CONFIG_SYS_I2C_SLAVE 0
-#define CONFIG_SYS_I2C_SLAVE1 0
-#define CONFIG_SYS_I2C_SLAVE2 0
-#define CONFIG_SYS_I2C_BASE 0xE001D000
-#define CONFIG_SYS_I2C_BASE1 0xE001E000
-#define CONFIG_SYS_I2C_BASE2 0xE001F000
-#define CONFIG_SYS_I2C_BUS_MAX 3
-#define IC_CLK 50
-
-/*
- * EEPROM configuration
- */
-#define CONFIG_SYS_I2C_EEPROM_ADDR (0xA8 >> 1)
-#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
-#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW 1
-#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
-#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 64
-
-/*
* Ethernet PHY configuration
*/
#define CONFIG_MII
@@ -96,13 +70,17 @@
#define CONFIG_AUTO_COMPLETE
#define CONFIG_SYS_MAXARGS 16
+#define CONFIG_CMDLINE_EDITING
/*
* Environment settings
*/
-#define CONFIG_ENV_IS_NOWHERE
-#define CONFIG_ENV_SIZE SZ_512
-#define CONFIG_ENV_OFFSET 0
+#define CONFIG_ENV_IS_IN_FAT
+#define CONFIG_ENV_SIZE SZ_16K
+#define FAT_ENV_INTERFACE "mmc"
+#define FAT_ENV_DEVICE_AND_PART "0:1"
+#define FAT_ENV_FILE "uboot.env"
+#define CONFIG_FAT_WRITE
/*
* Environment configuration
diff --git a/include/configs/hsdk.h b/include/configs/hsdk.h
new file mode 100644
index 0000000000..28ac090c05
--- /dev/null
+++ b/include/configs/hsdk.h
@@ -0,0 +1,93 @@
+/*
+ * Copyright (C) 2017 Synopsys, Inc. All rights reserved.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef _CONFIG_HSDK_H_
+#define _CONFIG_HSDK_H_
+
+#include <linux/sizes.h>
+
+/*
+ * CPU configuration
+ */
+#define ARC_PERIPHERAL_BASE 0xF0000000
+#define ARC_DWMMC_BASE (ARC_PERIPHERAL_BASE + 0xA000)
+#define ARC_DWGMAC_BASE (ARC_PERIPHERAL_BASE + 0x18000)
+
+/*
+ * Memory configuration
+ */
+#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
+
+#define CONFIG_SYS_DDR_SDRAM_BASE 0x80000000
+#define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE
+#define CONFIG_SYS_SDRAM_SIZE SZ_1G
+
+#define CONFIG_SYS_INIT_SP_ADDR \
+ (CONFIG_SYS_SDRAM_BASE + 0x1000 - GENERATED_GBL_DATA_SIZE)
+
+#define CONFIG_SYS_MALLOC_LEN SZ_2M
+#define CONFIG_SYS_BOOTM_LEN SZ_32M
+#define CONFIG_SYS_LOAD_ADDR 0x82000000
+
+/*
+ * This board might be of different versions so handle it
+ */
+#define CONFIG_BOARD_TYPES
+
+/*
+ * UART configuration
+ */
+#define CONFIG_DW_SERIAL
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_CLK 33330000
+#define CONFIG_SYS_NS16550_MEM32
+
+/*
+ * Ethernet PHY configuration
+ */
+#define CONFIG_MII
+
+/*
+ * USB 1.1 configuration
+ */
+#define CONFIG_USB_OHCI_NEW
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1
+
+/*
+ * Environment settings
+ */
+#define CONFIG_ENV_SIZE SZ_16K
+#define CONFIG_ENV_IS_IN_FAT
+#define FAT_ENV_INTERFACE "mmc"
+#define FAT_ENV_DEVICE_AND_PART "0:1"
+#define FAT_ENV_FILE "uboot.env"
+#define CONFIG_FAT_WRITE
+
+/*
+ * Environment configuration
+ */
+#define CONFIG_BOOTFILE "uImage"
+#define CONFIG_BOOTARGS "console=ttyS0,115200n8"
+#define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR
+
+/*
+ * Console configuration
+ */
+#define CONFIG_AUTO_COMPLETE
+#define CONFIG_CMDLINE_EDITING
+#define CONFIG_SYS_LONGHELP
+#define CONFIG_SYS_MAXARGS 16
+#define CONFIG_SYS_CBSIZE SZ_256
+#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
+ sizeof(CONFIG_SYS_PROMPT) + 16)
+
+/*
+ * Misc utility configuration
+ */
+#define CONFIG_BOUNCE_BUFFER
+
+#endif /* _CONFIG_HSDK_H_ */
diff --git a/include/configs/nsim.h b/include/configs/nsim.h
index d6d26c74b4..5bbf610846 100644
--- a/include/configs/nsim.h
+++ b/include/configs/nsim.h
@@ -37,6 +37,7 @@
*/
#define CONFIG_AUTO_COMPLETE
#define CONFIG_SYS_MAXARGS 16
+#define CONFIG_CMDLINE_EDITING
/*
* Environment settings
diff --git a/include/configs/tb100.h b/include/configs/tb100.h
index 115b3b3c5b..fe8e6c4e3b 100644
--- a/include/configs/tb100.h
+++ b/include/configs/tb100.h
@@ -60,6 +60,7 @@
#define CONFIG_AUTO_COMPLETE
#define CONFIG_SYS_MAXARGS 16
+#define CONFIG_CMDLINE_EDITING
/*
* Environment settings