arm, davinci: add am1808 based enbw_cmc board
v2 cover arm, davinci: add am1808 based enbw_cmc board
repost from
http://patchwork.ozlabs.org/patch/114758/
changes:
- rebase against TOT
- use CONFIG_MACH_TYPE instead setting the MACH_TYPE in board specific code, as Igor Grinberg suggested.
- add logversion=2 to default Environment
- Fix typo CONFIG_AM1808_LOWLEVEL as Christian Riesch suggested.
- Fix comment for PLL0 and PLL1 frequency and use PLLM = 18 for PLL0 to get the 456 MHz as Christian Riesch commented. Also fix the DDR RAM timing according to the new settings from the PLL
- add MMC support
- enable USB PSC
- correct default environment "key_cmd*" vars
- added MAINTAINERS entry
also needed patches:
[U-Boot] arm, post, memory: fix bug if sdram base != 0x00000000
http://patchwork.ozlabs.org/patch/118208/
[U-Boot] : davinci: Replace CONFIG_PRELOADER with CONFIG_SPL_BUILD in board/davinci/common/misc.c
http://patchwork.ozlabs.org/patch/114482/
[U-Boot] arm, fdt: update ethernet mac address before booting Linux
http://patchwork.ozlabs.org/patch/114736/
[U-Boot] arm, logbuffer: make it compileclean
http://patchwork.ozlabs.org/patch/114740/
[U-Boot] cosmetic, post: Codingstyle cleanup
http://patchwork.ozlabs.org/patch/114742/
[U-Boot] arm, post: add missing post_time_ms for arm
http://patchwork.ozlabs.org/patch/114743/
checkpatch:
total: 0 errors, 0 warnings, 8 lines checked
20111007/0001-arm-davinci-fix-typo-in-arch-arm-cpu-arm926ejs-davin.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 7 lines checked
20111007/0002-arm-davinci-add-DAVINCI_MMC_CLKID.patch has no obvious style problems and is ready for submission.
WARNING: Use #include <linux/io.h> instead of <asm/io.h>
#163: FILE: board/enbw/enbw_cmc/enbw_cmc.c:45:
+#include <asm/io.h>
ERROR: Macros with multiple statements should be enclosed in a do - while loop #831: FILE: include/configs/enbw_cmc.h:96:
+#define CONFIG_DTT_SENSORS {0} /* Sensor addresses */
total: 1 errors, 1 warnings, 1116 lines checked
20111007/0003-arm-davinci-add-support-for-am1808-based-enbw_cmc-bo.patch has style problems, please review.
If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS.
Heiko Schocher (3):
arm, davinci: fix typo in arch/arm/cpu/arm926ejs/davinci/Makefile arm, davinci: add DAVINCI_MMC_CLKID
arm, davinci: add support for am1808 based enbw_cmc board
MAINTAINERS | 1 + arch/arm/cpu/arm926ejs/davinci/Makefile | 2 +- arch/arm/include/asm/arch-davinci/hardware.h | 1 + board/enbw/enbw_cmc/Makefile | 51 +++ board/enbw/enbw_cmc/enbw_cmc.c | 599 ++++++++++++++++++++++++++ boards.cfg | 1 + include/configs/enbw_cmc.h | 452 +++++++++++++++++++ 7 files changed, 1106 insertions(+), 1 deletions(-) create mode 100644 board/enbw/enbw_cmc/Makefile create mode 100644 board/enbw/enbw_cmc/enbw_cmc.c create mode 100644 include/configs/enbw_cmc.h
Signature · 1 line
1.7.6.2
PATCH v2 1/3 arm, davinci: fix typo in arch/arm/cpu/arm926ejs/davinci/Makefile
--- arch/arm/cpu/arm926ejs/davinci/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/cpu/arm926ejs/davinci/Makefile +1 -1
@@ -28,7 +28,7 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(SOC).o COBJS-y += cpu.o timer.o psc.o -COBJS-$(CONFIG_AM18018_LOWLEVEL) += am1808_lowlevel.o +COBJS-$(CONFIG_AM1808_LOWLEVEL) += am1808_lowlevel.o COBJS-$(CONFIG_SOC_DM355) += dm355.o COBJS-$(CONFIG_SOC_DM365) += dm365.o COBJS-$(CONFIG_SOC_DM644X) += dm644x.o
Signature · 1 line
1.7.6.2
PATCH v2 2/3 arm, davinci: add DAVINCI_MMC_CLKID
In reply to Heiko Schocher--- arch/arm/include/asm/arch-davinci/hardware.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/include/asm/arch-davinci/hardware.h +1 -0
@@ -416,6 +416,7 @@ struct davinci_pllc_regs {enum davinci_clk_ids {DAVINCI_SPI0_CLKID =2 ,DAVINCI_UART2_CLKID =2 , +DAVINCI_MMC_CLKID =2 ,DAVINCI_MDIO_CLKID =4 ,DAVINCI_ARM_CLKID =6 ,DAVINCI_PLLM_CLKID =0xff ,
Signature · 1 line
1.7.6.2
PATCH v2 3/3 arm, davinci: add support for am1808 based enbw_cmc board
In reply to Heiko Schocher- booting from NOR Flash with direct boot method
- POST support
- LOGBUF support
***
Message-Id: <[email protected]>
- changes for v2
- use CONFIG_MACH_TYPE instead setting the MACH_TYPE in board specific code, as Igor Grinberg suggested.
- add logversion=2 to default Environment
- Fix typo CONFIG_AM1808_LOWLEVEL as Christian Riesch suggested.
- Fix comment for PLL0 and PLL1 frequency and use PLLM = 18 for PLL0 to get the 456 MHz as Christian Riesch commented. Also fix the DDR RAM timing according to the new settings from the PLL
- add MMC support
- enable USB PSC
- correct default environment "key_cmd*" vars
- added MAINTAINERS entry
--- MAINTAINERS | 1 + board/enbw/enbw_cmc/Makefile | 51 ++++ board/enbw/enbw_cmc/enbw_cmc.c | 599 ++++++++++++++++++++++++++++++++++++++++ boards.cfg | 1 + include/configs/enbw_cmc.h | 452 ++++++++++++++++++++++++++++++ 5 files changed, 1104 insertions(+), 0 deletions(-) create mode 100644 board/enbw/enbw_cmc/Makefile create mode 100644 board/enbw/enbw_cmc/enbw_cmc.c create mode 100644 include/configs/enbw_cmc.h
MAINTAINERS +1 -0
@@ -796,6 +796,7 @@ Jens Scharsig <[email protected]> Heiko Schocher <[email protected]> + enbw_cmc ARM926EJS (AM1808 SoC) magnesium i.MX27 mgcoge3un ARM926EJS (Kirkwood SoC)
board/enbw/enbw_cmc/Makefile new file +51 -0
51 lines not on this page · raw message
board/enbw/enbw_cmc/enbw_cmc.c new file +599 -0
599 lines not on this page · raw message
boards.cfg +1 -0
@@ -132,6 +132,7 @@ davinci_dvevm arm arm926ejs dvevm davinci davinci_schmoogie arm arm926ejs schmoogie davinci davinci davinci_sffsdr arm arm926ejs sffsdr davinci davinci davinci_sonata arm arm926ejs sonata davinci davinci +enbw_cmc arm arm926ejs enbw_cmc enbw davinci km_kirkwood arm arm926ejs km_arm keymile kirkwood km_kirkwood:KM_DISABLE_PCI km_kirkwood_pci arm arm926ejs km_arm keymile kirkwood km_kirkwood mgcoge3un arm arm926ejs km_arm keymile kirkwood
include/configs/enbw_cmc.h new file +452 -0
452 lines not on this page · raw message
Signature · 1 line
1.7.6.2
PATCH v2 3/3 arm, davinci: add support for am1808 based enbw_cmc board
Hello Heiko,
On Fri, Oct 7, 2011 at 2:25 PM, Heiko Schocher <[email protected]> wrote:
[...]
Quoted 10 lines
---
?MAINTAINERS ? ? ? ? ? ? ? ? ? ?| ? ?1 + ?board/enbw/enbw_cmc/Makefile ? | ? 51 ++++ ?board/enbw/enbw_cmc/enbw_cmc.c | ?599 ++++++++++++++++++++++++++++++++++++++++ ?boards.cfg ? ? ? ? ? ? ? ? ? ? | ? ?1 + ?include/configs/enbw_cmc.h ? ? | ?452 ++++++++++++++++++++++++++++++?5 files changed, 1104 insertions(+), 0 deletions(-) ?create mode 100644 board/enbw/enbw_cmc/Makefile ?create mode 100644
board/enbw/enbw_cmc/enbw_cmc.c?create mode 100644include/configs/enbw_cmc.h
[...]
Quoted 5 lines
include/configs/enbw_cmc.h new file +0
-0
[...]
Quoted 15 lines
include/configs/enbw_cmc.h new file +15
-0+ +/* +* with Pin Setup Utility from TI +* missing GPIO pin setup +*/ +#define CONFIG_SYS_AM1808_PINMUX0 ? ? ?0x44448888 +#define CONFIG_SYS_AM1808_PINMUX1 ? ? ?0x48888884 +#define CONFIG_SYS_AM1808_PINMUX2 ? ? ?0x88888888 +#define CONFIG_SYS_AM1808_PINMUX3 ? ? ?0x88888888 +#define CONFIG_SYS_AM1808_PINMUX4 ? ? ?0x22222288 +#define CONFIG_SYS_AM1808_PINMUX5 ? ? ?0x11111111 +#define CONFIG_SYS_AM1808_PINMUX6 ? ? ?0x11818811 +#define CONFIG_SYS_AM1808_PINMUX7 ? ? ?0x11111811 +#define CONFIG_SYS_AM1808_PINMUX8 ? ? ?0x11111111 +#define CONFIG_SYS_AM1808_PINMUX9 ? ? ?0x11111111
include/configs/enbw_cmc.h
Quoted 10 lines
include/configs/enbw_cmc.h new file +10
-0+#define CONFIG_SYS_AM1808_PINMUX10 ? ? 0x11111111 +#define CONFIG_SYS_AM1808_PINMUX11 ? ? 0x11111111 +#define CONFIG_SYS_AM1808_PINMUX12 ? ? 0x11111111 +#define CONFIG_SYS_AM1808_PINMUX13 ? ? 0x88888800 +#define CONFIG_SYS_AM1808_PINMUX14 ? ? 0x00000088 +#define CONFIG_SYS_AM1808_PINMUX15 ? ? 0x00000000 +#define CONFIG_SYS_AM1808_PINMUX16 ? ? 0x88888880 +#define CONFIG_SYS_AM1808_PINMUX17 ? ? 0x88888888 +#define CONFIG_SYS_AM1808_PINMUX18 ? ? 0x88022288 +#define CONFIG_SYS_AM1808_PINMUX19 ? ? 0x08022228
For the pinmux configuration there is already code in board/davinci/common/davinci_pinmux.c that is used by the boards in board/davinci/da8xxevm. Would it make sense to move this file to arch/arm/cpu/arm926ejs/davinci so you could use the same code on your board instead of having these defines here?
Regards, Christian