diff options
Diffstat (limited to 'include')
165 files changed, 1059 insertions, 1230 deletions
| diff --git a/include/common.h b/include/common.h index 8ca67f64f..d49c51464 100644 --- a/include/common.h +++ b/include/common.h @@ -698,6 +698,10 @@ ulong get_ddr_freq(ulong);  #if defined(CONFIG_MPC85xx)  typedef MPC85xx_SYS_INFO sys_info_t;  void	get_sys_info  ( sys_info_t * ); +#  if defined(CONFIG_OF_LIBFDT) +	void ft_fixup_cpu(void *, u64); +	void ft_fixup_num_cores(void *); +#  endif  #endif  #if defined(CONFIG_MPC86xx)  typedef MPC86xx_SYS_INFO sys_info_t; diff --git a/include/config_defaults.h b/include/config_defaults.h index 567b46c87..ad08c1d33 100644 --- a/include/config_defaults.h +++ b/include/config_defaults.h @@ -14,6 +14,7 @@  #define CONFIG_BOOTM_NETBSD 1  #define CONFIG_BOOTM_PLAN9 1  #define CONFIG_BOOTM_RTEMS 1 +#define CONFIG_BOOTM_VXWORKS 1  #define CONFIG_GZIP 1  #define CONFIG_ZLIB 1 diff --git a/include/config_fallbacks.h b/include/config_fallbacks.h index 3633b09aa..d8339b26c 100644 --- a/include/config_fallbacks.h +++ b/include/config_fallbacks.h @@ -50,7 +50,8 @@  	defined(CONFIG_CMD_PART) || \  	defined(CONFIG_CMD_GPT) || \  	defined(CONFIG_MMC) || \ -	defined(CONFIG_SYSTEMACE) +	defined(CONFIG_SYSTEMACE) || \ +	defined(CONFIG_SANDBOX)  #define HAVE_BLOCK_DEVICE  #endif diff --git a/include/configs/B4860QDS.h b/include/configs/B4860QDS.h index b2a5c19e0..c182158be 100644 --- a/include/configs/B4860QDS.h +++ b/include/configs/B4860QDS.h @@ -289,6 +289,8 @@ unsigned long get_board_ddr_clk(void);  /* NAND Flash on IFC */  #define CONFIG_NAND_FSL_IFC +#define CONFIG_SYS_NAND_MAX_ECCPOS	256 +#define CONFIG_SYS_NAND_MAX_OOBFREE	2  #define CONFIG_SYS_NAND_BASE		0xff800000  #ifdef CONFIG_PHYS_64BIT  #define CONFIG_SYS_NAND_BASE_PHYS	(0xf00000000ull | CONFIG_SYS_NAND_BASE) @@ -737,7 +739,6 @@ unsigned long get_board_ddr_clk(void);  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/BSC9131RDB.h b/include/configs/BSC9131RDB.h index 499d8c205..584aba8d0 100644 --- a/include/configs/BSC9131RDB.h +++ b/include/configs/BSC9131RDB.h @@ -29,7 +29,7 @@  #define CONFIG_SPL_INIT_MINIMAL  #define CONFIG_SPL_SERIAL_SUPPORT  #define CONFIG_SPL_NAND_SUPPORT -#define CONFIG_SPL_NAND_MINIMAL +#define CONFIG_SPL_NAND_BOOT  #define CONFIG_SPL_FLUSH_IMAGE  #define CONFIG_SPL_TARGET		"u-boot-with-spl.bin" @@ -382,7 +382,6 @@ extern unsigned long get_sdram_size(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  #define CONFIG_USB_EHCI diff --git a/include/configs/BSC9132QDS.h b/include/configs/BSC9132QDS.h index a6601fee8..6170cbc81 100644 --- a/include/configs/BSC9132QDS.h +++ b/include/configs/BSC9132QDS.h @@ -38,7 +38,7 @@  #define CONFIG_SPL_INIT_MINIMAL  #define CONFIG_SPL_SERIAL_SUPPORT  #define CONFIG_SPL_NAND_SUPPORT -#define CONFIG_SPL_NAND_MINIMAL +#define CONFIG_SPL_NAND_BOOT  #define CONFIG_SPL_FLUSH_IMAGE  #define CONFIG_SPL_TARGET		"u-boot-with-spl.bin" @@ -625,7 +625,6 @@ combinations. this should be removed later  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/CMS700.h b/include/configs/CMS700.h index 4a5fc864a..0bb22be9f 100644 --- a/include/configs/CMS700.h +++ b/include/configs/CMS700.h @@ -149,6 +149,9 @@  #define CONFIG_SYS_NAND_SKIP_BAD_DOT_I 1       /* ".i" read skips bad blocks   */  #define CONFIG_SYS_NAND_QUIET          1 +#define CONFIG_SYS_NAND_MAX_OOBFREE	2 +#define CONFIG_SYS_NAND_MAX_ECCPOS	48 +  /*   * For booting Linux, the board info and command line data   * have to be in the first 8 MB of memory, since this is diff --git a/include/configs/DU440.h b/include/configs/DU440.h index 2d7fc59ea..71be1224f 100644 --- a/include/configs/DU440.h +++ b/include/configs/DU440.h @@ -406,7 +406,6 @@ int du440_phy_addr(int devnum);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  #define CONFIG_SOURCE		1 diff --git a/include/configs/EXBITGEN.h b/include/configs/EXBITGEN.h index f366308f4..208b599f6 100644 --- a/include/configs/EXBITGEN.h +++ b/include/configs/EXBITGEN.h @@ -186,6 +186,5 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  #endif	/* __CONFIG_H */ diff --git a/include/configs/JSE.h b/include/configs/JSE.h index 4284d6a3a..5738ea97a 100644 --- a/include/configs/JSE.h +++ b/include/configs/JSE.h @@ -274,6 +274,5 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  #endif	/* __CONFIG_H */ diff --git a/include/configs/KAREF.h b/include/configs/KAREF.h index 71e90d77d..39eb2ef13 100644 --- a/include/configs/KAREF.h +++ b/include/configs/KAREF.h @@ -273,7 +273,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE  230400	     /* kgdb serial port baud	*/ -#define CONFIG_KGDB_SER_INDEX 2		     /* kgdb serial port	*/  #endif  /*----------------------------------------------------------------------- diff --git a/include/configs/METROBOX.h b/include/configs/METROBOX.h index 32ec0bf06..67154353d 100644 --- a/include/configs/METROBOX.h +++ b/include/configs/METROBOX.h @@ -338,7 +338,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE  230400	     /* kgdb serial port baud	*/ -#define CONFIG_KGDB_SER_INDEX 2		     /* kgdb serial port	*/  #endif  /*----------------------------------------------------------------------- diff --git a/include/configs/MIP405.h b/include/configs/MIP405.h index f248a5642..6042a1e3c 100644 --- a/include/configs/MIP405.h +++ b/include/configs/MIP405.h @@ -396,7 +396,6 @@   ************************************************************/  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /************************************************************ diff --git a/include/configs/MPC8315ERDB.h b/include/configs/MPC8315ERDB.h index 0f9f436e3..aedb529f8 100644 --- a/include/configs/MPC8315ERDB.h +++ b/include/configs/MPC8315ERDB.h @@ -634,7 +634,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8323ERDB.h b/include/configs/MPC8323ERDB.h index a1e5f3b2b..c4c771b50 100644 --- a/include/configs/MPC8323ERDB.h +++ b/include/configs/MPC8323ERDB.h @@ -481,7 +481,6 @@  #if (CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC832XEMDS.h b/include/configs/MPC832XEMDS.h index 71fc497e7..f5b62025d 100644 --- a/include/configs/MPC832XEMDS.h +++ b/include/configs/MPC832XEMDS.h @@ -574,7 +574,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8349EMDS.h b/include/configs/MPC8349EMDS.h index 037484104..7640d06ee 100644 --- a/include/configs/MPC8349EMDS.h +++ b/include/configs/MPC8349EMDS.h @@ -737,7 +737,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8349ITX.h b/include/configs/MPC8349ITX.h index e2ae59632..ffb9a158a 100644 --- a/include/configs/MPC8349ITX.h +++ b/include/configs/MPC8349ITX.h @@ -730,7 +730,6 @@ boards, we say we have two, but don't display a message if we find only one. */  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif diff --git a/include/configs/MPC8360EMDS.h b/include/configs/MPC8360EMDS.h index ed780f17f..d4c82cd66 100644 --- a/include/configs/MPC8360EMDS.h +++ b/include/configs/MPC8360EMDS.h @@ -683,7 +683,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8360ERDK.h b/include/configs/MPC8360ERDK.h index d31be1973..01e7ac768 100644 --- a/include/configs/MPC8360ERDK.h +++ b/include/configs/MPC8360ERDK.h @@ -544,7 +544,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC837XEMDS.h b/include/configs/MPC837XEMDS.h index 98ffb9c29..f52e77a3a 100644 --- a/include/configs/MPC837XEMDS.h +++ b/include/configs/MPC837XEMDS.h @@ -662,7 +662,6 @@ extern int board_pci_host_broken(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC837XERDB.h b/include/configs/MPC837XERDB.h index ca28c0eb2..938f7ab3c 100644 --- a/include/configs/MPC837XERDB.h +++ b/include/configs/MPC837XERDB.h @@ -678,7 +678,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8536DS.h b/include/configs/MPC8536DS.h index 9ab1bc106..9b7cc6474 100644 --- a/include/configs/MPC8536DS.h +++ b/include/configs/MPC8536DS.h @@ -740,7 +740,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8540ADS.h b/include/configs/MPC8540ADS.h index 046b14bdd..2d42b2512 100644 --- a/include/configs/MPC8540ADS.h +++ b/include/configs/MPC8540ADS.h @@ -397,7 +397,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif diff --git a/include/configs/MPC8541CDS.h b/include/configs/MPC8541CDS.h index eca3b537b..b9ad03422 100644 --- a/include/configs/MPC8541CDS.h +++ b/include/configs/MPC8541CDS.h @@ -410,7 +410,6 @@ extern unsigned long get_clock_freq(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8544DS.h b/include/configs/MPC8544DS.h index 8132ec055..90fc2da34 100644 --- a/include/configs/MPC8544DS.h +++ b/include/configs/MPC8544DS.h @@ -441,7 +441,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8548CDS.h b/include/configs/MPC8548CDS.h index 6acd54db8..5fff1e2ca 100644 --- a/include/configs/MPC8548CDS.h +++ b/include/configs/MPC8548CDS.h @@ -535,7 +535,6 @@ extern unsigned long get_clock_freq(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8555CDS.h b/include/configs/MPC8555CDS.h index 5ffdd0162..23c6b07c3 100644 --- a/include/configs/MPC8555CDS.h +++ b/include/configs/MPC8555CDS.h @@ -408,7 +408,6 @@ extern unsigned long get_clock_freq(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8560ADS.h b/include/configs/MPC8560ADS.h index bb9ae2dcb..44b767919 100644 --- a/include/configs/MPC8560ADS.h +++ b/include/configs/MPC8560ADS.h @@ -438,7 +438,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif diff --git a/include/configs/MPC8568MDS.h b/include/configs/MPC8568MDS.h index 7406ac3be..4f438a807 100644 --- a/include/configs/MPC8568MDS.h +++ b/include/configs/MPC8568MDS.h @@ -430,7 +430,6 @@ extern unsigned long get_clock_freq(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8569MDS.h b/include/configs/MPC8569MDS.h index df5572b3a..d877e8bbd 100644 --- a/include/configs/MPC8569MDS.h +++ b/include/configs/MPC8569MDS.h @@ -566,7 +566,6 @@ extern unsigned long get_clock_freq(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8572DS.h b/include/configs/MPC8572DS.h index 63480ecb0..44d83a236 100644 --- a/include/configs/MPC8572DS.h +++ b/include/configs/MPC8572DS.h @@ -682,7 +682,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8610HPCD.h b/include/configs/MPC8610HPCD.h index 41ebe31dd..f930fcde3 100644 --- a/include/configs/MPC8610HPCD.h +++ b/include/configs/MPC8610HPCD.h @@ -517,7 +517,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MPC8641HPCN.h b/include/configs/MPC8641HPCN.h index 0e666bac0..65d61c28d 100644 --- a/include/configs/MPC8641HPCN.h +++ b/include/configs/MPC8641HPCN.h @@ -670,7 +670,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);  #if defined(CONFIG_CMD_KGDB)      #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -    #define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/MigoR.h b/include/configs/MigoR.h index 9fd455142..88df94f11 100644 --- a/include/configs/MigoR.h +++ b/include/configs/MigoR.h @@ -10,8 +10,6 @@  #define __MIGO_R_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4		1  #define CONFIG_CPU_SH7722	1  #define CONFIG_MIGO_R		1 diff --git a/include/configs/P1010RDB.h b/include/configs/P1010RDB.h index 1ed5e1df2..ea5cb6501 100644 --- a/include/configs/P1010RDB.h +++ b/include/configs/P1010RDB.h @@ -37,7 +37,7 @@  #define CONFIG_SPL_INIT_MINIMAL  #define CONFIG_SPL_SERIAL_SUPPORT  #define CONFIG_SPL_NAND_SUPPORT -#define CONFIG_SPL_NAND_MINIMAL +#define CONFIG_SPL_NAND_BOOT  #define CONFIG_SPL_FLUSH_IMAGE  #define CONFIG_SPL_TARGET		"u-boot-with-spl.bin" @@ -739,7 +739,6 @@ extern unsigned long get_sdram_size(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/P1022DS.h b/include/configs/P1022DS.h index 262c3e5f1..934a6cb7a 100644 --- a/include/configs/P1022DS.h +++ b/include/configs/P1022DS.h @@ -75,6 +75,8 @@  #endif  #define CONFIG_NAND_FSL_ELBC +#define CONFIG_SYS_NAND_MAX_ECCPOS	56 +#define CONFIG_SYS_NAND_MAX_OOBFREE	5  #ifdef CONFIG_NAND  #define CONFIG_SPL @@ -725,7 +727,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/P1023RDS.h b/include/configs/P1023RDS.h index 2aa1f59ea..11c74ff5f 100644 --- a/include/configs/P1023RDS.h +++ b/include/configs/P1023RDS.h @@ -469,7 +469,6 @@ extern unsigned long get_clock_freq(void);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/P1_P2_RDB.h b/include/configs/P1_P2_RDB.h index b592c1966..85cb0767e 100644 --- a/include/configs/P1_P2_RDB.h +++ b/include/configs/P1_P2_RDB.h @@ -606,7 +606,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/P2020COME.h b/include/configs/P2020COME.h index 15d2a43cd..ce3c76255 100644 --- a/include/configs/P2020COME.h +++ b/include/configs/P2020COME.h @@ -432,7 +432,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/P2020DS.h b/include/configs/P2020DS.h index 9d3d9b33e..ada6c7b87 100644 --- a/include/configs/P2020DS.h +++ b/include/configs/P2020DS.h @@ -670,7 +670,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/P2041RDB.h b/include/configs/P2041RDB.h index b238574b5..ee71252b0 100644 --- a/include/configs/P2041RDB.h +++ b/include/configs/P2041RDB.h @@ -677,7 +677,6 @@ unsigned long get_board_sys_clk(unsigned long dummy);  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/PIP405.h b/include/configs/PIP405.h index 118072486..29888b4e1 100644 --- a/include/configs/PIP405.h +++ b/include/configs/PIP405.h @@ -353,7 +353,6 @@   ************************************************************/  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /************************************************************ diff --git a/include/configs/PMC440.h b/include/configs/PMC440.h index 5ab9315b1..efe69601f 100644 --- a/include/configs/PMC440.h +++ b/include/configs/PMC440.h @@ -492,7 +492,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* pass open firmware flat tree */ diff --git a/include/configs/T1040QDS.h b/include/configs/T1040QDS.h index 43a577800..7d0bc043f 100644 --- a/include/configs/T1040QDS.h +++ b/include/configs/T1040QDS.h @@ -233,6 +233,7 @@ unsigned long get_board_ddr_clk(void);  #define QIXIS_RCFG_CTL_RECONFIG_IDLE	0x20  #define QIXIS_RCFG_CTL_RECONFIG_START	0x21  #define QIXIS_RCFG_CTL_WATCHDOG_ENBLE	0x08 +#define	QIXIS_RST_FORCE_MEM		0x01  #define CONFIG_SYS_CSPR3_EXT	(0xf)  #define CONFIG_SYS_CSPR3	(CSPR_PHYS_ADDR(QIXIS_BASE_PHYS) \ @@ -248,7 +249,7 @@ unsigned long get_board_ddr_clk(void);  #define CONFIG_SYS_CS3_FTIM1		(FTIM1_GPCM_TACO(0xff) | \  					FTIM1_GPCM_TRAD(0x3f))  #define CONFIG_SYS_CS3_FTIM2		(FTIM2_GPCM_TCS(0x0e) | \ -					FTIM2_GPCM_TCH(0x0) | \ +					FTIM2_GPCM_TCH(0x8) | \  					FTIM2_GPCM_TWP(0x1f))  #define CONFIG_SYS_CS3_FTIM3		0x0 @@ -682,7 +683,6 @@ unsigned long get_board_ddr_clk(void);  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/T1040RDB.h b/include/configs/T1040RDB.h index 79312311d..d721139a1 100644 --- a/include/configs/T1040RDB.h +++ b/include/configs/T1040RDB.h @@ -609,7 +609,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/T1042RDB_PI.h b/include/configs/T1042RDB_PI.h index eff08e380..2c02d9da5 100644 --- a/include/configs/T1042RDB_PI.h +++ b/include/configs/T1042RDB_PI.h @@ -613,7 +613,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/TQM834x.h b/include/configs/TQM834x.h index fc254256a..15cf2bd79 100644 --- a/include/configs/TQM834x.h +++ b/include/configs/TQM834x.h @@ -495,7 +495,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/VCMA9.h b/include/configs/VCMA9.h index 57b620d48..d40185e1e 100644 --- a/include/configs/VCMA9.h +++ b/include/configs/VCMA9.h @@ -138,8 +138,6 @@  #if defined(CONFIG_CMD_KGDB)  /* speed to run kgdb serial port */  #define CONFIG_KGDB_BAUDRATE		115200 -/* what's this ? it's not used anywhere */ -#define CONFIG_KGDB_SER_INDEX		2	/* which serial port to use */  #endif  /* Miscellaneous configurable options */ diff --git a/include/configs/W7OLMC.h b/include/configs/W7OLMC.h index 8fda1b1ea..00a24ab84 100644 --- a/include/configs/W7OLMC.h +++ b/include/configs/W7OLMC.h @@ -301,7 +301,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400		/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2		/* which serial port to use	*/  #endif  /* diff --git a/include/configs/W7OLMG.h b/include/configs/W7OLMG.h index 6836fc7b5..8ed2fa2d8 100644 --- a/include/configs/W7OLMG.h +++ b/include/configs/W7OLMG.h @@ -304,7 +304,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400		/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2		/* which serial port to use	*/  #endif  /* diff --git a/include/configs/ac14xx.h b/include/configs/ac14xx.h index 1205557d8..d6cef888c 100644 --- a/include/configs/ac14xx.h +++ b/include/configs/ac14xx.h @@ -471,7 +471,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE		230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX		2	/* which serial port to use */  #endif  /* diff --git a/include/configs/actux1.h b/include/configs/actux1.h index 3315f54f3..9b8bd7894 100644 --- a/include/configs/actux1.h +++ b/include/configs/actux1.h @@ -58,8 +58,6 @@  #if defined(CONFIG_CMD_KGDB)  # define CONFIG_KGDB_BAUDRATE		230400 -/* which serial port to use */ -# define CONFIG_KGDB_SER_INDEX		1  #endif  /* Miscellaneous configurable options */ diff --git a/include/configs/actux2.h b/include/configs/actux2.h index fb391ecd5..f0cbff79c 100644 --- a/include/configs/actux2.h +++ b/include/configs/actux2.h @@ -51,8 +51,6 @@  #if defined(CONFIG_CMD_KGDB)  # define CONFIG_KGDB_BAUDRATE		230400 -/* which serial port to use */ -# define CONFIG_KGDB_SER_INDEX		1  #endif  /* Miscellaneous configurable options */ diff --git a/include/configs/actux3.h b/include/configs/actux3.h index 61d96f5ed..763910745 100644 --- a/include/configs/actux3.h +++ b/include/configs/actux3.h @@ -49,8 +49,6 @@  #if defined(CONFIG_CMD_KGDB)  # define CONFIG_KGDB_BAUDRATE		230400 -/* which serial port to use */ -# define CONFIG_KGDB_SER_INDEX		1  #endif  /* Miscellaneous configurable options */ diff --git a/include/configs/actux4.h b/include/configs/actux4.h index 23872794e..12bd98a7e 100644 --- a/include/configs/actux4.h +++ b/include/configs/actux4.h @@ -56,8 +56,6 @@  #if defined(CONFIG_CMD_KGDB)  # define CONFIG_KGDB_BAUDRATE		230400 -/* which serial port to use */ -# define CONFIG_KGDB_SER_INDEX		1  #endif  /* Miscellaneous configurable options */ diff --git a/include/configs/alpr.h b/include/configs/alpr.h index 61fdebac3..08bba3609 100644 --- a/include/configs/alpr.h +++ b/include/configs/alpr.h @@ -349,7 +349,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* pass open firmware flat tree */ diff --git a/include/configs/amcc-common.h b/include/configs/amcc-common.h index c9e9a038d..0f38c92fa 100644 --- a/include/configs/amcc-common.h +++ b/include/configs/amcc-common.h @@ -125,7 +125,6 @@   */  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port*/ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use	*/  #endif  /* diff --git a/include/configs/ap325rxa.h b/include/configs/ap325rxa.h index 933de52c5..462b2e291 100644 --- a/include/configs/ap325rxa.h +++ b/include/configs/ap325rxa.h @@ -11,8 +11,6 @@  #define __AP325RXA_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4		1  #define CONFIG_CPU_SH7723	1  #define CONFIG_AP325RXA	1 diff --git a/include/configs/ap_sh4a_4a.h b/include/configs/ap_sh4a_4a.h index 83a5c37e4..bb39491f8 100644 --- a/include/configs/ap_sh4a_4a.h +++ b/include/configs/ap_sh4a_4a.h @@ -10,9 +10,6 @@  #define __AP_SH4A_4A_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4		1 -#define CONFIG_SH4A		1  #define CONFIG_CPU_SH7734	1  #define CONFIG_AP_SH4A_4A	1  #define CONFIG_400MHZ_MODE	1 diff --git a/include/configs/aria.h b/include/configs/aria.h index 32216cd50..b8d955abd 100644 --- a/include/configs/aria.h +++ b/include/configs/aria.h @@ -507,7 +507,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE		230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX		2	/* which serial port to use */  #endif  /* diff --git a/include/configs/arndale.h b/include/configs/arndale.h index b7fb29ea7..9584d82af 100644 --- a/include/configs/arndale.h +++ b/include/configs/arndale.h @@ -85,6 +85,7 @@  #define CONFIG_DWMMC  #define CONFIG_EXYNOS_DWMMC  #define CONFIG_SUPPORT_EMMC_BOOT +#define CONFIG_BOUNCE_BUFFER  #define CONFIG_BOARD_EARLY_INIT_F @@ -116,6 +117,10 @@  #define CONFIG_USB_EHCI_EXYNOS  #define CONFIG_USB_STORAGE +#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS	3 +#define CONFIG_USB_HOST_ETHER +#define CONFIG_USB_ETHER_ASIX +  /* MMC SPL */  #define CONFIG_EXYNOS_SPL  #define CONFIG_SPL diff --git a/include/configs/balloon3.h b/include/configs/balloon3.h index d3d62744f..b41a82360 100644 --- a/include/configs/balloon3.h +++ b/include/configs/balloon3.h @@ -61,7 +61,6 @@   */  #ifdef	CONFIG_CMD_KGDB  #define	CONFIG_KGDB_BAUDRATE		230400	/* kgdb serial port speed */ -#define	CONFIG_KGDB_SER_INDEX		2	/* which serial port to use */  #endif  /* diff --git a/include/configs/bf506f-ezkit.h b/include/configs/bf506f-ezkit.h index 5ad3ee70d..eed2d5bce 100644 --- a/include/configs/bf506f-ezkit.h +++ b/include/configs/bf506f-ezkit.h @@ -56,6 +56,7 @@  /*   * Flash Settings   */ +  #define CONFIG_FLASH_CFI_DRIVER  #define CONFIG_SYS_FLASH_BASE		0x20000000  #define CONFIG_SYS_FLASH_CFI @@ -63,7 +64,9 @@  #define CONFIG_SYS_MAX_FLASH_SECT	71  #define CONFIG_CMD_FLASH  #define CONFIG_MONITOR_IS_IN_RAM - +/* +#define CONFIG_SYS_NO_FLASH +*/  /*   * SPI Settings @@ -71,11 +74,12 @@  #define CONFIG_BFIN_SPI  #define CONFIG_ENV_SPI_MAX_HZ	30000000  #define CONFIG_SF_DEFAULT_SPEED	30000000 +/*  #define CONFIG_SPI_FLASH  #define CONFIG_SPI_FLASH_STMICRO  #define CONFIG_CMD_SF  #define CONFIG_CMD_SPI - +*/  /*   * Env Storage Settings diff --git a/include/configs/bf561-acvilon.h b/include/configs/bf561-acvilon.h index ee585c0ff..15ca1af23 100644 --- a/include/configs/bf561-acvilon.h +++ b/include/configs/bf561-acvilon.h @@ -53,7 +53,7 @@  #define CONFIG_EBIU_AMBCTL0_VAL		0xffc2ffc2  #define CONFIG_EBIU_AMBCTL1_VAL		0x99b35554 -#define CONFIG_SYS_MONITOR_LEN		(256 * 1024) +#define CONFIG_SYS_MONITOR_LEN		(384 * 1024)  #define CONFIG_SYS_MALLOC_LEN		(128 * 1024) diff --git a/include/configs/bf561-ezkit.h b/include/configs/bf561-ezkit.h index 404039ac2..fb6f94873 100644 --- a/include/configs/bf561-ezkit.h +++ b/include/configs/bf561-ezkit.h @@ -90,6 +90,7 @@   */  #define CONFIG_SYS_I2C_SOFT  #ifdef CONFIG_SYS_I2C_SOFT +#define CONFIG_SYS_I2C  #define CONFIG_SOFT_I2C_GPIO_SCL GPIO_PF0  #define CONFIG_SOFT_I2C_GPIO_SDA GPIO_PF1  #define I2C_DELAY		udelay(5)	/* 1/4 I2C clock duration */ diff --git a/include/configs/blackvme.h b/include/configs/blackvme.h index cd37f9adb..6e5774c6b 100644 --- a/include/configs/blackvme.h +++ b/include/configs/blackvme.h @@ -177,6 +177,7 @@  #define CONFIG_BAUDRATE		57600  #define CONFIG_LOADS_ECHO	1  #define CONFIG_UART_CONSOLE	0 +#define CONFIG_BFIN_SERIAL  /*   * U-Boot environment variables. Use "printenv" to examine. diff --git a/include/configs/cam_enc_4xx.h b/include/configs/cam_enc_4xx.h index c1042aecb..8182a7577 100644 --- a/include/configs/cam_enc_4xx.h +++ b/include/configs/cam_enc_4xx.h @@ -236,6 +236,8 @@  #define CONFIG_SYS_NAND_BAD_BLOCK_POS	0  #define CONFIG_SYS_NAND_ECCSIZE		0x200  #define CONFIG_SYS_NAND_ECCBYTES	10 +#define CONFIG_SYS_NAND_MAX_OOBFREE	2 +#define CONFIG_SYS_NAND_MAX_ECCPOS	56  #define CONFIG_SYS_NAND_OOBSIZE		64  #define CONFIG_SYS_NAND_5_ADDR_CYCLE diff --git a/include/configs/cm-bf537e.h b/include/configs/cm-bf537e.h index 8f10eba46..2838012e2 100644 --- a/include/configs/cm-bf537e.h +++ b/include/configs/cm-bf537e.h @@ -55,7 +55,7 @@  #define CONFIG_EBIU_AMBCTL0_VAL	(B1WAT_7 | B1RAT_11 | B1HT_2 | B1ST_3 | B0WAT_7 | B0RAT_11 | B0HT_2 | B0ST_3)  #define CONFIG_EBIU_AMBCTL1_VAL	(B3WAT_7 | B3RAT_11 | B3HT_2 | B3ST_3 | B2WAT_7 | B2RAT_11 | B2HT_2 | B2ST_3) -#define CONFIG_SYS_MONITOR_LEN	(512 * 1024) +#define CONFIG_SYS_MONITOR_LEN	(768 * 1024)  #define CONFIG_SYS_MALLOC_LEN	(128 * 1024) @@ -145,7 +145,7 @@  #define FLASHBOOT_ENV_SETTINGS \  	"flashboot=flread 20040000 1000000 3c0000;" \  	"bootm 0x1000000\0" - +#define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024))  /*   * Pull in common ADI header for remaining command/environment setup diff --git a/include/configs/cm-bf537u.h b/include/configs/cm-bf537u.h index a1c8e8a85..da4cc6718 100644 --- a/include/configs/cm-bf537u.h +++ b/include/configs/cm-bf537u.h @@ -54,7 +54,7 @@  #define CONFIG_EBIU_AMBCTL0_VAL	(B1WAT_7 | B1RAT_11 | B1HT_2 | B1ST_3 | B0WAT_7 | B0RAT_11 | B0HT_2 | B0ST_3)  #define CONFIG_EBIU_AMBCTL1_VAL	(B3WAT_7 | B3RAT_11 | B3HT_2 | B3ST_3 | B2WAT_7 | B2RAT_11 | B2HT_2 | B2ST_3) -#define CONFIG_SYS_MONITOR_LEN	(512 * 1024) +#define CONFIG_SYS_MONITOR_LEN	(768 * 1024)  #define CONFIG_SYS_MALLOC_LEN	(128 * 1024) @@ -142,6 +142,7 @@  #define FLASHBOOT_ENV_SETTINGS \  	"flashboot=flread 20040000 1000000 300000;" \  	"bootm 0x1000000\0" +#define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024))  /* diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h index 4640c431d..7729a02ab 100644 --- a/include/configs/cm_t35.h +++ b/include/configs/cm_t35.h @@ -316,6 +316,7 @@  /* Display Configuration */  #define CONFIG_OMAP3_GPIO_2 +#define CONFIG_OMAP3_GPIO_5  #define CONFIG_VIDEO_OMAP3  #define LCD_BPP		LCD_COLOR16 diff --git a/include/configs/coreboot.h b/include/configs/coreboot.h index 556b42a38..d1d732f21 100644 --- a/include/configs/coreboot.h +++ b/include/configs/coreboot.h @@ -204,7 +204,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE			115200 -#define CONFIG_KGDB_SER_INDEX			2  #endif  /* diff --git a/include/configs/corenet_ds.h b/include/configs/corenet_ds.h index 665295c1a..969b9903f 100644 --- a/include/configs/corenet_ds.h +++ b/include/configs/corenet_ds.h @@ -672,7 +672,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/csb272.h b/include/configs/csb272.h index ca0bffa72..8a848bea8 100644 --- a/include/configs/csb272.h +++ b/include/configs/csb272.h @@ -99,7 +99,6 @@   */  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/csb472.h b/include/configs/csb472.h index 596095d21..5c034175c 100644 --- a/include/configs/csb472.h +++ b/include/configs/csb472.h @@ -98,7 +98,6 @@   */  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h index 48b47cbd0..f210ed8b9 100644 --- a/include/configs/dra7xx_evm.h +++ b/include/configs/dra7xx_evm.h @@ -60,6 +60,7 @@  #define CONFIG_SPI_FLASH_SPANSION  #define CONFIG_CMD_SF  #define CONFIG_CMD_SPI +#define CONFIG_SPI_FLASH_BAR  #define CONFIG_TI_SPI_MMAP  #define CONFIG_SF_DEFAULT_SPEED                48000000  #define CONFIG_DEFAULT_SPI_MODE                SPI_MODE_3 diff --git a/include/configs/dvlhost.h b/include/configs/dvlhost.h index 87b331484..1af7f1698 100644 --- a/include/configs/dvlhost.h +++ b/include/configs/dvlhost.h @@ -57,8 +57,6 @@  #if defined(CONFIG_CMD_KGDB)  # define CONFIG_KGDB_BAUDRATE		230400 -/* which serial port to use */ -# define CONFIG_KGDB_SER_INDEX		1  #endif  /* Miscellaneous configurable options */ diff --git a/include/configs/ecovec.h b/include/configs/ecovec.h index 3483cf1f5..3a5cc7482 100644 --- a/include/configs/ecovec.h +++ b/include/configs/ecovec.h @@ -23,9 +23,6 @@   */  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4		1 -#define CONFIG_SH4A		1  #define CONFIG_CPU_SH7724	1  #define CONFIG_BOARD_LATE_INIT		1  #define CONFIG_ECOVEC		1 diff --git a/include/configs/espt.h b/include/configs/espt.h index 1bd7eeceb..de16be70b 100644 --- a/include/configs/espt.h +++ b/include/configs/espt.h @@ -10,8 +10,6 @@  #ifndef __ESPT_H  #define __ESPT_H -#define CONFIG_SH		1 -#define CONFIG_SH4		1  #define CONFIG_CPU_SH7763	1  #define CONFIG_ESPT	1  #define __LITTLE_ENDIAN		1 diff --git a/include/configs/exynos5-dt.h b/include/configs/exynos5-dt.h index d684790f8..414db420d 100644 --- a/include/configs/exynos5-dt.h +++ b/include/configs/exynos5-dt.h @@ -98,6 +98,7 @@  #define CONFIG_DWMMC  #define CONFIG_EXYNOS_DWMMC  #define CONFIG_SUPPORT_EMMC_BOOT +#define CONFIG_BOUNCE_BUFFER  #define CONFIG_BOARD_EARLY_INIT_F  #define CONFIG_SKIP_LOWLEVEL_INIT diff --git a/include/configs/ib62x0.h b/include/configs/ib62x0.h index 7fa0c5356..186fd35fd 100644 --- a/include/configs/ib62x0.h +++ b/include/configs/ib62x0.h @@ -28,6 +28,11 @@  #define CONFIG_MACH_TYPE	MACH_TYPE_NAS6210  /* + * Enable device tree support + */ +#define CONFIG_OF_LIBFDT + +/*   * Compression configuration   */  #define CONFIG_BZIP2 @@ -41,6 +46,7 @@  #define CONFIG_SYS_MVFS  #include <config_cmd_default.h>  #define CONFIG_CMD_ENV +#define CONFIG_CMD_BOOTZ  #define CONFIG_CMD_IDE  #define CONFIG_CMD_MII  #define CONFIG_CMD_NAND @@ -66,7 +72,7 @@  #define CONFIG_ENV_IS_NOWHERE  #endif  #define CONFIG_ENV_SIZE		0x20000 -#define CONFIG_ENV_OFFSET	0x80000 +#define CONFIG_ENV_OFFSET	0xe0000  /*   * Default environment variables @@ -74,24 +80,26 @@  #define CONFIG_BOOTCOMMAND \  	"setenv bootargs ${console} ${mtdparts} ${bootargs_root}; "	\  	"ubi part root; "						\ -	"ubifsmount ubi:root; "						\ +	"ubifsmount ubi:rootfs; "					\  	"ubifsload 0x800000 ${kernel}; "				\ -	"ubifsload 0x1100000 ${initrd}; "				\ -	"bootm 0x800000 0x1100000" +	"ubifsload 0x700000 ${fdt}; "					\ +	"ubifsumount; "							\ +	"fdt addr 0x700000; fdt resize; fdt chosen; "			\ +	"bootz 0x800000 - 0x700000" -#define CONFIG_MTDPARTS				\ -	"mtdparts=orion_nand:"			\ -	"0x80000@0x0(uboot),"			\ -	"0x20000@0x80000(uboot_env),"		\ -	"-@0xa0000(root)\0" +#define CONFIG_MTDPARTS \ +	"mtdparts=orion_nand:"						\ +	"0xe0000@0x0(uboot),"						\ +	"0x20000@0xe0000(uboot_env),"					\ +	"-@0x100000(root)\0" -#define CONFIG_EXTRA_ENV_SETTINGS					\ +#define CONFIG_EXTRA_ENV_SETTINGS \  	"console=console=ttyS0,115200\0"				\  	"mtdids=nand0=orion_nand\0"					\  	"mtdparts="CONFIG_MTDPARTS					\ -	"kernel=/boot/uImage\0"						\ -	"initrd=/boot/uInitrd\0"					\ -	"bootargs_root=ubi.mtd=2 root=ubi0:root rootfstype=ubifs\0" +	"kernel=/boot/zImage\0"						\ +	"fdt=/boot/ib62x0.dtb\0"					\ +	"bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs rw\0"  /*   * Ethernet driver configuration diff --git a/include/configs/km/kmp204x-common.h b/include/configs/km/kmp204x-common.h index 7700b38c2..50330ccf6 100644 --- a/include/configs/km/kmp204x-common.h +++ b/include/configs/km/kmp204x-common.h @@ -385,7 +385,6 @@ unsigned long get_board_sys_clk(unsigned long dummy);  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  #define __USB_PHY_TYPE	utmi diff --git a/include/configs/km_kirkwood.h b/include/configs/km_kirkwood.h index 0e6073c64..74c72325f 100644 --- a/include/configs/km_kirkwood.h +++ b/include/configs/km_kirkwood.h @@ -35,6 +35,16 @@  #define CONFIG_KM_IVM_BUS		1	/* I2C2 (Mux-Port 1)*/  #define CONFIG_KM_FPGA_CONFIG +/* KM_KIRKWOOD_128M16 */ +#elif defined(CONFIG_KM_KIRKWOOD_128M16) +#define CONFIG_IDENT_STRING		"\nKeymile Kirkwood 128M16" +#define CONFIG_HOSTNAME			km_kirkwood_128m16 +#undef CONFIG_SYS_KWD_CONFIG +#define CONFIG_SYS_KWD_CONFIG \ +		$(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage_128M16_1.cfg +#define CONFIG_KM_DISABLE_PCIE +#define CONFIG_KM_IVM_BUS		1	/* I2C2 (Mux-Port 1)*/ +  /* KM_NUSA */  #elif defined(CONFIG_KM_NUSA)  #define CONFIG_KM_IVM_BUS		1	/* I2C2 (Mux-Port 1)*/ diff --git a/include/configs/koelsch.h b/include/configs/koelsch.h index f8cca5b28..cc3c7a8e6 100644 --- a/include/configs/koelsch.h +++ b/include/configs/koelsch.h @@ -31,7 +31,16 @@  #define CONFIG_CMD_DHCP  #define CONFIG_CMD_NFS  #define CONFIG_CMD_BOOTZ + +#if defined(CONFIG_SYS_USE_BOOT_NORFLASH)  #define	CONFIG_CMD_FLASH +#define CONFIG_SYS_TEXT_BASE	0x00000000 +#else +/* SPI flash boot is default. */ +#define CONFIG_CMD_SF +#define CONFIG_CMD_SPI +#define CONFIG_SYS_TEXT_BASE	0xE6304000 +#endif  #define	CONFIG_CMDLINE_TAG  #define	CONFIG_SETUP_MEMORY_TAGS @@ -101,7 +110,7 @@  #define CONFIG_SYS_BOOTMAPSZ		(8 * 1024 * 1024)  /* FLASH */ -#define CONFIG_SYS_TEXT_BASE	0x00000000 +#if defined(CONFIG_SYS_USE_BOOT_NORFLASH)  #define CONFIG_SYS_FLASH_CFI  #define CONFIG_SYS_FLASH_CFI_WIDTH	FLASH_CFI_16BIT  #define	CONFIG_FLASH_CFI_DRIVER @@ -117,13 +126,28 @@  #define CONFIG_SYS_FLASH_WRITE_TOUT	3000  #define CONFIG_SYS_FLASH_LOCK_TOUT	3000  #define CONFIG_SYS_FLASH_UNLOCK_TOUT	3000 -  /* ENV setting */  #define CONFIG_ENV_IS_IN_FLASH -#define CONFIG_ENV_OVERWRITE	1 -#define CONFIG_ENV_SECT_SIZE	(256 * 1024)  #define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + \  				 CONFIG_SYS_MONITOR_LEN) + +#else /* CONFIG_SYS_USE_BOOT_NORFLASH */ + +#define CONFIG_SYS_NO_FLASH +#define CONFIG_SPI +#define CONFIG_SH_QSPI +#define CONFIG_SPI_FLASH +#define CONFIG_SPI_FLASH_BAR +#define CONFIG_SPI_FLASH_SPANSION +/* ENV setting */ +#define CONFIG_ENV_IS_IN_SPI_FLASH +#define CONFIG_ENV_ADDR	0xC0000 + +#endif /* CONFIG_SYS_USE_BOOT_NORFLASH */ + +/* Common ENV setting */ +#define CONFIG_ENV_OVERWRITE +#define CONFIG_ENV_SECT_SIZE	(256 * 1024)  #define CONFIG_ENV_OFFSET	(CONFIG_ENV_ADDR)  #define CONFIG_ENV_SIZE		(CONFIG_ENV_SECT_SIZE)  #define CONFIG_ENV_SIZE_REDUND	(CONFIG_SYS_MONITOR_LEN) diff --git a/include/configs/korat.h b/include/configs/korat.h index b09af199c..811ff995e 100644 --- a/include/configs/korat.h +++ b/include/configs/korat.h @@ -542,7 +542,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400 /* speed to run kgdb serial port	*/ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use	*/  #endif  /* Pass open firmware flat tree */ diff --git a/include/configs/lager.h b/include/configs/lager.h index 893282540..b6c1954a9 100644 --- a/include/configs/lager.h +++ b/include/configs/lager.h @@ -34,7 +34,15 @@  #define CONFIG_CMD_DHCP  #define CONFIG_CMD_NFS  #define CONFIG_CMD_BOOTZ -#define	CONFIG_CMD_FLASH + +#if defined(CONFIG_SYS_USE_BOOT_NORFLASH) +#define CONFIG_CMD_FLASH +#define CONFIG_SYS_TEXT_BASE	0x00000000 +#else +#define CONFIG_CMD_SF +#define CONFIG_CMD_SPI +#define CONFIG_SYS_TEXT_BASE	0xE8080000 +#endif  #define	CONFIG_CMDLINE_TAG  #define	CONFIG_SETUP_MEMORY_TAGS @@ -104,8 +112,8 @@  #define CONFIG_SYS_GBL_DATA_SIZE	(256)  #define CONFIG_SYS_BOOTMAPSZ		(8 * 1024 * 1024) +#if defined(CONFIG_SYS_USE_BOOT_NORFLASH)  /* USE NOR FLASH */ -#define CONFIG_SYS_TEXT_BASE	0x00000000  #define CONFIG_SYS_FLASH_CFI  #define CONFIG_SYS_FLASH_CFI_WIDTH	FLASH_CFI_16BIT  #define	CONFIG_FLASH_CFI_DRIVER @@ -124,10 +132,27 @@  /* ENV setting */  #define CONFIG_ENV_IS_IN_FLASH -#define CONFIG_ENV_OVERWRITE	1 -#define CONFIG_ENV_SECT_SIZE	(256 * 1024)  #define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + \  				 CONFIG_SYS_MONITOR_LEN) + +#else /* CONFIG_SYS_USE_BOOT_NORFLASH */ + +/* USE SPI */ +#define CONFIG_SPI +#define CONFIG_SPI_FLASH_BAR +#define CONFIG_SH_QSPI +#define CONFIG_SPI_FLASH +#define CONFIG_SPI_FLASH_SPANSION +#define CONFIG_SYS_NO_FLASH + +/* ENV setting */ +#define CONFIG_ENV_IS_IN_SPI_FLASH +#define CONFIG_ENV_ADDR	0xC0000 +#endif + +/* Common ENV setting */ +#define CONFIG_ENV_OVERWRITE +#define CONFIG_ENV_SECT_SIZE	(256 * 1024)  #define CONFIG_ENV_OFFSET	(CONFIG_ENV_ADDR)  #define CONFIG_ENV_SIZE		(CONFIG_ENV_SECT_SIZE)  #define CONFIG_ENV_SIZE_REDUND	(CONFIG_SYS_MONITOR_LEN) diff --git a/include/configs/linkstation.h b/include/configs/linkstation.h deleted file mode 100644 index fcd809dfb..000000000 --- a/include/configs/linkstation.h +++ /dev/null @@ -1,504 +0,0 @@ -/* - * Copyright (C) 2006 Mihai Georgian <u-boot@linuxnotincluded.org.uk> - * - * SPDX-License-Identifier:	GPL-2.0+ - */ - -#ifndef __CONFIG_H -#define __CONFIG_H - -/* - * Valid values for CONFIG_SYS_TEXT_BASE are: - * - * Standard configuration - all models - * 0xFFF00000	boot from flash - * - * Test configuration (boot from RAM using uloader.o) - * LinkStation HD-HLAN and KuroBox Standard - * 0x03F00000	boot from RAM - * LinkStation HD-HGLAN and KuroBox HG - * 0x07F00000	boot from RAM - */ -#ifndef CONFIG_SYS_TEXT_BASE -#define CONFIG_SYS_TEXT_BASE	0xFFF00000 -#endif - -#if 0 -#define DEBUG -#endif - -#define CONFIG_BOARD_EARLY_INIT_F 1	/* Call board_early_init_f	*/ - -/*----------------------------------------------------------------------- - * User configurable settings: - *   Mandatory settings: - *     CONFIG_IPADDR_LS		- the IP address of the LinkStation - *     CONFIG_SERVERIP_LS	- the address of the server for NFS/TFTP/DHCP/BOOTP - *   Optional settins: - *     CONFIG_NCIP_LS		- the adress of the computer running net console - *							  if not configured, it will be set to - *							  CONFIG_SERVERIP_LS - */ - - -#define CONFIG_IPADDR_LS	192.168.11.150 -#define CONFIG_SERVERIP_LS	192.168.11.149 - -#if !defined(CONFIG_IPADDR_LS) || !defined(CONFIG_SERVERIP_LS) -#error Both CONFIG_IPADDR_LS and CONFIG_SERVERIP_LS must be defined -#endif - -#if !defined(CONFIG_NCIP_LS) -#define CONFIG_NCIP_LS		CONFIG_SERVERIP_LS -#endif - -/*---------------------------------------------------------------------- - * DO NOT CHANGE ANYTHING BELOW, UNLESS YOU KNOW WHAT YOU ARE DOING - *---------------------------------------------------------------------*/ - -#define CONFIG_MPC8245		1 -#define CONFIG_LINKSTATION	1 - -/*--------------------------------------- - * Supported models - * - * LinkStation HDLAN /KuroBox Standard (CONFIG_HLAN) - * LinkStation old model               (CONFIG_LAN) - totally untested - * LinkStation HGLAN / KuroBox HG      (CONFIG_HGLAN) - * - * Models not supported yet - * TeraStatin                          (CONFIG_HTGL) - */ - -#if defined(CONFIG_HLAN) || defined(CONFIG_LAN) -#define CONFIG_IDENT_STRING		" LinkStation / KuroBox" -#elif defined(CONFIG_HGLAN) -#define CONFIG_IDENT_STRING		" LinkStation HG / KuroBox HG" -#elif defined(CONFIG_HTGL) -#define CONFIG_IDENT_STRING		" TeraStation" -#else -#error No LinkStation model defined -#endif - -#define CONFIG_BOOTDELAY	5 -#define CONFIG_ZERO_BOOTDELAY_CHECK -#undef CONFIG_BOOT_RETRY_TIME - -#define CONFIG_AUTOBOOT_KEYED -#define CONFIG_AUTOBOOT_PROMPT		\ -	"Boot in %02d seconds ('s' to stop)...", bootdelay -#define CONFIG_AUTOBOOT_STOP_STR	"s" - -#define CONFIG_CMD_IDE -#define CONFIG_CMD_PCI -#define CONFIG_CMD_DHCP -#define CONFIG_CMD_PING -#define CONFIG_CMD_EXT2 - -#define CONFIG_BOOTP_SUBNETMASK -#define CONFIG_BOOTP_GATEWAY -#define CONFIG_BOOTP_HOSTNAME -#define CONFIG_BOOTP_NISDOMAIN -#define CONFIG_BOOTP_BOOTPATH -#define CONFIG_BOOTP_BOOTFILESIZE -#define CONFIG_BOOTP_DNS -#define CONFIG_BOOTP_DNS2 -#define CONFIG_BOOTP_SEND_HOSTNAME -#define CONFIG_BOOTP_NTPSERVER -#define CONFIG_BOOTP_TIMEOFFSET - -#define CONFIG_OF_LIBFDT	1 - -#define OF_STDOUT_PATH		"/soc10x/serial@80004600" - -/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */ -#include <config_cmd_default.h> - -/* - * Miscellaneous configurable options - */ -#define CONFIG_SYS_LONGHELP				/* undef to save memory		*/ -#define CONFIG_SYS_CBSIZE		256		/* Console I/O Buffer Size	*/ - -#define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) -#define CONFIG_SYS_MAXARGS		16		/* Max number of command args	*/ -#define CONFIG_SYS_BARGSIZE		CONFIG_SYS_CBSIZE	/* Boot Argument Buffer Size	*/ -#define CONFIG_SYS_LOAD_ADDR		0x00800000	/* Default load address: 8 MB	*/ - -#define CONFIG_BOOTCOMMAND	"run bootcmd1" -#define CONFIG_BOOTARGS		"root=/dev/sda1 console=ttyS1,57600 netconsole=@192.168.1.7/eth0,@192.168.1.1/00:50:BF:A4:59:71 rtc-rs5c372.probe=0,0x32 debug" -#define CONFIG_NFSBOOTCOMMAND	"bootp;run nfsargs;bootm" - -#define CONFIG_SYS_CONSOLE_IS_IN_ENV - -#if defined(CONFIG_HLAN) || defined(CONFIG_LAN) -#define UBFILE			"share/u-boot/u-boot-hd.flash.bin" -#elif defined(CONFIG_HGLAN) -#define UBFILE			"share/u-boot/u-boot-hg.flash.bin" -#elif defined(CONFIG_HTGL) -#define UBFILE			"share/u-boot/u-boot-ht.flash.bin" -#else -#error No LinkStation model defined -#endif - -#define CONFIG_EXTRA_ENV_SETTINGS						\ -	"autoload=no\0"								\ -	"stdin=nc\0"								\ -	"stdout=nc\0"								\ -	"stderr=nc\0"								\ -	"ipaddr="__stringify(CONFIG_IPADDR_LS)"\0"			\ -	"netmask=255.255.255.0\0"						\ -	"serverip="__stringify(CONFIG_SERVERIP_LS)"\0"			\ -	"ncip="__stringify(CONFIG_NCIP_LS)"\0"				\ -	"netretry=no\0"								\ -	"nc=setenv stdin nc;setenv stdout nc;setenv stderr nc\0"		\ -	"ser=setenv stdin serial;setenv stdout serial;setenv stderr serial\0"	\ -	"ldaddr=800000\0"							\ -	"hdpart=0:1\0"								\ -	"hdfile=boot/uImage\0"							\ -	"hdload=echo Loading ${hdpart}:${hdfile};ext2load ide ${hdpart} ${ldaddr} ${hdfile};ext2load ide ${hdpart} 7f0000 boot/kuroboxHG.dtb\0"	\ -	"boothd=setenv bootargs " CONFIG_BOOTARGS ";bootm ${ldaddr} - 7f0000\0"	\ -	"hdboot=run hdload;run boothd\0"					\ -	"flboot=setenv bootargs root=/dev/hda1;bootm ffc00000\0"		\ -	"emboot=setenv bootargs root=/dev/ram0;bootm ffc00000\0"		\ -	"nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} "	\ -	"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off\0"	\ -	"bootretry=30\0"							\ -	"bootcmd1=run hdboot;run flboot\0"					\ -	"bootcmd2=run flboot\0"							\ -	"bootcmd3=run emboot\0"							\ -	"writeng=protect off fff70000 fff7ffff;era fff70000 fff7ffff;mw.l 800000 4e474e47 1;cp.b 800000 fff70000 4\0" \ -	"writeok=protect off fff70000 fff7ffff;era fff70000 fff7ffff;mw.l 800000 4f4b4f4b 1;cp.b 800000 fff70000 4\0" \ -	"ubpart=0:3\0"								\ -	"ubfile="UBFILE"\0"							\ -	"ubload=echo Loading ${ubpart}:${ubfile};ext2load ide ${ubpart} ${ldaddr} ${ubfile}\0" \ -	"ubsaddr=fff00000\0"							\ -	"ubeaddr=fff2ffff\0"							\ -	"ubflash=protect off ${ubsaddr} ${ubeaddr};era ${ubsaddr} ${ubeaddr};cp.b ${ldaddr} ${ubsaddr} ${filesize};cmp.b ${ldaddr} ${ubsaddr} ${filesize}\0" \ -	"upgrade=run ubload ubflash\0" - -/*----------------------------------------------------------------------- - * PCI stuff - */ -#define CONFIG_PCI -#define CONFIG_PCI_INDIRECT_BRIDGE -/* Verified: CONFIG_PCI_PNP doesn't work */ -#undef CONFIG_PCI_PNP -#define CONFIG_PCI_SCAN_SHOW - -#ifndef CONFIG_PCI_PNP -/* Keep the following defines in sync with the BAT mappings */ - -#define PCI_ETH_IOADDR      0xbfff00 -#define PCI_ETH_MEMADDR     0xbffffc00 -#define PCI_IDE_IOADDR      0xbffed0 -#define PCI_IDE_MEMADDR     0xbffffb00 -#define PCI_USB0_IOADDR     0 -#define PCI_USB0_MEMADDR    0xbfffe000 -#define PCI_USB1_IOADDR     0 -#define PCI_USB1_MEMADDR    0xbfffd000 -#define PCI_USB2_IOADDR     0 -#define PCI_USB2_MEMADDR    0xbfffcf00 - -#endif - -/*----------------------------------------------------------------------- - * Ethernet stuff - */ - -#if defined(CONFIG_LAN) || defined(CONFIG_HLAN) -#define CONFIG_TULIP -#define CONFIG_TULIP_USE_IO -#elif defined(CONFIG_HGLAN) || defined(CONFIG_HTGL) -#define CONFIG_RTL8169 -#endif - -#define CONFIG_NET_RETRY_COUNT		5 - -#define CONFIG_NETCONSOLE - -/*----------------------------------------------------------------------- - * Start addresses for the final memory configuration - * (Set up by the startup code) - * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0 - */ -#define CONFIG_SYS_SDRAM_BASE		0x00000000 - -#define CONFIG_SYS_FLASH_BASE		0xFFC00000 -#define CONFIG_SYS_FLASH_SIZE		0x00400000 -#define CONFIG_SYS_MONITOR_BASE	CONFIG_SYS_TEXT_BASE - -#define CONFIG_SYS_RESET_ADDRESS	0xFFF00100 -#define CONFIG_SYS_EUMB_ADDR		0x80000000 -#define CONFIG_SYS_PCI_MEM_ADDR	0xB0000000 -#define CONFIG_SYS_MISC_REGION_ADDR	0xFE000000 - -#define CONFIG_SYS_MONITOR_LEN		0x00040000	/* 256 kB			*/ -#define CONFIG_SYS_MALLOC_LEN		(512 << 10)	/* Reserve some kB for malloc()	*/ - -#define CONFIG_SYS_MEMTEST_START	0x00100000	/* memtest works on		*/ -#define CONFIG_SYS_MEMTEST_END		0x00800000	/* 1M ... 8M in DRAM		*/ - -/* Maximum amount of RAM */ -#if defined(CONFIG_HLAN) || defined(CONFIG_LAN) -#define CONFIG_SYS_MAX_RAM_SIZE	0x04000000	/* 64MB of SDRAM  */ -#elif defined(CONFIG_HGLAN) || defined(CONFIG_HTGL) -#define CONFIG_SYS_MAX_RAM_SIZE	0x08000000	/* 128MB of SDRAM */ -#else -#error Unknown LinkStation type -#endif - -/*----------------------------------------------------------------------- - * Change CONFIG_SYS_TEXT_BASE in bord/linkstation/config.mk to get a RAM build - * - * RAM based builds are for testing purposes. A Linux module, uloader.o, - * exists to load U-Boot and pass control to it - * - * Always do "make clean" after changing the build type - */ -#if CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE -#define CONFIG_SYS_RAMBOOT -#endif - -/*----------------------------------------------------------------------- - * Definitions for initial stack pointer and data area - */ -#if 1 /* RAM is available when the first C function is called */ -#define CONFIG_SYS_INIT_RAM_ADDR	(CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_MAX_RAM_SIZE - 0x1000) -#else -#define CONFIG_SYS_INIT_RAM_ADDR	0x40000000 -#endif -#define CONFIG_SYS_INIT_RAM_SIZE	0x1000 -#define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) - -/*---------------------------------------------------------------------- - * Serial configuration - */ -#define CONFIG_CONS_INDEX	1 -#define CONFIG_BAUDRATE		57600 - -#define CONFIG_SYS_NS16550 -#define CONFIG_SYS_NS16550_SERIAL - -#define CONFIG_SYS_NS16550_REG_SIZE	1 - -#define CONFIG_SYS_NS16550_CLK		get_bus_freq(0) - -#define CONFIG_SYS_NS16550_COM1	(CONFIG_SYS_EUMB_ADDR + 0x4600)	/* Console port	*/ -#define CONFIG_SYS_NS16550_COM2	(CONFIG_SYS_EUMB_ADDR + 0x4500)	/* AVR port	*/ - -/* - * Low Level Configuration Settings - * (address mappings, register initial values, etc.) - * You should know what you are doing if you make changes here. - * For the detail description refer to the MPC8245 user's manual. - * - * Unless indicated otherwise, the values are - * taken from the orignal Linkstation boot code - * - * Most of the low level configuration setttings are normally used - * in arch/powerpc/cpu/mpc824x/cpu_init.c which is NOT used by this implementation. - * Low level initialisation is done in board/linkstation/early_init.S - * The values below are included for reference purpose only - */ - -/* FIXME: 32.768 MHz is the crystal frequency but */ -/* the real frequency is lower by about 0.75%     */ -#define CONFIG_SYS_CLK_FREQ	32768000 - -/* Bit-field values for MCCR1.  */ -#define CONFIG_SYS_ROMNAL      0 -#define CONFIG_SYS_ROMFAL      11 - -#define CONFIG_SYS_BANK0_ROW	2       /* Only bank 0 used: 13 x n x 4 */ -#define CONFIG_SYS_BANK1_ROW	0 -#define CONFIG_SYS_BANK2_ROW	0 -#define CONFIG_SYS_BANK3_ROW	0 -#define CONFIG_SYS_BANK4_ROW	0 -#define CONFIG_SYS_BANK5_ROW	0 -#define CONFIG_SYS_BANK6_ROW	0 -#define CONFIG_SYS_BANK7_ROW	0 - -/* Bit-field values for MCCR2.  */ -#define CONFIG_SYS_TSWAIT      0 -#if defined(CONFIG_LAN) || defined(CONFIG_HLAN) -#define CONFIG_SYS_REFINT      0x15e0 -#elif defined(CONFIG_HGLAN) || defined(CONFIG_HTGL) -#define CONFIG_SYS_REFINT      0x1580 -#endif - -/* Burst To Precharge. Bits of this value go to MCCR3 and MCCR4. */ -#define CONFIG_SYS_BSTOPRE	0x91c - -/* Bit-field values for MCCR3.  */ -#define CONFIG_SYS_REFREC      7 - -/* Bit-field values for MCCR4.  */ -#define CONFIG_SYS_PRETOACT		2 -#define CONFIG_SYS_ACTTOPRE		2	/* Original value was 2	*/ -#define CONFIG_SYS_ACTORW		2 -#if defined(CONFIG_LAN) || defined(CONFIG_HLAN) -#define CONFIG_SYS_SDMODE_CAS_LAT	2	/* For 100MHz bus	*/ -/*#define CONFIG_SYS_SDMODE_BURSTLEN	3*/ -#elif defined(CONFIG_HGLAN) || defined(CONFIG_HTGL) -#define CONFIG_SYS_SDMODE_CAS_LAT	3	/* For 133MHz bus	*/ -/*#define CONFIG_SYS_SDMODE_BURSTLEN	2*/ -#endif -#define CONFIG_SYS_REGISTERD_TYPE_BUFFER 1 -#define CONFIG_SYS_EXTROM		1	/* Original setting but there is no EXTROM */ -#define CONFIG_SYS_REGDIMM		0 -#define CONFIG_SYS_DBUS_SIZE2		1 -#define CONFIG_SYS_SDMODE_WRAP		0 - -#define CONFIG_SYS_PGMAX		0x32	/* All boards use this setting. Original 0x92 */ -#define CONFIG_SYS_SDRAM_DSCD		0x30 - -/* Memory bank settings. - * Only bits 20-29 are actually used from these vales to set the - * start/end addresses. The upper two bits will always be 0, and the lower - * 20 bits will be 0x00000 for a start address, or 0xfffff for an end - * address. Refer to the MPC8240 book. - */ - -#define CONFIG_SYS_BANK0_START	    0x00000000 -#define CONFIG_SYS_BANK0_END	    (CONFIG_SYS_MAX_RAM_SIZE - 1) -#define CONFIG_SYS_BANK0_ENABLE    1 -#define CONFIG_SYS_BANK1_START     0x3ff00000 -#define CONFIG_SYS_BANK1_END       0x3fffffff -#define CONFIG_SYS_BANK1_ENABLE    0 -#define CONFIG_SYS_BANK2_START     0x3ff00000 -#define CONFIG_SYS_BANK2_END       0x3fffffff -#define CONFIG_SYS_BANK2_ENABLE    0 -#define CONFIG_SYS_BANK3_START     0x3ff00000 -#define CONFIG_SYS_BANK3_END       0x3fffffff -#define CONFIG_SYS_BANK3_ENABLE    0 -#define CONFIG_SYS_BANK4_START     0x3ff00000 -#define CONFIG_SYS_BANK4_END       0x3fffffff -#define CONFIG_SYS_BANK4_ENABLE    0 -#define CONFIG_SYS_BANK5_START     0x3ff00000 -#define CONFIG_SYS_BANK5_END       0x3fffffff -#define CONFIG_SYS_BANK5_ENABLE    0 -#define CONFIG_SYS_BANK6_START     0x3ff00000 -#define CONFIG_SYS_BANK6_END       0x3fffffff -#define CONFIG_SYS_BANK6_ENABLE    0 -#define CONFIG_SYS_BANK7_START     0x3ff00000 -#define CONFIG_SYS_BANK7_END       0x3fffffff -#define CONFIG_SYS_BANK7_ENABLE    0 - -#define CONFIG_SYS_ODCR	    0x15 - -/*---------------------------------------------------------------------- - * Initial BAT mappings - */ - -/* NOTES: - * 1) GUARDED and WRITETHROUGH not allowed in IBATS - * 2) CACHEINHIBIT and WRITETHROUGH not allowed together in same BAT - */ - -/* SDRAM */ -#define CONFIG_SYS_IBAT0L	(CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE) -#define CONFIG_SYS_IBAT0U	(CONFIG_SYS_SDRAM_BASE | BATU_BL_128M | BATU_VS | BATU_VP) - -#define CONFIG_SYS_DBAT0L	CONFIG_SYS_IBAT0L -#define CONFIG_SYS_DBAT0U	CONFIG_SYS_IBAT0U - -/* EUMB: 1MB of address space */ -#define CONFIG_SYS_IBAT1L	(CONFIG_SYS_EUMB_ADDR | BATL_PP_10 | BATL_CACHEINHIBIT) -#define CONFIG_SYS_IBAT1U	(CONFIG_SYS_EUMB_ADDR | BATU_BL_1M | BATU_VS | BATU_VP) - -#define CONFIG_SYS_DBAT1L	(CONFIG_SYS_IBAT1L | BATL_GUARDEDSTORAGE) -#define CONFIG_SYS_DBAT1U	CONFIG_SYS_IBAT1U - -/* PCI Mem: 256MB of address space */ -#define CONFIG_SYS_IBAT2L	(CONFIG_SYS_PCI_MEM_ADDR | BATL_PP_10 | BATL_CACHEINHIBIT) -#define CONFIG_SYS_IBAT2U	(CONFIG_SYS_PCI_MEM_ADDR | BATU_BL_256M | BATU_VS | BATU_VP) - -#define CONFIG_SYS_DBAT2L	(CONFIG_SYS_IBAT2L | BATL_GUARDEDSTORAGE) -#define CONFIG_SYS_DBAT2U	CONFIG_SYS_IBAT2U - -/* PCI and local ROM/Flash: last 32MB of address space */ -#define CONFIG_SYS_IBAT3L	(CONFIG_SYS_MISC_REGION_ADDR | BATL_PP_10 | BATL_CACHEINHIBIT) -#define CONFIG_SYS_IBAT3U	(CONFIG_SYS_MISC_REGION_ADDR | BATU_BL_32M | BATU_VS | BATU_VP) - -#define CONFIG_SYS_DBAT3L	(CONFIG_SYS_IBAT3L | BATL_GUARDEDSTORAGE) -#define CONFIG_SYS_DBAT3U	CONFIG_SYS_IBAT3U - -/* - * For booting Linux, the board info and command line data - * have to be in the first 8 MB of memory, since this is - * the maximum mapped by the Linux kernel during initialization. - * - * FIXME: This doesn't appear to be true for the newer kernels - * which map more that 8 MB - */ -#define CONFIG_SYS_BOOTMAPSZ	(8 << 20)	/* Initial Memory map for Linux */ - -/*----------------------------------------------------------------------- - * FLASH organization - */ -#define CONFIG_SYS_FLASH_CFI			/* The flash is CFI compatible	*/ -#define CONFIG_FLASH_CFI_DRIVER		/* Use common CFI driver	*/ - -#undef  CONFIG_SYS_FLASH_PROTECTION -#define CONFIG_SYS_FLASH_BANKS_LIST	{ CONFIG_SYS_FLASH_BASE } -#define CONFIG_SYS_MAX_FLASH_BANKS	1	/* Max number of flash banks		*/ -#define CONFIG_SYS_MAX_FLASH_SECT	72	/* Max number of sectors per flash	*/ - -#define CONFIG_SYS_FLASH_ERASE_TOUT	12000 -#define CONFIG_SYS_FLASH_WRITE_TOUT	1000 - -#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1	/* use buffered writes (20x faster)	*/ - -#define CONFIG_SYS_FLASH_EMPTY_INFO		/* print 'E' for empty sector on flinfo */ -#define CONFIG_SYS_FLASH_QUIET_TEST	1	/* don't warn upon unknown flash	*/ - -#define CONFIG_ENV_IS_IN_FLASH -/* - * The original LinkStation flash organisation uses - * 448 kB (0xFFF00000 - 0xFFF6FFFF) for the boot loader - * We use the last sector of this area to store the environment - * which leaves max. 384 kB for the U-Boot itself - */ -#define CONFIG_ENV_ADDR		0xFFF60000 -#define CONFIG_ENV_SIZE		0x00010000 -#define CONFIG_ENV_SECT_SIZE	0x00010000 - -/*----------------------------------------------------------------------- - * Cache Configuration - */ -#define CONFIG_SYS_CACHELINE_SIZE	32 -#ifdef CONFIG_CMD_KGDB -#define CONFIG_SYS_CACHELINE_SHIFT	5	/* log base 2 of the above value	*/ -#endif - -/*----------------------------------------------------------------------- - * IDE/ATA definitions - */ -#undef  CONFIG_IDE_LED				/* No IDE LED			*/ -#define CONFIG_IDE_RESET			/* no reset for ide supported	*/ -#define CONFIG_IDE_PREINIT			/* check for units		*/ -#define CONFIG_LBA48				/* 48 bit LBA supported		*/ - -#if defined(CONFIG_LAN) || defined(CONFIG_HLAN) || defined(CONFIG_HGLAN) -#define CONFIG_SYS_IDE_MAXBUS		1		/* Scan only 1 IDE bus		*/ -#define CONFIG_SYS_IDE_MAXDEVICE	1		/* Only 1 drive per IDE bus	*/ -#elif defined(CONFIG_HGTL) -#define CONFIG_SYS_IDE_MAXBUS		2		/* Max. 2 IDE busses		*/ -#define CONFIG_SYS_IDE_MAXDEVICE	2		/* max. 2 drives per IDE bus	*/ -#else -#error Config IDE: Unknown LinkStation type -#endif - -#define CONFIG_SYS_ATA_BASE_ADDR	0 - -#define CONFIG_SYS_ATA_DATA_OFFSET	0		/* Offset for data I/O		*/ -#define CONFIG_SYS_ATA_REG_OFFSET	0		/* Offset for normal registers	*/ -#define CONFIG_SYS_ATA_ALT_OFFSET	0		/* Offset for alternate registers */ - -/*----------------------------------------------------------------------- - * Partitions and file system - */ -#define CONFIG_DOS_PARTITION - -#endif	/* __CONFIG_H */ diff --git a/include/configs/lp8x4x.h b/include/configs/lp8x4x.h index 8e58fea3b..a26937265 100644 --- a/include/configs/lp8x4x.h +++ b/include/configs/lp8x4x.h @@ -93,7 +93,6 @@   */  #ifdef	CONFIG_CMD_KGDB  #define	CONFIG_KGDB_BAUDRATE		230400	/* kgdb serial port speed */ -#define	CONFIG_KGDB_SER_INDEX		2	/* which serial port to use */  #endif  /* diff --git a/include/configs/lubbock.h b/include/configs/lubbock.h index b87df5479..4ffe165de 100644 --- a/include/configs/lubbock.h +++ b/include/configs/lubbock.h @@ -86,7 +86,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400		/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2		/* which serial port to use */  #endif  /* diff --git a/include/configs/lwmon5.h b/include/configs/lwmon5.h index c348329cb..e9c8d8fd5 100644 --- a/include/configs/lwmon5.h +++ b/include/configs/lwmon5.h @@ -660,7 +660,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	    /* which serial port to use */  #endif  /* diff --git a/include/configs/mecp5123.h b/include/configs/mecp5123.h index 6501ea40e..d415ecdb5 100644 --- a/include/configs/mecp5123.h +++ b/include/configs/mecp5123.h @@ -364,7 +364,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/mpc5121ads.h b/include/configs/mpc5121ads.h index 4a8adf6f3..38337b456 100644 --- a/include/configs/mpc5121ads.h +++ b/include/configs/mpc5121ads.h @@ -520,7 +520,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/mpq101.h b/include/configs/mpq101.h index ec09e15db..4cac8ee46 100644 --- a/include/configs/mpq101.h +++ b/include/configs/mpq101.h @@ -345,7 +345,6 @@  #ifdef CONFIG_CMD_KGDB  # define CONFIG_KGDB_BAUDRATE  230400 /* speed to run kgdb serial port */ -# define CONFIG_KGDB_SER_INDEX 2      /* which serial port to use */  #endif  /* diff --git a/include/configs/mpr2.h b/include/configs/mpr2.h index fcf237edb..8ae497c6d 100644 --- a/include/configs/mpr2.h +++ b/include/configs/mpr2.h @@ -24,8 +24,6 @@  #define CONFIG_VERSION_VARIABLE  /* CPU and platform */ -#define CONFIG_SH		1 -#define CONFIG_SH3		1  #define CONFIG_CPU_SH7720	1  #define CONFIG_MPR2		1 diff --git a/include/configs/ms7720se.h b/include/configs/ms7720se.h index ec8523eb9..585d68f20 100644 --- a/include/configs/ms7720se.h +++ b/include/configs/ms7720se.h @@ -9,8 +9,6 @@  #ifndef __MS7720SE_H  #define __MS7720SE_H -#define CONFIG_SH		1 -#define CONFIG_SH3		1  #define CONFIG_CPU_SH7720	1  #define CONFIG_MS7720SE		1 diff --git a/include/configs/ms7722se.h b/include/configs/ms7722se.h index 54fb7c3e8..1c8ada6c0 100644 --- a/include/configs/ms7722se.h +++ b/include/configs/ms7722se.h @@ -9,8 +9,6 @@  #ifndef __MS7722SE_H  #define __MS7722SE_H -#define CONFIG_SH		1 -#define CONFIG_SH4		1  #define CONFIG_CPU_SH7722	1  #define CONFIG_MS7722SE		1 diff --git a/include/configs/ms7750se.h b/include/configs/ms7750se.h index eea3bd1f2..4cf8efeca 100644 --- a/include/configs/ms7750se.h +++ b/include/configs/ms7750se.h @@ -9,8 +9,6 @@  #ifndef __MS7750SE_H  #define __MS7750SE_H -#define CONFIG_SH		1 -#define CONFIG_SH4		1  #define CONFIG_CPU_SH7750	1  /* #define CONFIG_CPU_SH7751	1 */  /* #define CONFIG_CPU_TYPE_R	1 */ diff --git a/include/configs/mx1ads.h b/include/configs/mx1ads.h deleted file mode 100644 index c15d54631..000000000 --- a/include/configs/mx1ads.h +++ /dev/null @@ -1,165 +0,0 @@ -/* - * include/configs/mx1ads.h - * - * (c) Copyright 2004 - * Techware Information Technology, Inc. - * http://www.techware.com.tw/ - * - * Ming-Len Wu <minglen_wu@techware.com.tw> - * - * This is the Configuration setting for Motorola MX1ADS board - * - * SPDX-License-Identifier:	GPL-2.0+ - */ - -#ifndef __CONFIG_H -#define __CONFIG_H - -/* - * High Level Configuration Options - * (easy to change) - */ -#define CONFIG_ARM920T		1	/* This is an ARM920T Core		*/ -#define CONFIG_IMX		1	/* It's a Motorola MC9328 SoC		*/ -#define CONFIG_MX1ADS		1	/* on a Motorola MX1ADS Board		*/ - -/* - * Select serial console configuration -  */ -#define CONFIG_IMX_SERIAL -#define CONFIG_IMX_SERIAL1		/* internal uart 1 */ -/* #define _CONFIG_UART2 */		/* internal uart 2 */ -/* #define CONFIG_SILENT_CONSOLE */	/* use this to disable output */ - -#define CONFIG_BOARD_LATE_INIT -#define USE_920T_MMU		1 - -#if 0 -#define CONFIG_SYS_MX1_GPCR		0x000003AB	/* for MX1ADS 0L44N		*/ -#define CONFIG_SYS_MX1_GPCR		0x000003AB	/* for MX1ADS 0L44N		*/ -#define CONFIG_SYS_MX1_GPCR		0x000003AB	/* for MX1ADS 0L44N		*/ -#endif - -/* - * Size of malloc() pool - */ - -#define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + 128*1024) - -/* - *  CS8900 Ethernet drivers - */ -#define CONFIG_CS8900		/* we have a CS8900 on-board */ -#define CONFIG_CS8900_BASE	0x15000300 -#define CONFIG_CS8900_BUS16	/* the Linux driver does accesses as shorts */ - -/* - * select serial console configuration - */ - -/* #define CONFIG_UART1			*/ -/* #define CONFIG_UART2		1	*/ - -#define CONFIG_BAUDRATE		115200 - -/* - * BOOTP options - */ -#define CONFIG_BOOTP_BOOTFILESIZE -#define CONFIG_BOOTP_BOOTPATH -#define CONFIG_BOOTP_GATEWAY -#define CONFIG_BOOTP_HOSTNAME - -/* - * Command line configuration. - */ -#include <config_cmd_default.h> - -#define CONFIG_CMD_CACHE -#define CONFIG_CMD_REGINFO -#define CONFIG_CMD_ELF - -#define CONFIG_BOOTDELAY	3 -#define CONFIG_BOOTARGS		"root=/dev/msdk mem=48M" -#define CONFIG_BOOTFILE		"mx1ads" -#define CONFIG_BOOTCOMMAND	"tftp; bootm" - -#if defined(CONFIG_CMD_KGDB) -#define CONFIG_KGDB_BAUDRATE	115200		/* speed to run kgdb serial port */ -						/* what's this ? it's not used anywhere */ -#define CONFIG_KGDB_SER_INDEX	1		/* which serial port to use */ -#endif - -/* - * Miscellaneous configurable options - */ - -#define CONFIG_SYS_HUSH_PARSER		1 - -#define CONFIG_SYS_LONGHELP				/* undef to save memory		*/ - -#ifdef CONFIG_SYS_HUSH_PARSER -#define CONFIG_SYS_PROMPT		"MX1ADS$ "	/* Monitor Command Prompt */ -#else -#define CONFIG_SYS_PROMPT		"MX1ADS=> "	/* Monitor Command Prompt */ -#endif - -#define CONFIG_SYS_CBSIZE		256		/* Console I/O Buffer Size	*/ -#define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) -						/* Print Buffer Size */ -#define CONFIG_SYS_MAXARGS		16		/* max number of command args	*/ -#define CONFIG_SYS_BARGSIZE		CONFIG_SYS_CBSIZE	/* Boot Argument Buffer Size	*/ - -#define CONFIG_SYS_MEMTEST_START	0x09000000	/* memtest works on	*/ -#define CONFIG_SYS_MEMTEST_END		0x0AF00000	/* 63 MB in DRAM	*/ - -#define CONFIG_SYS_LOAD_ADDR		0x08800000	/* default load address */ -#define CONFIG_SYS_HZ			3686400 -#define CONFIG_SYS_CPUSPEED		0x141 - -/*----------------------------------------------------------------------- - * Physical Memory Map - */ - -#define CONFIG_NR_DRAM_BANKS	1		/* we have 1 bank of SDRAM	*/ -#define PHYS_SDRAM_1		0x08000000	/* SDRAM  on CSD0		*/ -#define PHYS_SDRAM_1_SIZE	0x04000000	/* 64 MB			*/ - -#define CONFIG_SYS_TEXT_BASE	0x10000000 - -#define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1 -#define CONFIG_SYS_INIT_RAM_ADDR	0x00300000 -#define CONFIG_SYS_INIT_RAM_SIZE	0x000FFFFF -#define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_INIT_RAM_SIZE - \ -						GENERATED_GBL_DATA_SIZE) -#define CONFIG_SYS_INIT_SP_ADDR	(CONFIG_SYS_INIT_RAM_ADDR + \ -						CONFIG_SYS_GBL_DATA_OFFSET) - -#define CONFIG_SYS_MAX_FLASH_BANKS	1		/* 1 bank of SyncFlash		*/ -#define CONFIG_SYS_FLASH_BASE		0x0C000000	/* SyncFlash on CSD1		*/ -#define FLASH_BANK_SIZE		0x01000000	/* 16 MB Total			*/ - -/*----------------------------------------------------------------------- - * FLASH and environment organization - */ - -#define CONFIG_SYNCFLASH	1 -#define PHYS_FLASH_SIZE		0x01000000 -#define CONFIG_SYS_MAX_FLASH_SECT	(16) -#define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE+0x00ff8000) - -#define CONFIG_ENV_IS_IN_FLASH	1 -#define CONFIG_ENV_SIZE		0x04000 /* Total Size of Environment Sector */ -#define CONFIG_ENV_SECT_SIZE	0x100000 - -/*----------------------------------------------------------------------- - * Enable passing ATAGS - */ - -#define CONFIG_CMDLINE_TAG		1	/* enable passing of ATAGs */ -#define CONFIG_SETUP_MEMORY_TAGS	1 - -#define CONFIG_SYS_CLK_FREQ 16780000 -#define CONFIG_SYSPLL_CLK_FREQ 16000000 - -#endif	/* __CONFIG_H */ diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h index 1b566c01e..c58bc91a5 100644 --- a/include/configs/omap3_beagle.h +++ b/include/configs/omap3_beagle.h @@ -241,6 +241,8 @@  			"setenv fdtfile omap3-beagle.dtb; fi; " \  		"if test $beaglerev = Cx; then " \  			"setenv fdtfile omap3-beagle.dtb; fi; " \ +		"if test $beaglerev = C4; then " \ +			"setenv fdtfile omap3-beagle.dtb; fi; " \  		"if test $beaglerev = xMAB; then " \  			"setenv fdtfile omap3-beagle-xm.dtb; fi; " \  		"if test $beaglerev = xMC; then " \ diff --git a/include/configs/omap3_zoom2.h b/include/configs/omap3_zoom2.h deleted file mode 100644 index f74974081..000000000 --- a/include/configs/omap3_zoom2.h +++ /dev/null @@ -1,237 +0,0 @@ -/* - * (C) Copyright 2006-2009 - * Texas Instruments. - * Richard Woodruff <r-woodruff2@ti.com> - * Syed Mohammed Khasim <x0khasim@ti.com> - * Nishanth Menon <nm@ti.com> - * Tom Rix <Tom.Rix@windriver.com> - * - * Configuration settings for the TI OMAP3430 Zoom II board. - * - * SPDX-License-Identifier:	GPL-2.0+ - */ - -#ifndef __CONFIG_H -#define __CONFIG_H - -/* - * High Level Configuration Options - */ -#define CONFIG_OMAP		1	/* in a TI OMAP core */ -#define CONFIG_OMAP34XX		1	/* which is a 34XX */ -#define CONFIG_OMAP3_ZOOM2	1	/* working with Zoom II */ -#define CONFIG_OMAP_GPIO -#define CONFIG_OMAP_COMMON - -#define CONFIG_SDRC	/* The chip has SDRC controller */ - -#include <asm/arch/cpu.h>	/* get chip and board defs */ -#include <asm/arch/omap3.h> - -/* - * Display CPU and Board information - */ -#define CONFIG_DISPLAY_CPUINFO		1 -#define CONFIG_DISPLAY_BOARDINFO	1 - -/* Clock Defines */ -#define V_OSCK			26000000	/* Clock output from T2 */ -#define V_SCLK			(V_OSCK >> 1) - -#define CONFIG_MISC_INIT_R - -#define CONFIG_CMDLINE_TAG		1	/* enable passing of ATAGs */ -#define CONFIG_SETUP_MEMORY_TAGS	1 -#define CONFIG_INITRD_TAG		1 -#define CONFIG_REVISION_TAG		1 - -#define CONFIG_OF_LIBFDT		1 - -/* - * Size of malloc() pool - */ -#define CONFIG_ENV_SIZE			(128 << 10)	/* 128 KiB */ -						/* Sector */ -#define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + (128 << 10)) -/* - * Hardware drivers - */ - -/* - * NS16550 Configuration - * Zoom2 uses the TL16CP754C on the debug board - */ -/* - * 0 - 1 : first  USB with respect to the left edge of the debug board - * 2 - 3 : second USB with respect to the left edge of the debug board - */ -#define ZOOM2_DEFAULT_SERIAL_DEVICE	0 - -#define V_NS16550_CLK			(1843200)	/* 1.8432 Mhz */ - -#define CONFIG_SYS_NS16550 -#define CONFIG_SYS_NS16550_REG_SIZE	(-2) -#define CONFIG_SYS_NS16550_CLK		V_NS16550_CLK -#define CONFIG_BAUDRATE			115200 -#define CONFIG_SYS_BAUDRATE_TABLE	{115200} - -/* allow to overwrite serial and ethaddr */ -#define CONFIG_ENV_OVERWRITE - -#define CONFIG_GENERIC_MMC		1 -#define CONFIG_MMC			1 -#define CONFIG_OMAP_HSMMC		1 -#define CONFIG_DOS_PARTITION		1 - -/* Status LED */ -#define CONFIG_STATUS_LED		1 /* Status LED enabled	*/ -#define CONFIG_BOARD_SPECIFIC_LED	1 -#define STATUS_LED_BLUE			0 -#define STATUS_LED_RED			1 -/* Blue */ -#define STATUS_LED_BIT			STATUS_LED_BLUE -#define STATUS_LED_STATE		STATUS_LED_ON -#define STATUS_LED_PERIOD		(CONFIG_SYS_HZ / 2) -/* Red */ -#define STATUS_LED_BIT1			STATUS_LED_RED -#define STATUS_LED_STATE1		STATUS_LED_OFF -#define STATUS_LED_PERIOD1		(CONFIG_SYS_HZ / 2) -/* Optional value */ -#define STATUS_LED_BOOT			STATUS_LED_BIT - -/* GPIO banks */ -#ifdef CONFIG_STATUS_LED -#define CONFIG_OMAP3_GPIO_2 /* ZOOM2_LED_BLUE2 */ -#define CONFIG_OMAP3_GPIO_6 /* ZOOM2_LED_RED */ -#endif -#define CONFIG_OMAP3_GPIO_3 /* board revision */ -#define CONFIG_OMAP3_GPIO_5 /* debug board detection, ZOOM2_LED_BLUE */ - -/* USB */ -#define CONFIG_MUSB_UDC			1 -#define CONFIG_USB_OMAP3		1 -#define CONFIG_TWL4030_USB		1 - -/* USB device configuration */ -#define CONFIG_USB_DEVICE		1 -#define CONFIG_USB_TTY			1 -/* Change these to suit your needs */ -#define CONFIG_USBD_VENDORID		0x0451 -#define CONFIG_USBD_PRODUCTID		0x5678 -#define CONFIG_USBD_MANUFACTURER	"Texas Instruments" -#define CONFIG_USBD_PRODUCT_NAME	"Zoom2" - -/* commands to include */ -#include <config_cmd_default.h> - -#define CONFIG_CMD_FAT			/* FAT support			*/ -#define CONFIG_CMD_I2C			/* I2C serial bus support	*/ -#define CONFIG_CMD_MMC			/* MMC support			*/ -#define CONFIG_CMD_NAND			/* NAND support			*/ -#define CONFIG_CMD_NAND_LOCK_UNLOCK	/* Enable lock/unlock support	*/ - -#undef CONFIG_CMD_FLASH			/* flinfo, erase, protect	*/ -#undef CONFIG_CMD_FPGA			/* FPGA configuration Support	*/ -#undef CONFIG_CMD_IMI			/* iminfo			*/ -#undef CONFIG_CMD_IMLS			/* List all found images	*/ -#undef CONFIG_CMD_NET			/* bootp, tftpboot, rarpboot	*/ -#undef CONFIG_CMD_NFS			/* NFS support			*/ - -#define CONFIG_SYS_NO_FLASH -#define CONFIG_SYS_I2C -#define CONFIG_SYS_OMAP24_I2C_SPEED	100000 -#define CONFIG_SYS_OMAP24_I2C_SLAVE	1 -#define CONFIG_SYS_I2C_OMAP34XX - -/* - * TWL4030 - */ -#define CONFIG_TWL4030_POWER		1 -#define CONFIG_TWL4030_LED		1 - -/* - * Board NAND Info. - */ -#define CONFIG_NAND_OMAP_GPMC -#define CONFIG_SYS_NAND_ADDR		NAND_BASE	/* physical address */ -							/* to access nand */ -#define CONFIG_SYS_NAND_BASE		NAND_BASE	/* physical address */ -							/* to access nand at */ -							/* CS0 */ -#define GPMC_NAND_ECC_LP_x16_LAYOUT	1 -#define CONFIG_SYS_MAX_NAND_DEVICE	1 - -/* Environment information */ -#define CONFIG_BOOTDELAY		10 - -#define CONFIG_EXTRA_ENV_SETTINGS \ -	"usbtty=cdc_acm\0" \ - -#define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1 -#define CONFIG_SYS_INIT_RAM_ADDR	0x4020f800 -#define CONFIG_SYS_INIT_RAM_SIZE	0x800 -#define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \ -					 CONFIG_SYS_INIT_RAM_SIZE - \ -					 GENERATED_GBL_DATA_SIZE) -/* - * Miscellaneous configurable options - */ - -#define CONFIG_SYS_PROMPT		"OMAP3 Zoom2 # " -#define CONFIG_SYS_LONGHELP -#define CONFIG_SYS_CBSIZE		512 -#define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE + \ -					 sizeof(CONFIG_SYS_PROMPT) + 16) -#define CONFIG_SYS_MAXARGS		16 -#define CONFIG_SYS_BARGSIZE		(CONFIG_SYS_CBSIZE) -/* Memtest from start of memory to 31MB */ -#define CONFIG_SYS_MEMTEST_START	(OMAP34XX_SDRC_CS0) -#define CONFIG_SYS_MEMTEST_END		(OMAP34XX_SDRC_CS0 + 0x01F00000) -/* The default load address is the start of memory */ -#define CONFIG_SYS_LOAD_ADDR		(OMAP34XX_SDRC_CS0) -/* everything, incl board info, in Hz */ -#undef CONFIG_SYS_CLKS_IN_HZ -/* - * 2430 has 12 GP timers, they can be driven by the SysClk (12/13/19.2) or by - * 32KHz clk, or from external sig. This rate is divided by a local divisor. - */ -#define CONFIG_SYS_TIMERBASE		(OMAP34XX_GPT2) -#define CONFIG_SYS_PTV			7	/* 2^(PTV+1) */ -#define CONFIG_SYS_HZ			((V_SCLK) / (2 << CONFIG_SYS_PTV)) - -/*----------------------------------------------------------------------- - * Physical Memory Map - */ -#define CONFIG_NR_DRAM_BANKS	2	/* CS1 may or may not be populated */ -#define PHYS_SDRAM_1		OMAP34XX_SDRC_CS0 -#define PHYS_SDRAM_2		OMAP34XX_SDRC_CS1 - -/*----------------------------------------------------------------------- - * FLASH and environment organization - */ - -/* **** PISMO SUPPORT *** */ - -/* Configure the PISMO */ -#define PISMO1_NAND_SIZE		GPMC_SIZE_128M -#define PISMO1_ONEN_SIZE		GPMC_SIZE_128M - -#define CONFIG_SYS_MONITOR_LEN		(256 << 10)	/* Reserve 2 sectors */ - -#if defined(CONFIG_CMD_NAND) -#define CONFIG_SYS_FLASH_BASE		PISMO1_NAND_BASE -#endif - -/* Monitor at start of flash */ -#define CONFIG_SYS_MONITOR_BASE		CONFIG_SYS_FLASH_BASE - -#define CONFIG_ENV_IS_IN_NAND		1 -#define SMNAND_ENV_OFFSET		0x0c0000 /* environment starts here */ - -#define CONFIG_SYS_ENV_SECT_SIZE	(128 << 10)	/* 128 KiB */ -#define CONFIG_ENV_OFFSET		SMNAND_ENV_OFFSET -#define CONFIG_ENV_ADDR			SMNAND_ENV_OFFSET - -#define CONFIG_SYS_CACHELINE_SIZE	64 - -#endif /* __CONFIG_H */ diff --git a/include/configs/omap5912osk.h b/include/configs/omap5912osk.h index c48790d2a..376dfdb14 100644 --- a/include/configs/omap5912osk.h +++ b/include/configs/omap5912osk.h @@ -94,7 +94,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	115200	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	1	/* which serial port to use */  #endif  /* diff --git a/include/configs/omap5_uevm.h b/include/configs/omap5_uevm.h index 2f128b8a6..76c5106b4 100644 --- a/include/configs/omap5_uevm.h +++ b/include/configs/omap5_uevm.h @@ -36,6 +36,7 @@  #define CONFIG_EFI_PARTITION  #define CONFIG_PARTITION_UUIDS  #define CONFIG_CMD_PART +#define CONFIG_HSMMC2_8BIT  /* Required support for the TCA642X GPIO we have on the uEVM */  #define CONFIG_TCA642X diff --git a/include/configs/p1_p2_rdb_pc.h b/include/configs/p1_p2_rdb_pc.h index 57ed01995..c6df11b8f 100644 --- a/include/configs/p1_p2_rdb_pc.h +++ b/include/configs/p1_p2_rdb_pc.h @@ -928,7 +928,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/p3p440.h b/include/configs/p3p440.h index 3fde7ca3a..1fdd602f5 100644 --- a/include/configs/p3p440.h +++ b/include/configs/p3p440.h @@ -303,6 +303,5 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  #endif	/* __CONFIG_H */ diff --git a/include/configs/palmld.h b/include/configs/palmld.h index a5b6e3aa9..2a9fd22dd 100644 --- a/include/configs/palmld.h +++ b/include/configs/palmld.h @@ -93,7 +93,6 @@   */  #ifdef	CONFIG_CMD_KGDB  #define	CONFIG_KGDB_BAUDRATE		230400	/* kgdb serial port speed */ -#define	CONFIG_KGDB_SER_INDEX		2	/* which serial port to use */  #endif  /* diff --git a/include/configs/palmtc.h b/include/configs/palmtc.h index 7303e1c31..de254076f 100644 --- a/include/configs/palmtc.h +++ b/include/configs/palmtc.h @@ -95,7 +95,6 @@   */  #ifdef	CONFIG_CMD_KGDB  #define	CONFIG_KGDB_BAUDRATE		230400	/* kgdb serial port speed */ -#define	CONFIG_KGDB_SER_INDEX		2	/* which serial port to use */  #endif  /* diff --git a/include/configs/palmtreo680.h b/include/configs/palmtreo680.h index adf85190d..36626639d 100644 --- a/include/configs/palmtreo680.h +++ b/include/configs/palmtreo680.h @@ -94,7 +94,6 @@   */  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE            230400  /* kgdb serial port speed */ -#define CONFIG_KGDB_SER_INDEX           2       /* which serial port to use */  #endif  /* diff --git a/include/configs/pcs440ep.h b/include/configs/pcs440ep.h index 400cb3e82..5a5fe7ff0 100644 --- a/include/configs/pcs440ep.h +++ b/include/configs/pcs440ep.h @@ -427,7 +427,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /*----------------------------------------------------------------------- diff --git a/include/configs/pdm360ng.h b/include/configs/pdm360ng.h index 266d107e4..2a54e5cea 100644 --- a/include/configs/pdm360ng.h +++ b/include/configs/pdm360ng.h @@ -441,7 +441,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* POST support */ diff --git a/include/configs/pxa-common.h b/include/configs/pxa-common.h index 5856ee180..f0ecc3458 100644 --- a/include/configs/pxa-common.h +++ b/include/configs/pxa-common.h @@ -16,7 +16,6 @@   */  #ifdef	CONFIG_CMD_KGDB  #define	CONFIG_KGDB_BAUDRATE		230400 -#define	CONFIG_KGDB_SER_INDEX		2  #endif  /* diff --git a/include/configs/pxa255_idp.h b/include/configs/pxa255_idp.h index 84ad006ac..af7c076df 100644 --- a/include/configs/pxa255_idp.h +++ b/include/configs/pxa255_idp.h @@ -199,7 +199,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	115200		/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2		/* which serial port to use */  #endif  /* diff --git a/include/configs/quad100hd.h b/include/configs/quad100hd.h index 7b04e0c3e..20d6178dc 100644 --- a/include/configs/quad100hd.h +++ b/include/configs/quad100hd.h @@ -265,7 +265,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400		/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2		/* which serial port to use */  #endif  /* ENVIRONMENT VARS */ diff --git a/include/configs/r0p7734.h b/include/configs/r0p7734.h index dd26a71bc..53128ecc1 100644 --- a/include/configs/r0p7734.h +++ b/include/configs/r0p7734.h @@ -10,9 +10,6 @@  #define __R0P7734_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4		1 -#define CONFIG_SH4A		1  #define CONFIG_CPU_SH7734	1  #define CONFIG_R0P7734		1  #define CONFIG_400MHZ_MODE	1 diff --git a/include/configs/r2dplus.h b/include/configs/r2dplus.h index ddcc97587..24d0c34db 100644 --- a/include/configs/r2dplus.h +++ b/include/configs/r2dplus.h @@ -3,8 +3,6 @@  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4		1  #define CONFIG_CPU_SH7751	1  #define CONFIG_CPU_SH_TYPE_R	1  #define CONFIG_R2DPLUS		1 diff --git a/include/configs/r7780mp.h b/include/configs/r7780mp.h index f5e4daab8..8156724f7 100644 --- a/include/configs/r7780mp.h +++ b/include/configs/r7780mp.h @@ -11,8 +11,6 @@  #define __R7780RP_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4A		1  #define CONFIG_CPU_SH7780	1  #define CONFIG_R7780MP		1  #define CONFIG_SYS_R7780MP_OLD_FLASH	1 diff --git a/include/configs/rsdproto.h b/include/configs/rsdproto.h index f144f8432..92318c339 100644 --- a/include/configs/rsdproto.h +++ b/include/configs/rsdproto.h @@ -121,7 +121,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400		/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2		/* which serial port to use */  #endif  /* diff --git a/include/configs/rsk7203.h b/include/configs/rsk7203.h index acee4e898..543632458 100644 --- a/include/configs/rsk7203.h +++ b/include/configs/rsk7203.h @@ -11,8 +11,6 @@  #define __RSK7203_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH2		1  #define CONFIG_SH2A		1  #define CONFIG_CPU_SH7203	1  #define CONFIG_RSK7203	1 @@ -87,7 +85,7 @@  #define CONFIG_SH_TMU_CLK_FREQ CONFIG_SYS_CLK_FREQ  #define CONFIG_SH_SCIF_CLK_FREQ CONFIG_SYS_CLK_FREQ  #define CMT_CLK_DIVIDER	32	/* 8 (default), 32, 128 or 512 */ -#define CONFIG_SYS_HZ			(CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER) +#define CONFIG_SH_CMT_CLK_FREQ (CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER)  /* Network interface */  #define CONFIG_SMC911X diff --git a/include/configs/rsk7264.h b/include/configs/rsk7264.h index a5dbb64f4..4aaa3ef74 100644 --- a/include/configs/rsk7264.h +++ b/include/configs/rsk7264.h @@ -12,8 +12,6 @@  #define __RSK7264_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH2		1  #define CONFIG_SH2A		1  #define CONFIG_CPU_SH7264	1  #define CONFIG_RSK7264		1 @@ -67,7 +65,7 @@  #define CONFIG_SH_TMU_CLK_FREQ CONFIG_SYS_CLK_FREQ  #define CONFIG_SH_SCIF_CLK_FREQ CONFIG_SYS_CLK_FREQ  #define CMT_CLK_DIVIDER		32	/* 8 (default), 32, 128 or 512 */ -#define CONFIG_SYS_HZ		(CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER) +#define CONFIG_SH_CMT_CLK_FREQ (CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER)  /* Network interface */  #define CONFIG_SMC911X diff --git a/include/configs/rsk7269.h b/include/configs/rsk7269.h index 9f54160af..11fc231fa 100644 --- a/include/configs/rsk7269.h +++ b/include/configs/rsk7269.h @@ -11,8 +11,6 @@  #define __RSK7269_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH2		1  #define CONFIG_SH2A		1  #define CONFIG_CPU_SH7269	1  #define CONFIG_RSK7269		1 @@ -66,7 +64,7 @@  #define CONFIG_SH_TMU_CLK_FREQ CONFIG_SYS_CLK_FREQ  #define CONFIG_SH_SCIF_CLK_FREQ CONFIG_SYS_CLK_FREQ  #define CMT_CLK_DIVIDER		32	/* 8 (default), 32, 128 or 512 */ -#define CONFIG_SYS_HZ		(CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER) +#define CONFIG_SH_CMT_CLK_FREQ (CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER)  /* Network interface */  #define CONFIG_SMC911X diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index 7e78a231d..a6d55822b 100644 --- a/include/configs/sandbox.h +++ b/include/configs/sandbox.h @@ -39,6 +39,9 @@  #define CONFIG_CMD_FAT  #define CONFIG_CMD_EXT4  #define CONFIG_CMD_EXT4_WRITE +#define CONFIG_CMD_PART +#define CONFIG_DOS_PARTITION +#define CONFIG_HOST_MAX_DEVICES 4  #define CONFIG_SYS_VSNPRINTF @@ -126,4 +129,6 @@  #define CONFIG_LZO  #define CONFIG_LZMA +#define CONFIG_TPM_TIS_SANDBOX +  #endif diff --git a/include/configs/sbc8349.h b/include/configs/sbc8349.h index a258fe83d..b7f83e010 100644 --- a/include/configs/sbc8349.h +++ b/include/configs/sbc8349.h @@ -643,7 +643,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/sbc8548.h b/include/configs/sbc8548.h index bdb8eb529..4912d69dc 100644 --- a/include/configs/sbc8548.h +++ b/include/configs/sbc8548.h @@ -575,7 +575,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/sbc8641d.h b/include/configs/sbc8641d.h index dba948a5c..78f8219c5 100644 --- a/include/configs/sbc8641d.h +++ b/include/configs/sbc8641d.h @@ -523,7 +523,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/sh7752evb.h b/include/configs/sh7752evb.h index ebdc5c8b0..f06abbca0 100644 --- a/include/configs/sh7752evb.h +++ b/include/configs/sh7752evb.h @@ -10,8 +10,6 @@  #define __SH7752EVB_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4A		1  #define CONFIG_SH_32BIT		1  #define CONFIG_CPU_SH7752	1  #define CONFIG_SH7752EVB	1 diff --git a/include/configs/sh7753evb.h b/include/configs/sh7753evb.h new file mode 100644 index 000000000..e400db08a --- /dev/null +++ b/include/configs/sh7753evb.h @@ -0,0 +1,135 @@ +/* + * Configuation settings for the sh7753evb board + * + * Copyright (C) 2012 Renesas Solutions Corp. + * + * SPDX-License-Identifier:	GPL-2.0+ + */ + +#ifndef __SH7753EVB_H +#define __SH7753EVB_H + +#undef DEBUG +#define CONFIG_SH_32BIT		1 +#define CONFIG_CPU_SH7753	1 +#define CONFIG_SH7753EVB	1 + +#define CONFIG_SYS_TEXT_BASE	0x5ff80000 +#define CONFIG_SYS_LDSCRIPT	"board/renesas/sh7753evb/u-boot.lds" + +#define CONFIG_CMD_MEMORY +#define CONFIG_CMD_NET +#define CONFIG_CMD_MII +#define CONFIG_CMD_PING +#define CONFIG_CMD_NFS +#define CONFIG_CMD_DFL +#define CONFIG_CMD_SDRAM +#define CONFIG_CMD_SF +#define CONFIG_CMD_RUN +#define CONFIG_CMD_SAVEENV +#define CONFIG_CMD_MD5SUM +#define CONFIG_MD5 +#define CONFIG_CMD_LOADS +#define CONFIG_CMD_MMC +#define CONFIG_CMD_EXT2 +#define CONFIG_DOS_PARTITION +#define CONFIG_MAC_PARTITION + +#define CONFIG_BAUDRATE		115200 +#define CONFIG_BOOTDELAY	3 +#define CONFIG_BOOTARGS		"console=ttySC2,115200 root=/dev/nfs ip=dhcp" + +#define CONFIG_VERSION_VARIABLE +#undef	CONFIG_SHOW_BOOT_PROGRESS +#define CONFIG_CMDLINE_EDITING +#define CONFIG_AUTO_COMPLETE + +/* MEMORY */ +#define SH7753EVB_SDRAM_BASE		(0x40000000) +#define SH7753EVB_SDRAM_SIZE		(512 * 1024 * 1024) + +#define CONFIG_SYS_LONGHELP +#define CONFIG_SYS_CBSIZE		256 +#define CONFIG_SYS_PBSIZE		256 +#define CONFIG_SYS_MAXARGS		16 +#define CONFIG_SYS_BARGSIZE		512 +#define CONFIG_SYS_BAUDRATE_TABLE	{ 115200 } + +/* SCIF */ +#define CONFIG_SCIF_CONSOLE	1 +#define CONFIG_CONS_SCIF2	1 +#undef	CONFIG_SYS_CONSOLE_INFO_QUIET +#undef	CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE +#undef	CONFIG_SYS_CONSOLE_ENV_OVERWRITE + +#define CONFIG_SYS_MEMTEST_START	(SH7753EVB_SDRAM_BASE) +#define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MEMTEST_START + \ +					 480 * 1024 * 1024) +#undef	CONFIG_SYS_ALT_MEMTEST +#undef	CONFIG_SYS_MEMTEST_SCRATCH +#undef	CONFIG_SYS_LOADS_BAUD_CHANGE + +#define CONFIG_SYS_SDRAM_BASE		(SH7753EVB_SDRAM_BASE) +#define CONFIG_SYS_SDRAM_SIZE		(SH7753EVB_SDRAM_SIZE) +#define CONFIG_SYS_LOAD_ADDR		(CONFIG_SYS_SDRAM_BASE + \ +					 128 * 1024 * 1024) + +#define CONFIG_SYS_MONITOR_BASE		0x00000000 +#define CONFIG_SYS_MONITOR_LEN		(512 * 1024) +#define CONFIG_SYS_MALLOC_LEN		(4 * 1024 * 1024) +#define CONFIG_SYS_BOOTMAPSZ		(8 * 1024 * 1024) + +/* FLASH */ +#define CONFIG_SYS_NO_FLASH + +/* Ether */ +#define CONFIG_SH_ETHER			1 +#define CONFIG_SH_ETHER_USE_PORT	0 +#define CONFIG_SH_ETHER_PHY_ADDR	18 +#define CONFIG_SH_ETHER_CACHE_WRITEBACK	1 +#define CONFIG_SH_ETHER_USE_GETHER	1 +#define CONFIG_PHYLIB +#define CONFIG_BITBANGMII +#define CONFIG_BITBANGMII_MULTI +#define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RGMII +#define CONFIG_PHY_VITESSE + +#define SH7753EVB_ETHERNET_MAC_BASE_SPI	0x00090000 +#define SH7753EVB_SPI_SECTOR_SIZE	(64 * 1024) +#define SH7753EVB_ETHERNET_MAC_BASE	SH7753EVB_ETHERNET_MAC_BASE_SPI +#define SH7753EVB_ETHERNET_MAC_SIZE	17 +#define SH7753EVB_ETHERNET_NUM_CH	2 +#define CONFIG_BOARD_LATE_INIT + +/* SPI */ +#define CONFIG_SH_SPI			1 +#define CONFIG_SH_SPI_BASE		0xfe002000 +#define CONFIG_SPI_FLASH +#define CONFIG_SPI_FLASH_STMICRO	1 +#define CONFIG_SPI_FLASH_MACRONIX	1 + +/* MMCIF */ +#define CONFIG_MMC			1 +#define CONFIG_GENERIC_MMC		1 +#define CONFIG_SH_MMCIF			1 +#define CONFIG_SH_MMCIF_ADDR		0xffcb0000 +#define CONFIG_SH_MMCIF_CLK		48000000 + +/* ENV setting */ +#define CONFIG_ENV_IS_EMBEDDED +#define CONFIG_ENV_IS_IN_SPI_FLASH +#define CONFIG_ENV_SECT_SIZE	(64 * 1024) +#define CONFIG_ENV_ADDR		(0x00080000) +#define CONFIG_ENV_OFFSET	(CONFIG_ENV_ADDR) +#define CONFIG_ENV_OVERWRITE	1 +#define CONFIG_ENV_SIZE		(CONFIG_ENV_SECT_SIZE) +#define CONFIG_ENV_SIZE_REDUND	(CONFIG_ENV_SECT_SIZE) +#define CONFIG_EXTRA_ENV_SETTINGS				\ +		"netboot=bootp; bootm\0" + +/* Board Clock */ +#define CONFIG_SYS_CLK_FREQ	48000000 +#define CONFIG_SH_TMU_CLK_FREQ CONFIG_SYS_CLK_FREQ +#define CONFIG_SH_SCIF_CLK_FREQ CONFIG_SYS_CLK_FREQ +#define CONFIG_SYS_TMU_CLK_DIV	4 +#endif	/* __SH7753EVB_H */ diff --git a/include/configs/sh7757lcr.h b/include/configs/sh7757lcr.h index ce1add268..08bff1da3 100644 --- a/include/configs/sh7757lcr.h +++ b/include/configs/sh7757lcr.h @@ -10,8 +10,6 @@  #define __SH7757LCR_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4A		1  #define CONFIG_SH_32BIT		1  #define CONFIG_CPU_SH7757	1  #define CONFIG_SH7757LCR	1 diff --git a/include/configs/sh7763rdp.h b/include/configs/sh7763rdp.h index a13778830..2438318fc 100644 --- a/include/configs/sh7763rdp.h +++ b/include/configs/sh7763rdp.h @@ -10,8 +10,6 @@  #ifndef __SH7763RDP_H  #define __SH7763RDP_H -#define CONFIG_SH		1 -#define CONFIG_SH4		1  #define CONFIG_CPU_SH7763	1  #define CONFIG_SH7763RDP	1  #define __LITTLE_ENDIAN		1 diff --git a/include/configs/sh7785lcr.h b/include/configs/sh7785lcr.h index 4acbcab1b..2723eaf2d 100644 --- a/include/configs/sh7785lcr.h +++ b/include/configs/sh7785lcr.h @@ -10,8 +10,6 @@  #define __SH7785LCR_H  #undef DEBUG -#define CONFIG_SH		1 -#define CONFIG_SH4A		1  #define CONFIG_CPU_SH7785	1  #define CONFIG_SH7785LCR	1 diff --git a/include/configs/shmin.h b/include/configs/shmin.h index 5c990fc96..f8155efbc 100644 --- a/include/configs/shmin.h +++ b/include/configs/shmin.h @@ -9,8 +9,6 @@  #ifndef __SHMIN_H  #define __SHMIN_H -#define CONFIG_SH		1 -#define CONFIG_SH3		1  #define CONFIG_CPU_SH7706	1  /* T-SH7706LAN */  #define CONFIG_SHMIN		1 diff --git a/include/configs/smdk2410.h b/include/configs/smdk2410.h index a87444e0b..d4ae19f96 100644 --- a/include/configs/smdk2410.h +++ b/include/configs/smdk2410.h @@ -101,8 +101,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	115200	/* speed to run kgdb serial port */ -/* what's this ? it's not used anywhere */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/socrates.h b/include/configs/socrates.h index 0e6b86412..fd590e4e1 100644 --- a/include/configs/socrates.h +++ b/include/configs/socrates.h @@ -363,7 +363,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port*/ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use	*/  #endif diff --git a/include/configs/stxgp3.h b/include/configs/stxgp3.h index ee1f1f3ed..2a9c9a349 100644 --- a/include/configs/stxgp3.h +++ b/include/configs/stxgp3.h @@ -341,7 +341,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /*Note: change below for your network setting!!! */ diff --git a/include/configs/stxssa.h b/include/configs/stxssa.h index 63dd76704..d0cb68a0e 100644 --- a/include/configs/stxssa.h +++ b/include/configs/stxssa.h @@ -376,7 +376,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /*Note: change below for your network setting!!! */ diff --git a/include/configs/t4qds.h b/include/configs/t4qds.h index d9b0ed07d..54a5e3e26 100644 --- a/include/configs/t4qds.h +++ b/include/configs/t4qds.h @@ -303,7 +303,6 @@  #ifdef CONFIG_CMD_KGDB  #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/tam3517-common.h b/include/configs/tam3517-common.h index 439fc47eb..d44b5c036 100644 --- a/include/configs/tam3517-common.h +++ b/include/configs/tam3517-common.h @@ -224,6 +224,7 @@  #define CONFIG_SPL_BOARD_INIT  #define CONFIG_SPL_CONSOLE  #define CONFIG_SPL_NAND_SIMPLE +#define CONFIG_SPL_NAND_SOFTECC  #define CONFIG_SPL_NAND_WORKSPACE	0x8f07f000 /* below BSS */  #define CONFIG_SPL_LIBCOMMON_SUPPORT diff --git a/include/configs/tcm-bf537.h b/include/configs/tcm-bf537.h index 627836a7e..58bcdc8f4 100644 --- a/include/configs/tcm-bf537.h +++ b/include/configs/tcm-bf537.h @@ -55,7 +55,7 @@  #define CONFIG_EBIU_AMBCTL0_VAL	(B1WAT_7 | B1RAT_11 | B1HT_2 | B1ST_3 | B0WAT_7 | B0RAT_11 | B0HT_2 | B0ST_3)  #define CONFIG_EBIU_AMBCTL1_VAL	(B3WAT_7 | B3RAT_11 | B3HT_2 | B3ST_3 | B2WAT_7 | B2RAT_11 | B2HT_2 | B2ST_3) -#define CONFIG_SYS_MONITOR_LEN	(512 * 1024) +#define CONFIG_SYS_MONITOR_LEN	(768 * 1024)  #define CONFIG_SYS_MALLOC_LEN	(128 * 1024) @@ -144,6 +144,7 @@  #define FLASHBOOT_ENV_SETTINGS \  	"flashboot=flread 20040000 1000000 300000;" \  	"bootm 0x1000000\0" +#define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024))  /* diff --git a/include/configs/trats.h b/include/configs/trats.h index 08771422e..fdd8b460b 100644 --- a/include/configs/trats.h +++ b/include/configs/trats.h @@ -27,6 +27,7 @@  #define CONFIG_DISPLAY_CPUINFO  #define CONFIG_DISPLAY_BOARDINFO +#define CONFIG_SYS_L2CACHE_OFF  #ifndef CONFIG_SYS_L2CACHE_OFF  #define CONFIG_SYS_L2_PL310  #define CONFIG_SYS_PL310_BASE	0x10502000 @@ -99,6 +100,7 @@  #define CONFIG_THOR_FUNCTION  #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M +#define DFU_DEFAULT_POLL_TIMEOUT 300  #define CONFIG_DFU_FUNCTION  #define CONFIG_DFU_MMC @@ -142,7 +144,10 @@  	"u-boot mmc 80 400;" \  	"uImage ext4 0 2;" \  	"exynos4210-trats.dtb ext4 0 2;" \ -	""PARTS_ROOT" part 0 5\0" +	""PARTS_BOOT" part 0 2;" \ +	""PARTS_ROOT" part 0 5;" \ +	""PARTS_DATA" part 0 6;" \ +	""PARTS_UMS" part 0 7\0"  #define CONFIG_ENV_OVERWRITE  #define CONFIG_SYS_CONSOLE_INFO_QUIET diff --git a/include/configs/trats2.h b/include/configs/trats2.h index c9ce82866..83633b074 100644 --- a/include/configs/trats2.h +++ b/include/configs/trats2.h @@ -30,6 +30,7 @@  #define CONFIG_SYS_CACHELINE_SIZE	32 +#define CONFIG_SYS_L2CACHE_OFF  #ifndef CONFIG_SYS_L2CACHE_OFF  #define CONFIG_SYS_L2_PL310  #define CONFIG_SYS_PL310_BASE	0x10502000 @@ -114,6 +115,7 @@  /* USB Composite download gadget - g_dnl */  #define CONFIG_USBDOWNLOAD_GADGET  #define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M +#define DFU_DEFAULT_POLL_TIMEOUT 300  #define CONFIG_DFU_FUNCTION  #define CONFIG_DFU_MMC @@ -173,7 +175,10 @@  	"u-boot mmc 80 800;" \  	"uImage ext4 0 2;" \  	"exynos4412-trats2.dtb ext4 0 2;" \ -	""PARTS_ROOT" part 0 5\0" +	""PARTS_BOOT" part 0 2;" \ +	""PARTS_ROOT" part 0 5;" \ +	""PARTS_DATA" part 0 6;" \ +	""PARTS_UMS" part 0 7\0"  #define CONFIG_EXTRA_ENV_SETTINGS \  	"bootk=" \ diff --git a/include/configs/trizepsiv.h b/include/configs/trizepsiv.h index 061511777..b7804d287 100644 --- a/include/configs/trizepsiv.h +++ b/include/configs/trizepsiv.h @@ -125,7 +125,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400		/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2		/* which serial port to use */  #endif  /* diff --git a/include/configs/twister.h b/include/configs/twister.h index b6ca59c33..f24dc136c 100644 --- a/include/configs/twister.h +++ b/include/configs/twister.h @@ -50,4 +50,7 @@  #define CONFIG_SYS_SPL_ARGS_ADDR	(PHYS_SDRAM_1 + 0x100)  #define CONFIG_SPL_BOARD_INIT +/* gpio 55 is used as SPL_OS_BOOT_KEY */ +#define CONFIG_OMAP3_GPIO_2 +  #endif /* __CONFIG_H */ diff --git a/include/configs/vexpress_aemv8a.h b/include/configs/vexpress_aemv8a.h new file mode 100644 index 000000000..e8517027e --- /dev/null +++ b/include/configs/vexpress_aemv8a.h @@ -0,0 +1,189 @@ +/* + * Configuration for Versatile Express. Parts were derived from other ARM + *   configurations. + * + * SPDX-License-Identifier:	GPL-2.0+ + */ + +#ifndef __VEXPRESS_AEMV8A_H +#define __VEXPRESS_AEMV8A_H + +#define DEBUG + +#define CONFIG_REMAKE_ELF + +/*#define CONFIG_ARMV8_SWITCH_TO_EL1*/ + +/*#define CONFIG_SYS_GENERIC_BOARD*/ + +#define CONFIG_SYS_NO_FLASH + +#define CONFIG_SUPPORT_RAW_INITRD + +/* Cache Definitions */ +#define CONFIG_SYS_DCACHE_OFF +#define CONFIG_SYS_ICACHE_OFF + +#define CONFIG_IDENT_STRING		" vexpress_aemv8a" +#define CONFIG_BOOTP_VCI_STRING		"U-boot.armv8.vexpress_aemv8a" + +/* Link Definitions */ +#define CONFIG_SYS_TEXT_BASE		0x80000000 +#define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_SDRAM_BASE + 0x7fff0) + +/* Flat Device Tree Definitions */ +#define CONFIG_OF_LIBFDT + +#define CONFIG_DEFAULT_DEVICE_TREE	vexpress64 + +/* SMP Spin Table Definitions */ +#define CPU_RELEASE_ADDR		(CONFIG_SYS_SDRAM_BASE + 0x7fff0) + +/* CS register bases for the original memory map. */ +#define V2M_PA_CS0			0x00000000 +#define V2M_PA_CS1			0x14000000 +#define V2M_PA_CS2			0x18000000 +#define V2M_PA_CS3			0x1c000000 +#define V2M_PA_CS4			0x0c000000 +#define V2M_PA_CS5			0x10000000 + +#define V2M_PERIPH_OFFSET(x)		(x << 16) +#define V2M_SYSREGS			(V2M_PA_CS3 + V2M_PERIPH_OFFSET(1)) +#define V2M_SYSCTL			(V2M_PA_CS3 + V2M_PERIPH_OFFSET(2)) +#define V2M_SERIAL_BUS_PCI		(V2M_PA_CS3 + V2M_PERIPH_OFFSET(3)) + +#define V2M_BASE			0x80000000 + +/* + * Physical addresses, offset from V2M_PA_CS0-3 + */ +#define V2M_NOR0			(V2M_PA_CS0) +#define V2M_NOR1			(V2M_PA_CS4) +#define V2M_SRAM			(V2M_PA_CS1) + +/* Common peripherals relative to CS7. */ +#define V2M_AACI			(V2M_PA_CS3 + V2M_PERIPH_OFFSET(4)) +#define V2M_MMCI			(V2M_PA_CS3 + V2M_PERIPH_OFFSET(5)) +#define V2M_KMI0			(V2M_PA_CS3 + V2M_PERIPH_OFFSET(6)) +#define V2M_KMI1			(V2M_PA_CS3 + V2M_PERIPH_OFFSET(7)) + +#define V2M_UART0			(V2M_PA_CS3 + V2M_PERIPH_OFFSET(9)) +#define V2M_UART1			(V2M_PA_CS3 + V2M_PERIPH_OFFSET(10)) +#define V2M_UART2			(V2M_PA_CS3 + V2M_PERIPH_OFFSET(11)) +#define V2M_UART3			(V2M_PA_CS3 + V2M_PERIPH_OFFSET(12)) + +#define V2M_WDT				(V2M_PA_CS3 + V2M_PERIPH_OFFSET(15)) + +#define V2M_TIMER01			(V2M_PA_CS3 + V2M_PERIPH_OFFSET(17)) +#define V2M_TIMER23			(V2M_PA_CS3 + V2M_PERIPH_OFFSET(18)) + +#define V2M_SERIAL_BUS_DVI		(V2M_PA_CS3 + V2M_PERIPH_OFFSET(22)) +#define V2M_RTC				(V2M_PA_CS3 + V2M_PERIPH_OFFSET(23)) + +#define V2M_CF				(V2M_PA_CS3 + V2M_PERIPH_OFFSET(26)) + +#define V2M_CLCD			(V2M_PA_CS3 + V2M_PERIPH_OFFSET(31)) + +/* System register offsets. */ +#define V2M_SYS_CFGDATA			(V2M_SYSREGS + 0x0a0) +#define V2M_SYS_CFGCTRL			(V2M_SYSREGS + 0x0a4) +#define V2M_SYS_CFGSTAT			(V2M_SYSREGS + 0x0a8) + +/* Generic Timer Definitions */ +#define COUNTER_FREQUENCY		(0x1800000)	/* 24MHz */ + +/* Generic Interrupt Controller Definitions */ +#define GICD_BASE			(0x2C001000) +#define GICC_BASE			(0x2C002000) + +#define CONFIG_SYS_MEMTEST_START	V2M_BASE +#define CONFIG_SYS_MEMTEST_END		(V2M_BASE + 0x80000000) + +/* Size of malloc() pool */ +#define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + 128 * 1024) + +/* SMSC91C111 Ethernet Configuration */ +#define CONFIG_SMC91111			1 +#define CONFIG_SMC91111_BASE		(0x01A000000) + +/* PL011 Serial Configuration */ +#define CONFIG_PL011_SERIAL +#define CONFIG_PL011_CLOCK		24000000 +#define CONFIG_PL01x_PORTS		{(void *)CONFIG_SYS_SERIAL0, \ +					 (void *)CONFIG_SYS_SERIAL1} +#define CONFIG_CONS_INDEX		0 + +#define CONFIG_BAUDRATE			115200 +#define CONFIG_SYS_BAUDRATE_TABLE	{ 9600, 19200, 38400, 57600, 115200 } +#define CONFIG_SYS_SERIAL0		V2M_UART0 +#define CONFIG_SYS_SERIAL1		V2M_UART1 + +/* Command line configuration */ +#define CONFIG_MENU +/*#define CONFIG_MENU_SHOW*/ +#define CONFIG_CMD_CACHE +#define CONFIG_CMD_BDI +#define CONFIG_CMD_DHCP +#define CONFIG_CMD_PXE +#define CONFIG_CMD_ENV +#define CONFIG_CMD_FLASH +#define CONFIG_CMD_IMI +#define CONFIG_CMD_MEMORY +#define CONFIG_CMD_MII +#define CONFIG_CMD_NET +#define CONFIG_CMD_PING +#define CONFIG_CMD_SAVEENV +#define CONFIG_CMD_RUN +#define CONFIG_CMD_BOOTD +#define CONFIG_CMD_ECHO +#define CONFIG_CMD_SOURCE +#define CONFIG_CMD_FAT +#define CONFIG_DOS_PARTITION + +/* BOOTP options */ +#define CONFIG_BOOTP_BOOTFILESIZE +#define CONFIG_BOOTP_BOOTPATH +#define CONFIG_BOOTP_GATEWAY +#define CONFIG_BOOTP_HOSTNAME +#define CONFIG_BOOTP_PXE +#define CONFIG_BOOTP_PXE_CLIENTARCH	0x100 + +/* Miscellaneous configurable options */ +#define CONFIG_SYS_LOAD_ADDR		(V2M_BASE + 0x10000000) + +/* Physical Memory Map */ +#define CONFIG_NR_DRAM_BANKS		1 +#define PHYS_SDRAM_1			(V2M_BASE)	/* SDRAM Bank #1 */ +#define PHYS_SDRAM_1_SIZE		0x80000000	/* 2048 MB */ +#define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1 + +/* Initial environment variables */ +#define CONFIG_EXTRA_ENV_SETTINGS	\ +					"kernel_addr=0x200000\0"	\ +					"initrd_addr=0xa00000\0"	\ +					"initrd_size=0x2000000\0"	\ +					"fdt_addr=0x100000\0"		\ +					"fdt_high=0xa0000000\0" + +#define CONFIG_BOOTARGS			"console=ttyAMA0 root=/dev/ram0" +#define CONFIG_BOOTCOMMAND		"bootm $kernel_addr " \ +					"$initrd_addr:$initrd_size $fdt_addr" +#define CONFIG_BOOTDELAY		-1 + +/* Do not preserve environment */ +#define CONFIG_ENV_IS_NOWHERE		1 +#define CONFIG_ENV_SIZE			0x1000 + +/* Monitor Command Prompt */ +#define CONFIG_SYS_CBSIZE		512	/* Console I/O Buffer Size */ +#define CONFIG_SYS_PROMPT		"VExpress64# " +#define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE + \ +					sizeof(CONFIG_SYS_PROMPT) + 16) +#define CONFIG_SYS_HUSH_PARSER +#define CONFIG_SYS_PROMPT_HUSH_PS2	"> " +#define CONFIG_SYS_BARGSIZE		CONFIG_SYS_CBSIZE +#define CONFIG_SYS_LONGHELP +#define CONFIG_CMDLINE_EDITING		1 +#define CONFIG_SYS_MAXARGS		64	/* max command args */ + +#endif /* __VEXPRESS_AEMV8A_H */ diff --git a/include/configs/vme8349.h b/include/configs/vme8349.h index 734d13f00..7ecbafe2e 100644 --- a/include/configs/vme8349.h +++ b/include/configs/vme8349.h @@ -539,7 +539,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400	/* speed of kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */  #endif  /* diff --git a/include/configs/vpac270.h b/include/configs/vpac270.h index c3ac612a8..c6d47635b 100644 --- a/include/configs/vpac270.h +++ b/include/configs/vpac270.h @@ -124,7 +124,6 @@   */  #ifdef	CONFIG_CMD_KGDB  #define	CONFIG_KGDB_BAUDRATE		230400	/* kgdb serial port speed */ -#define	CONFIG_KGDB_SER_INDEX		2	/* which serial port to use */  #endif  /* @@ -287,7 +286,7 @@  /*   * Memory settings   */ -#define	CONFIG_SYS_MSC0_VAL	0x3ffc95fa +#define	CONFIG_SYS_MSC0_VAL	0x3ffc95f9  #define	CONFIG_SYS_MSC1_VAL	0x02ccf974  #define	CONFIG_SYS_MSC2_VAL	0x00000000  #ifdef	CONFIG_RAM_256M diff --git a/include/configs/xaeniax.h b/include/configs/xaeniax.h index 431ed96e2..2999d1b0f 100644 --- a/include/configs/xaeniax.h +++ b/include/configs/xaeniax.h @@ -84,7 +84,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	115200			/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	1			/* which serial port to use */  #endif  /* diff --git a/include/configs/zeus.h b/include/configs/zeus.h index 9d58738ce..d8aeb3794 100644 --- a/include/configs/zeus.h +++ b/include/configs/zeus.h @@ -283,7 +283,6 @@  #if defined(CONFIG_CMD_KGDB)  #define CONFIG_KGDB_BAUDRATE	230400		/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX	2		/* which serial port to use */  #endif  /* diff --git a/include/configs/zipitz2.h b/include/configs/zipitz2.h index 904f3b0fb..e38fa89fd 100644 --- a/include/configs/zipitz2.h +++ b/include/configs/zipitz2.h @@ -117,7 +117,6 @@ unsigned char zipitz2_spi_read(void);   */  #ifdef	CONFIG_CMD_KGDB  #define	CONFIG_KGDB_BAUDRATE		230400		/* speed to run kgdb serial port */ -#define	CONFIG_KGDB_SER_INDEX		2		/* which serial port to use */  #endif  /* diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h new file mode 100644 index 000000000..e7a8e9fb1 --- /dev/null +++ b/include/configs/zynq-common.h @@ -0,0 +1,238 @@ +/* + * (C) Copyright 2012 Michal Simek <monstr@monstr.eu> + * (C) Copyright 2013 Xilinx, Inc. + * + * Common configuration options for all Zynq boards. + * + * SPDX-License-Identifier:	GPL-2.0+ + */ + +#ifndef __CONFIG_ZYNQ_COMMON_H +#define __CONFIG_ZYNQ_COMMON_H + +/* High Level configuration Options */ +#define CONFIG_ARMV7 +#define CONFIG_ZYNQ + +/* CPU clock */ +#ifndef CONFIG_CPU_FREQ_HZ +# define CONFIG_CPU_FREQ_HZ	800000000 +#endif + +/* Cache options */ +#define CONFIG_CMD_CACHE +#define CONFIG_SYS_CACHELINE_SIZE	32 + +#define CONFIG_SYS_L2CACHE_OFF +#ifndef CONFIG_SYS_L2CACHE_OFF +# define CONFIG_SYS_L2_PL310 +# define CONFIG_SYS_PL310_BASE		0xf8f02000 +#endif + +/* Serial drivers */ +#define CONFIG_BAUDRATE		115200 +/* The following table includes the supported baudrates */ +#define CONFIG_SYS_BAUDRATE_TABLE  \ +	{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400} + +/* Zynq Serial driver */ +#ifdef CONFIG_ZYNQ_SERIAL_UART0 +# define CONFIG_ZYNQ_SERIAL_BASEADDR0	0xE0000000 +# define CONFIG_ZYNQ_SERIAL_BAUDRATE0	CONFIG_BAUDRATE +# define CONFIG_ZYNQ_SERIAL_CLOCK0	50000000 +#endif + +#ifdef CONFIG_ZYNQ_SERIAL_UART1 +# define CONFIG_ZYNQ_SERIAL_BASEADDR1	0xE0001000 +# define CONFIG_ZYNQ_SERIAL_BAUDRATE1	CONFIG_BAUDRATE +# define CONFIG_ZYNQ_SERIAL_CLOCK1	50000000 +#endif + +#if defined(CONFIG_ZYNQ_SERIAL_UART0) || defined(CONFIG_ZYNQ_SERIAL_UART1) +# define CONFIG_ZYNQ_SERIAL +#endif + +/* DCC driver */ +#if defined(CONFIG_ZYNQ_DCC) +# define CONFIG_ARM_DCC +# define CONFIG_CPU_V6 /* Required by CONFIG_ARM_DCC */ +#endif + +/* Ethernet driver */ +#if defined(CONFIG_ZYNQ_GEM0) || defined(CONFIG_ZYNQ_GEM1) +# define CONFIG_NET_MULTI +# define CONFIG_ZYNQ_GEM +# define CONFIG_MII +# define CONFIG_SYS_FAULT_ECHO_LINK_DOWN +# define CONFIG_PHYLIB +# define CONFIG_PHY_MARVELL +#endif + +/* SPI */ +#ifdef CONFIG_ZYNQ_SPI +# define CONFIG_SPI_FLASH +# define CONFIG_SPI_FLASH_SST +# define CONFIG_CMD_SF +#endif + +/* NOR */ +#ifndef CONFIG_SYS_NO_FLASH +# define CONFIG_SYS_FLASH_BASE		0xE2000000 +# define CONFIG_SYS_FLASH_SIZE		(16 * 1024 * 1024) +# define CONFIG_SYS_MAX_FLASH_BANKS	1 +# define CONFIG_SYS_MAX_FLASH_SECT	512 +# define CONFIG_SYS_FLASH_ERASE_TOUT	1000 +# define CONFIG_SYS_FLASH_WRITE_TOUT	5000 +# define CONFIG_FLASH_SHOW_PROGRESS	10 +# define CONFIG_SYS_FLASH_CFI +# undef CONFIG_SYS_FLASH_EMPTY_INFO +# define CONFIG_FLASH_CFI_DRIVER +# undef CONFIG_SYS_FLASH_PROTECTION +# define CONFIG_SYS_FLASH_USE_BUFFER_WRITE +#endif + +/* MMC */ +#if defined(CONFIG_ZYNQ_SDHCI0) || defined(CONFIG_ZYNQ_SDHCI1) +# define CONFIG_MMC +# define CONFIG_GENERIC_MMC +# define CONFIG_SDHCI +# define CONFIG_ZYNQ_SDHCI +# define CONFIG_CMD_MMC +# define CONFIG_CMD_FAT +# define CONFIG_SUPPORT_VFAT +# define CONFIG_CMD_EXT2 +# define CONFIG_DOS_PARTITION +#endif + +/* I2C */ +#if defined(CONFIG_ZYNQ_I2C0) || defined(CONFIG_ZYNQ_I2C1) +# define CONFIG_CMD_I2C +# define CONFIG_SYS_I2C +# define CONFIG_SYS_I2C_ZYNQ +# define CONFIG_SYS_I2C_ZYNQ_SPEED		100000 +# define CONFIG_SYS_I2C_ZYNQ_SLAVE		1 +#endif + +/* EEPROM */ +#ifdef CONFIG_ZYNQ_EEPROM +# define CONFIG_CMD_EEPROM +# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN		1 +# define CONFIG_SYS_I2C_EEPROM_ADDR		0x54 +# define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS	4 +# define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS	5 +# define CONFIG_SYS_EEPROM_SIZE			1024 /* Bytes */ +#endif + +#define CONFIG_BOOTP_SERVERIP +#define CONFIG_BOOTP_BOOTPATH +#define CONFIG_BOOTP_GATEWAY +#define CONFIG_BOOTP_HOSTNAME +#define CONFIG_BOOTP_MAY_FAIL + +/* Total Size of Environment Sector */ +#define CONFIG_ENV_SIZE			(128 << 10) + +/* Allow to overwrite serial and ethaddr */ +#define CONFIG_ENV_OVERWRITE + +/* Environment */ +#ifndef CONFIG_ENV_IS_NOWHERE +# ifndef CONFIG_SYS_NO_FLASH +#  define CONFIG_ENV_IS_IN_FLASH +# elif defined(CONFIG_SYS_NO_FLASH) +#  define CONFIG_ENV_IS_NOWHERE +# endif + +# define CONFIG_ENV_SECT_SIZE		CONFIG_ENV_SIZE +# define CONFIG_ENV_OFFSET		0xE0000 +# define CONFIG_CMD_SAVEENV +#endif + +/* Default environment */ +#define CONFIG_EXTRA_ENV_SETTINGS	\ +	"fit_image=fit.itb\0"		\ +	"load_addr=0x2000000\0"		\ +	"fit_size=0x800000\0"		\ +	"flash_off=0x100000\0"		\ +	"nor_flash_off=0xE2100000\0"	\ +	"fdt_high=0x20000000\0"		\ +	"initrd_high=0x20000000\0"	\ +	"norboot=echo Copying FIT from NOR flash to RAM... && " \ +		"cp.b ${nor_flash_off} ${load_addr} ${fit_size} && " \ +		"bootm ${load_addr}\0" \ +	"sdboot=echo Copying FIT from SD to RAM... && " \ +		"fatload mmc 0 ${load_addr} ${fit_image} && " \ +		"bootm ${load_addr}\0" \ +	"jtagboot=echo TFTPing FIT to RAM... && " \ +		"tftp ${load_addr} ${fit_image} && " \ +		"bootm ${load_addr}\0" +#define CONFIG_BOOTCOMMAND		"run $modeboot" +#define CONFIG_BOOTDELAY		3 /* -1 to Disable autoboot */ +#define CONFIG_SYS_LOAD_ADDR		0 /* default? */ + +/* Miscellaneous configurable options */ +#define CONFIG_SYS_PROMPT		"zynq-uboot> " +#define CONFIG_SYS_HUSH_PARSER + +#define CONFIG_CMDLINE_EDITING +#define CONFIG_AUTO_COMPLETE +#define CONFIG_BOARD_LATE_INIT +#define CONFIG_SYS_LONGHELP +#define CONFIG_SYS_MAXARGS		15 /* max number of command args */ +#define CONFIG_SYS_CBSIZE		256 /* Console I/O Buffer Size */ +#define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE + \ +					sizeof(CONFIG_SYS_PROMPT) + 16) + +/* Physical Memory map */ +#define CONFIG_SYS_TEXT_BASE		0x4000000 + +#define CONFIG_NR_DRAM_BANKS		1 +#define CONFIG_SYS_SDRAM_BASE		0 + +#define CONFIG_SYS_MEMTEST_START	CONFIG_SYS_SDRAM_BASE +#define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_SDRAM_BASE + 0x1000) + +#define CONFIG_SYS_MALLOC_LEN		0x400000 +#define CONFIG_SYS_INIT_RAM_ADDR	CONFIG_SYS_SDRAM_BASE +#define CONFIG_SYS_INIT_RAM_SIZE	CONFIG_SYS_MALLOC_LEN +#define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \ +					CONFIG_SYS_INIT_RAM_SIZE - \ +					GENERATED_GBL_DATA_SIZE) + +/* Enable the PL to be downloaded */ +#define CONFIG_FPGA +#define CONFIG_FPGA_XILINX +#define CONFIG_FPGA_ZYNQPL +#define CONFIG_CMD_FPGA + +/* Open Firmware flat tree */ +#define CONFIG_OF_LIBFDT + +/* FIT support */ +#define CONFIG_FIT +#define CONFIG_FIT_VERBOSE	1 /* enable fit_format_{error,warning}() */ + +/* FDT support */ +#define CONFIG_OF_CONTROL +#define CONFIG_OF_SEPARATE +#define CONFIG_DISPLAY_BOARDINFO_LATE + +/* RSA support */ +#define CONFIG_FIT_SIGNATURE +#define CONFIG_RSA + +/* Boot FreeBSD/vxWorks from an ELF image */ +#if defined(CONFIG_ZYNQ_BOOT_FREEBSD) +# define CONFIG_API +# define CONFIG_CMD_ELF +# define CONFIG_SYS_MMC_MAX_DEVICE	1 +#endif + +/* Commands */ +#include <config_cmd_default.h> + +#define CONFIG_CMD_PING +#define CONFIG_CMD_DHCP +#define CONFIG_CMD_MII + +#endif /* __CONFIG_ZYNQ_COMMON_H */ diff --git a/include/configs/zynq.h b/include/configs/zynq.h deleted file mode 100644 index 82ec826f7..000000000 --- a/include/configs/zynq.h +++ /dev/null @@ -1,139 +0,0 @@ -/* - * (C) Copyright 2012 Michal Simek <monstr@monstr.eu> - * - * SPDX-License-Identifier:	GPL-2.0+ - */ - -#ifndef __CONFIG_ZYNQ_H -#define __CONFIG_ZYNQ_H - -#define CONFIG_ARMV7 /* This is an ARM V7 CPU core */ -#define CONFIG_ZYNQ - -/* CPU clock */ -#define CONFIG_CPU_FREQ_HZ	800000000 - -/* Ram */ -#define CONFIG_NR_DRAM_BANKS		1 -#define CONFIG_SYS_TEXT_BASE		0 -#define CONFIG_SYS_SDRAM_BASE		0 -#define CONFIG_SYS_SDRAM_SIZE		0x40000000 -#define CONFIG_SYS_MEMTEST_START	CONFIG_SYS_SDRAM_BASE -#define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_SDRAM_BASE + 0x1000) - -/* The following table includes the supported baudrates */ -#define CONFIG_SYS_BAUDRATE_TABLE  \ -	{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400} - -#define CONFIG_BAUDRATE		115200 - -/* XPSS Serial driver */ -#define CONFIG_ZYNQ_SERIAL -#define CONFIG_ZYNQ_SERIAL_BASEADDR0	0xE0001000 -#define CONFIG_ZYNQ_SERIAL_BAUDRATE0	CONFIG_BAUDRATE -#define CONFIG_ZYNQ_SERIAL_CLOCK0	50000000 - -/* Ethernet driver */ -#define CONFIG_NET_MULTI -#define CONFIG_ZYNQ_GEM -#define CONFIG_ZYNQ_GEM0 -#define CONFIG_ZYNQ_GEM_PHY_ADDR0	7 - -#define CONFIG_ZYNQ_SDHCI -#define CONFIG_ZYNQ_SDHCI0 - -/* MMC */ -#if defined(CONFIG_ZYNQ_SDHCI0) || defined(CONFIG_ZYNQ_SDHCI1) -# define CONFIG_MMC -# define CONFIG_GENERIC_MMC -# define CONFIG_SDHCI -# define CONFIG_ZYNQ_SDHCI -# define CONFIG_CMD_MMC -# define CONFIG_CMD_FAT -# define CONFIG_SUPPORT_VFAT -# define CONFIG_CMD_EXT2 -# define CONFIG_DOS_PARTITION -#endif - -#define CONFIG_ZYNQ_I2C0 - -/* I2C */ -#if defined(CONFIG_ZYNQ_I2C0) || defined(CONFIG_ZYNQ_I2C1) -# define CONFIG_CMD_I2C -# define CONFIG_SYS_I2C -# define CONFIG_SYS_I2C_ZYNQ -# define CONFIG_SYS_I2C_ZYNQ_SPEED		100000 -# define CONFIG_SYS_I2C_ZYNQ_SLAVE		1 -#endif - -#if defined(CONFIG_ZYNQ_DCC) -# define CONFIG_ARM_DCC -# define CONFIG_CPU_V6 /* Required by CONFIG_ARM_DCC */ -#endif - -#define CONFIG_ZYNQ_SPI - -/* SPI */ -#ifdef CONFIG_ZYNQ_SPI -# define CONFIG_SPI_FLASH -# define CONFIG_SPI_FLASH_SST -# define CONFIG_CMD_SF -#endif - -/* Enable the PL to be downloaded */ -#define CONFIG_FPGA -#define CONFIG_FPGA_XILINX -#define CONFIG_FPGA_ZYNQPL -#define CONFIG_CMD_FPGA - -#define CONFIG_BOOTP_SERVERIP -#define CONFIG_BOOTP_BOOTPATH -#define CONFIG_BOOTP_GATEWAY -#define CONFIG_BOOTP_HOSTNAME -#define CONFIG_BOOTP_MAY_FAIL - -/* MII and Phylib */ -#define CONFIG_MII -#define CONFIG_SYS_FAULT_ECHO_LINK_DOWN -#define CONFIG_PHYLIB -#define CONFIG_PHY_MARVELL - -/* Environment */ -#define CONFIG_ENV_IS_NOWHERE -#define CONFIG_ENV_SIZE 0x10000 - -#define CONFIG_SYS_NO_FLASH - -#define CONFIG_SYS_MALLOC_LEN		0x400000 -#define CONFIG_SYS_INIT_RAM_ADDR	CONFIG_SYS_SDRAM_BASE -#define CONFIG_SYS_INIT_RAM_SIZE	CONFIG_SYS_MALLOC_LEN -#define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \ -						CONFIG_SYS_INIT_RAM_SIZE - \ -						GENERATED_GBL_DATA_SIZE) - -#define CONFIG_SYS_PROMPT	"U-Boot> " -#define CONFIG_SYS_CBSIZE	256 /* Console I/O Buffer Size */ -#define CONFIG_SYS_PBSIZE	(CONFIG_SYS_CBSIZE + \ -					sizeof(CONFIG_SYS_PROMPT) + 16) - -#define CONFIG_SYS_LOAD_ADDR	0 -#define CONFIG_SYS_MAXARGS	15 /* max number of command args */ -#define CONFIG_SYS_LONGHELP -#define CONFIG_AUTO_COMPLETE -#define CONFIG_CMDLINE_EDITING - -#define CONFIG_SYS_HUSH_PARSER -#define CONFIG_SYS_PROMPT_HUSH_PS2	"> " - -/* OF */ -#define CONFIG_FIT -#define CONFIG_OF_LIBFDT - -/* Commands */ -#include <config_cmd_default.h> - -#define CONFIG_CMD_PING -#define CONFIG_CMD_DHCP -#define CONFIG_CMD_MII - -#endif /* __CONFIG_ZYNQ_H */ diff --git a/include/configs/zynq_microzed.h b/include/configs/zynq_microzed.h new file mode 100644 index 000000000..b0328a2cc --- /dev/null +++ b/include/configs/zynq_microzed.h @@ -0,0 +1,26 @@ +/* + * (C) Copyright 2013 Xilinx, Inc. + * + * Configuration for Micro Zynq Evaluation and Development Board - MicroZedBoard + * See zynq-common.h for Zynq common configs + * + * SPDX-License-Identifier:	GPL-2.0+ + */ + +#ifndef __CONFIG_ZYNQ_MICROZED_H +#define __CONFIG_ZYNQ_MICROZED_H + +#define CONFIG_SYS_SDRAM_SIZE		(1024 * 1024 * 1024) + +#define CONFIG_ZYNQ_SERIAL_UART1 +#define CONFIG_ZYNQ_GEM0 +#define CONFIG_ZYNQ_GEM_PHY_ADDR0	0 + +#define CONFIG_SYS_NO_FLASH + +#define CONFIG_ZYNQ_SDHCI0 +#define CONFIG_DEFAULT_DEVICE_TREE	zynq-microzed + +#include <configs/zynq-common.h> + +#endif /* __CONFIG_ZYNQ_MICROZED_H */ diff --git a/include/configs/zynq_zc70x.h b/include/configs/zynq_zc70x.h new file mode 100644 index 000000000..673660e65 --- /dev/null +++ b/include/configs/zynq_zc70x.h @@ -0,0 +1,29 @@ +/* + * (C) Copyright 2013 Xilinx, Inc. + * + * Configuration settings for the Xilinx Zynq ZC702 and ZC706 boards + * See zynq_common.h for Zynq common configs + * + * SPDX-License-Identifier:	GPL-2.0+ + */ + +#ifndef __CONFIG_ZYNQ_ZC70X_H +#define __CONFIG_ZYNQ_ZC70X_H + +#define CONFIG_SYS_SDRAM_SIZE		(1024 * 1024 * 1024) + +#define CONFIG_ZYNQ_SERIAL_UART1 +#define CONFIG_ZYNQ_GEM0 +#define CONFIG_ZYNQ_GEM_PHY_ADDR0	7 + +#define CONFIG_SYS_NO_FLASH + +#define CONFIG_ZYNQ_SDHCI0 +#define CONFIG_ZYNQ_I2C0 +#define CONFIG_ZYNQ_EEPROM +#define CONFIG_ZYNQ_BOOT_FREEBSD +#define CONFIG_DEFAULT_DEVICE_TREE	zynq-zc702 + +#include <configs/zynq-common.h> + +#endif /* __CONFIG_ZYNQ_ZC70X_H */ diff --git a/include/configs/zynq_zc770.h b/include/configs/zynq_zc770.h new file mode 100644 index 000000000..8aa96e712 --- /dev/null +++ b/include/configs/zynq_zc770.h @@ -0,0 +1,42 @@ +/* + * (C) Copyright 2013 Xilinx, Inc. + * + * Configuration settings for the Xilinx Zynq ZC770 board. + * See zynq-common.h for Zynq common configs + * + * SPDX-License-Identifier:     GPL-2.0+ + */ + +#ifndef __CONFIG_ZYNQ_ZC770_H +#define __CONFIG_ZYNQ_ZC770_H + +#define CONFIG_SYS_SDRAM_SIZE		(1024 * 1024 * 1024) + +#define CONFIG_SYS_NO_FLASH + +#if defined(CONFIG_ZC770_XM010) +# define CONFIG_ZYNQ_SERIAL_UART1 +# define CONFIG_ZYNQ_GEM0 +# define CONFIG_ZYNQ_GEM_PHY_ADDR0	7 +# define CONFIG_ZYNQ_SDHCI0 +# define CONFIG_ZYNQ_SPI +# define CONFIG_DEFAULT_DEVICE_TREE	zynq-zc770-xm010 + +#elif defined(CONFIG_ZC770_XM012) +# define CONFIG_ZYNQ_SERIAL_UART1 +# undef CONFIG_SYS_NO_FLASH +# define CONFIG_DEFAULT_DEVICE_TREE	zynq-zc770-xm012 + +#elif defined(CONFIG_ZC770_XM013) +# define CONFIG_ZYNQ_SERIAL_UART0 +# define CONFIG_ZYNQ_GEM1 +# define CONFIG_ZYNQ_GEM_PHY_ADDR1	7 +# define CONFIG_DEFAULT_DEVICE_TREE	zynq-zc770-xm013 + +#else +# define CONFIG_ZYNQ_SERIAL_UART0 +#endif + +#include <configs/zynq-common.h> + +#endif /* __CONFIG_ZYNQ_ZC770_H */ diff --git a/include/configs/zynq_zed.h b/include/configs/zynq_zed.h new file mode 100644 index 000000000..412dede53 --- /dev/null +++ b/include/configs/zynq_zed.h @@ -0,0 +1,27 @@ +/* + * (C) Copyright 2013 Xilinx, Inc. + * + * Configuration for Zynq Evaluation and Development Board - ZedBoard + * See zynq_common.h for Zynq common configs + * + * SPDX-License-Identifier:	GPL-2.0+ + */ + +#ifndef __CONFIG_ZYNQ_ZED_H +#define __CONFIG_ZYNQ_ZED_H + +#define CONFIG_SYS_SDRAM_SIZE		(512 * 1024 * 1024) + +#define CONFIG_ZYNQ_SERIAL_UART1 +#define CONFIG_ZYNQ_GEM0 +#define CONFIG_ZYNQ_GEM_PHY_ADDR0	0 + +#define CONFIG_SYS_NO_FLASH + +#define CONFIG_ZYNQ_SDHCI0 +#define CONFIG_ZYNQ_BOOT_FREEBSD +#define CONFIG_DEFAULT_DEVICE_TREE	zynq-zed + +#include <configs/zynq-common.h> + +#endif /* __CONFIG_ZYNQ_ZED_H */ diff --git a/include/dfu.h b/include/dfu.h index cc1404492..f973426aa 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -77,6 +77,9 @@ static inline unsigned int get_mmc_blk_size(int dev)  #ifndef CONFIG_SYS_DFU_MAX_FILE_SIZE  #define CONFIG_SYS_DFU_MAX_FILE_SIZE CONFIG_SYS_DFU_DATA_BUF_SIZE  #endif +#ifndef DFU_DEFAULT_POLL_TIMEOUT +#define DFU_DEFAULT_POLL_TIMEOUT 0 +#endif  struct dfu_entity {  	char			name[DFU_NAME_SIZE]; @@ -131,6 +134,7 @@ bool dfu_reset(void);  int dfu_init_env_entities(char *interface, int dev);  unsigned char *dfu_get_buf(void);  unsigned char *dfu_free_buf(void); +unsigned long dfu_get_buf_size(void);  int dfu_read(struct dfu_entity *de, void *buf, int size, int blk_seq_num);  int dfu_write(struct dfu_entity *de, void *buf, int size, int blk_seq_num); diff --git a/include/image.h b/include/image.h index ee6eb8d24..7de2bb2f8 100644 --- a/include/image.h +++ b/include/image.h @@ -156,6 +156,7 @@ struct lmb;  #define IH_ARCH_SANDBOX		19	/* Sandbox architecture (test only) */  #define IH_ARCH_NDS32	        20	/* ANDES Technology - NDS32  */  #define IH_ARCH_OPENRISC        21	/* OpenRISC 1000  */ +#define IH_ARCH_ARM64		22	/* ARM64	*/  /*   * Image Types diff --git a/include/linux/crc8.h b/include/linux/crc8.h new file mode 100644 index 000000000..b5fd2ac9d --- /dev/null +++ b/include/linux/crc8.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2013 Google, Inc + * + * SPDX-License-Identifier:	GPL-2.0+ + */ + + +#ifndef __linux_crc8_h +#define __linux_crc8_h + +/** + * crc8() - Calculate and return CRC-8 of the data + * + * This uses an x^8 + x^2 + x + 1 polynomial.  A table-based algorithm would + * be faster, but for only a few bytes it isn't worth the code size + * + * @vptr: Buffer to checksum + * @len: Length of buffer in bytes + * @return CRC8 checksum + */ +unsigned int crc8(const unsigned char *vptr, int len); + +#endif diff --git a/include/linux/linkage.h b/include/linux/linkage.h index 39c712eac..7435fcd02 100644 --- a/include/linux/linkage.h +++ b/include/linux/linkage.h @@ -48,6 +48,10 @@  	.globl SYMBOL_NAME(name); \  	LENTRY(name) +#define WEAK(name) \ +	.weak SYMBOL_NAME(name); \ +	LENTRY(name) +  #ifndef END  #define END(name) \  	.size name, .-name diff --git a/include/mmc.h b/include/mmc.h index cb558da63..e1060b9ff 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -262,6 +262,8 @@ struct mmc {  	uint card_caps;  	uint host_caps;  	uint ocr; +	uint dsr; +	uint dsr_imp;  	uint scr[2];  	uint csd[4];  	uint cid[4]; @@ -304,7 +306,7 @@ int board_mmc_getcd(struct mmc *mmc);  int mmc_switch_part(int dev_num, unsigned int part_num);  int mmc_getcd(struct mmc *mmc);  int mmc_getwp(struct mmc *mmc); -void spl_mmc_load(void) __noreturn; +int mmc_set_dsr(struct mmc *mmc, u16 val);  /* Function to change the size of boot partition and rpmb partitions */  int mmc_boot_partition_size_change(struct mmc *mmc, unsigned long bootsize,  					unsigned long rpmbsize); diff --git a/include/os.h b/include/os.h index 950433daa..b65fba430 100644 --- a/include/os.h +++ b/include/os.h @@ -107,6 +107,35 @@ void os_tty_raw(int fd);  void *os_malloc(size_t length);  /** + * Free memory previous allocated with os_malloc()/os_realloc() + * + * This returns the memory to the OS. + * + * \param ptr		Pointer to memory block to free + */ +void *os_free(void *ptr); + +/** + * Reallocate previously-allocated memory to increase/decrease space + * + * This works in a similar way to the C library realloc() function. If + * length is 0, then ptr is freed. Otherwise the space used by ptr is + * expanded or reduced depending on whether length is larger or smaller + * than before. + * + * If ptr is NULL, then this is similar to calling os_malloc(). + * + * This function may need to move the memory block to make room for any + * extra space, in which case the new pointer is returned. + * + * \param ptr		Pointer to memory block to reallocate + * \param length	New length for memory block + * \return pointer to new memory block, or NULL on failure or if length + *	is 0. + */ +void *os_realloc(void *ptr, size_t length); + +/**   * Access to the usleep function of the os   *   * \param usec Time to sleep in micro seconds @@ -180,4 +209,40 @@ const char *os_dirent_get_typename(enum os_dirent_t type);   */  ssize_t os_get_filesize(const char *fname); +/** + * Write a character to the controlling OS terminal + * + * This bypasses the U-Boot console support and writes directly to the OS + * stdout file descriptor. + * + * @param ch	Character to write + */ +void os_putc(int ch); + +/** + * Write a string to the controlling OS terminal + * + * This bypasses the U-Boot console support and writes directly to the OS + * stdout file descriptor. + * + * @param str	String to write (note that \n is not appended) + */ +void os_puts(const char *str); + +/** + * Write the sandbox RAM buffer to a existing file + * + * @param fname		Filename to write memory to (simple binary format) + * @return 0 if OK, -ve on error + */ +int os_write_ram_buf(const char *fname); + +/** + * Read the sandbox RAM buffer from an existing file + * + * @param fname		Filename containing memory (simple binary format) + * @return 0 if OK, -ve on error + */ +int os_read_ram_buf(const char *fname); +  #endif diff --git a/include/part.h b/include/part.h index ce840bd84..4beb6db89 100644 --- a/include/part.h +++ b/include/part.h @@ -58,6 +58,8 @@ typedef struct block_dev_desc {  #define IF_TYPE_MMC		6  #define IF_TYPE_SD		7  #define IF_TYPE_SATA		8 +#define IF_TYPE_HOST		9 +#define IF_TYPE_MAX		10	/* Max number of IF_TYPE_* supported */  /* Part types */  #define PART_TYPE_UNKNOWN	0x00 @@ -102,6 +104,8 @@ block_dev_desc_t* usb_stor_get_dev(int dev);  block_dev_desc_t* mmc_get_dev(int dev);  block_dev_desc_t* systemace_get_dev(int dev);  block_dev_desc_t* mg_disk_get_dev(int dev); +block_dev_desc_t *host_get_dev(int dev); +int host_get_dev_err(int dev, block_dev_desc_t **blk_devp);  /* disk/part.c */  int get_partition_info (block_dev_desc_t * dev_desc, int part, disk_partition_t *info); @@ -123,6 +127,7 @@ static inline block_dev_desc_t* usb_stor_get_dev(int dev) { return NULL; }  static inline block_dev_desc_t* mmc_get_dev(int dev) { return NULL; }  static inline block_dev_desc_t* systemace_get_dev(int dev) { return NULL; }  static inline block_dev_desc_t* mg_disk_get_dev(int dev) { return NULL; } +static inline block_dev_desc_t *host_get_dev(int dev) { return NULL; }  static inline int get_partition_info (block_dev_desc_t * dev_desc, int part,  	disk_partition_t *info) { return -1; } diff --git a/include/sandboxblockdev.h b/include/sandboxblockdev.h new file mode 100644 index 000000000..627787aa3 --- /dev/null +++ b/include/sandboxblockdev.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2013, Henrik Nordstrom <henrik@henriknordstrom.net> + * + * SPDX-License-Identifier:	GPL-2.0+ + */ + +#ifndef __SANDBOX_BLOCK_DEV__ +#define __SANDBOX_BLOCK_DEV__ + +struct host_block_dev { +	block_dev_desc_t blk_dev; +	char *filename; +	int fd; +}; + +int host_dev_bind(int dev, char *filename); + +#endif diff --git a/include/sh_tmu.h b/include/sh_tmu.h index f5b42faea..61afc7136 100644 --- a/include/sh_tmu.h +++ b/include/sh_tmu.h @@ -47,7 +47,7 @@ struct tmu_regs {  };  #endif /* CONFIG_SH3 */ -#if defined(CONFIG_SH4) || defined(CONFIG_SH4A) || defined(CONFIG_RMOBILE) +#if defined(CONFIG_SH4) || defined(CONFIG_RMOBILE)  struct tmu_regs {  	u32 reserved;  	u8  tstr; diff --git a/include/spi.h b/include/spi.h index aba792244..ffd66478b 100644 --- a/include/spi.h +++ b/include/spi.h @@ -30,6 +30,24 @@  #define SPI_XFER_MMAP		0x08	/* Memory Mapped start */  #define SPI_XFER_MMAP_END	0x10	/* Memory Mapped End */  #define SPI_XFER_ONCE		(SPI_XFER_BEGIN | SPI_XFER_END) +#define SPI_XFER_U_PAGE		(1 << 5) + +/* SPI TX operation modes */ +#define SPI_OPM_TX_QPP		1 << 0 + +/* SPI RX operation modes */ +#define SPI_OPM_RX_AS		1 << 0 +#define SPI_OPM_RX_DOUT		1 << 1 +#define SPI_OPM_RX_DIO		1 << 2 +#define SPI_OPM_RX_QOF		1 << 3 +#define SPI_OPM_RX_QIOF		1 << 4 +#define SPI_OPM_RX_EXTN		SPI_OPM_RX_AS | SPI_OPM_RX_DOUT | \ +				SPI_OPM_RX_DIO | SPI_OPM_RX_QOF | \ +				SPI_OPM_RX_QIOF + +/* SPI bus connection options */ +#define SPI_CONN_DUAL_SHARED	1 << 0 +#define SPI_CONN_DUAL_SEPARATED	1 << 1  /* Header byte that marks the start of the message */  #define SPI_PREAMBLE_END_BYTE	0xec @@ -43,17 +61,25 @@   *   * @bus:		ID of the bus that the slave is attached to.   * @cs:			ID of the chip select connected to the slave. + * @op_mode_rx:		SPI RX operation mode. + * @op_mode_tx:		SPI TX operation mode.   * @wordlen:		Size of SPI word in number of bits   * @max_write_size:	If non-zero, the maximum number of bytes which can   *			be written at once, excluding command bytes.   * @memory_map:		Address of read-only SPI flash access. + * @option:		Varies SPI bus options - separate, shared bus. + * @flags:		Indication of SPI flags.   */  struct spi_slave {  	unsigned int bus;  	unsigned int cs; +	u8 op_mode_rx; +	u8 op_mode_tx;  	unsigned int wordlen;  	unsigned int max_write_size;  	void *memory_map; +	u8 option; +	u8 flags;  };  /** diff --git a/include/spi_flash.h b/include/spi_flash.h index afc3a5809..f79f0eacc 100644 --- a/include/spi_flash.h +++ b/include/spi_flash.h @@ -19,11 +19,60 @@  #include <linux/types.h>  #include <linux/compiler.h> +/* sf param flags */ +#define SECT_4K		1 << 1 +#define SECT_32K	1 << 2 +#define E_FSR		1 << 3 +#define WR_QPP		1 << 4 + +/* Enum list - Full read commands */ +enum spi_read_cmds { +	ARRAY_SLOW = 1 << 0, +	DUAL_OUTPUT_FAST = 1 << 1, +	DUAL_IO_FAST = 1 << 2, +	QUAD_OUTPUT_FAST = 1 << 3, +	QUAD_IO_FAST = 1 << 4, +}; +#define RD_EXTN		ARRAY_SLOW | DUAL_OUTPUT_FAST | DUAL_IO_FAST +#define RD_FULL		RD_EXTN | QUAD_OUTPUT_FAST | QUAD_IO_FAST + +/* Dual SPI flash memories */ +enum spi_dual_flash { +	SF_SINGLE_FLASH = 0, +	SF_DUAL_STACKED_FLASH = 1 << 0, +	SF_DUAL_PARALLEL_FLASH = 1 << 1, +}; + +/** + * struct spi_flash_params - SPI/QSPI flash device params structure + * + * @name:		Device name ([MANUFLETTER][DEVTYPE][DENSITY][EXTRAINFO]) + * @jedec:		Device jedec ID (0x[1byte_manuf_id][2byte_dev_id]) + * @ext_jedec:		Device ext_jedec ID + * @sector_size:	Sector size of this device + * @nr_sectors:		No.of sectors on this device + * @e_rd_cmd:		Enum list for read commands + * @flags:		Importent param, for flash specific behaviour + */ +struct spi_flash_params { +	const char *name; +	u32 jedec; +	u16 ext_jedec; +	u32 sector_size; +	u32 nr_sectors; +	u8 e_rd_cmd; +	u16 flags; +}; + +extern const struct spi_flash_params spi_flash_params_table[]; +  /**   * struct spi_flash - SPI flash structure   *   * @spi:		SPI slave   * @name:		Name of SPI flash + * @dual_flash:		Indicates dual flash memories - dual stacked, parallel + * @shift:		Flash shift useful in dual parallel   * @size:		Total flash size   * @page_size:		Write (page) size   * @sector_size:	Sector size @@ -33,6 +82,9 @@   * @bank_curr:		Current flash bank   * @poll_cmd:		Poll cmd - for flash erase/program   * @erase_cmd:		Erase cmd 4K, 32K, 64K + * @read_cmd:		Read cmd - Array Fast, Extn read and quad read. + * @write_cmd:		Write cmd - page and quad program. + * @dummy_byte:		Dummy cycles for read operation.   * @memory_map:		Address of read-only SPI flash access   * @read:		Flash read ops: Read len bytes at offset into buf   *			Supported cmds: Fast Array Read @@ -45,6 +97,8 @@  struct spi_flash {  	struct spi_slave *spi;  	const char *name; +	u8 dual_flash; +	u8 shift;  	u32 size;  	u32 page_size; @@ -57,6 +111,9 @@ struct spi_flash {  #endif  	u8 poll_cmd;  	u8 erase_cmd; +	u8 read_cmd; +	u8 write_cmd; +	u8 dummy_byte;  	void *memory_map;  	int (*read)(struct spi_flash *flash, u32 offset, size_t len, void *buf); diff --git a/include/usb_mass_storage.h b/include/usb_mass_storage.h index 9df3adcf2..058dcf117 100644 --- a/include/usb_mass_storage.h +++ b/include/usb_mass_storage.h @@ -20,6 +20,9 @@  #define UMS_NUM_SECTORS		0  #endif +/* Wait at maximum 60 seconds for cable connection */ +#define UMS_CABLE_READY_TIMEOUT	60 +  struct ums {  	int (*read_sector)(struct ums *ums_dev,  			   ulong start, lbaint_t blkcnt, void *buf); diff --git a/include/vxworks.h b/include/vxworks.h index c5d1577f9..122043c94 100644 --- a/include/vxworks.h +++ b/include/vxworks.h @@ -9,6 +9,9 @@  #define _VXWORKS_H_  int do_bootvx(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); +void boot_prep_vxworks(bootm_headers_t *images); +void boot_jump_vxworks(bootm_headers_t *images); +void do_bootvx_fdt(bootm_headers_t *images);  /*   * Use bootaddr to find the location in memory that VxWorks |