arm: dra7xx: Add support for DRA7XX family Socs
cover arm: dra7xx: Add support for DRA7XX family Socs
DRA7XX is a high-performance, infotainment application device, based on enhanced OMAP architecture integrated on a 28-nm technology. This series adds support for DRA7XX family Socs and the data for DRA752 ES1.0 soc.
This is on top of OMAP5 ES2.0 series
http://www.mail-archive.com/u-boot at lists.denx.de/msg105592.html
This series against OMAP5 ES2.0 series is available here:
git://gitorious.org/u-boot-shared/u-boot.git omap5_es2
Tested on DRA pre silicon platform, OMAP5430 ES2.0, OMAP4430 ES2.1, OMAP4460 panda.
MAKEALL for all armv7 board has been verified.
Lokesh Vutla (7):
arm: dra7xx: Add silicon id support for DRA752 soc
arm: dra7xx: clock: Add the prcm changes
arm: dra7xx: clock: Add the dplls data
arm: dra7xx: Add control module changes for dra7xx socs
arm: dra7xx: Add DDR related data for DRA752 ES1.0
arm: dra7xx: Add board files for dra7xx socs
arm: dra7xx: Add dra7xx_evm build support
arch/arm/cpu/armv7/omap-common/clocks-common.c | 26 +-
arch/arm/cpu/armv7/omap-common/emif-common.c | 2 +-
arch/arm/cpu/armv7/omap-common/hwinit-common.c | 9 +-
arch/arm/cpu/armv7/omap4/hw_data.c | 11 +-
arch/arm/cpu/armv7/omap4/prcm-regs.c | 2 +-
arch/arm/cpu/armv7/omap4/sdram_elpida.c | 18 +-
arch/arm/cpu/armv7/omap5/hw_data.c | 76 ++++-
arch/arm/cpu/armv7/omap5/hwinit.c | 3 +
arch/arm/cpu/armv7/omap5/prcm-regs.c | 290 ++++++++++++++++++-
arch/arm/cpu/armv7/omap5/sdram.c | 26 +-
arch/arm/include/asm/arch-omap5/cpu.h | 4 +
arch/arm/include/asm/arch-omap5/mux_dra7xx.h | 344 +++++++++++++++++++++++
arch/arm/include/asm/arch-omap5/mux_omap5.h | 8 -
arch/arm/include/asm/arch-omap5/omap.h | 10 +-
arch/arm/include/asm/arch-omap5/sys_proto.h | 6 +-
arch/arm/include/asm/emif.h | 1 +
arch/arm/include/asm/omap_common.h | 31 +-
board/ti/dra7xx/Makefile | 49 ++++
board/ti/dra7xx/evm.c | 103 +++++++
board/ti/dra7xx/mux_data.h | 47 ++++
boards.cfg | 1 +
include/configs/dra7xx_evm.h | 40 +++
include/configs/{omap5_evm.h => omap5_common.h} | 20 +-
include/configs/omap5_evm.h | 240 +---------------
24 files changed, 1087 insertions(+), 280 deletions(-)
create mode 100644 arch/arm/include/asm/arch-omap5/mux_dra7xx.h
create mode 100644 board/ti/dra7xx/Makefile
create mode 100644 board/ti/dra7xx/evm.c
create mode 100644 board/ti/dra7xx/mux_data.h
create mode 100644 include/configs/dra7xx_evm.h
copy include/configs/{omap5_evm.h => omap5_common.h} (95%)Signature · 1 line
1.7.9.5
PATCH 1/7 arm: dra7xx: Add silicon id support for DRA752 soc
Adding CPU detection support for the DRA752 ES1.0 soc.
--- arch/arm/cpu/armv7/omap-common/hwinit-common.c | 9 +++++++-- arch/arm/cpu/armv7/omap5/hwinit.c | 3 +++ arch/arm/include/asm/arch-omap5/omap.h | 1 + arch/arm/include/asm/omap_common.h | 3 +++ 4 files changed, 14 insertions(+), 2 deletions(-)
arch/arm/cpu/armv7/omap-common/hwinit-common.c +7 -2
@@ -81,12 +81,17 @@ u32 cortex_rev(void)void omap_rev_string (void ) {u32 omap_rev =omap_revision (); +u32 soc_variant = (omap_rev &0xF0000000 ) >>28 ;u32 omap_variant = (omap_rev &0xFFFF0000 ) >>16 ;u32 major_rev = (omap_rev &0x00000F00 ) >>8 ;u32 minor_rev = (omap_rev &0x000000F0 ) >>4 ; -printf ("OMAP%x ES%x.%x\n" , omap_variant, major_rev, - minor_rev); +if (soc_variant) +printf ("OMAP" ); +else +printf ("DRA" ); +printf ("%x ES%x.%x\n" , omap_variant, major_rev, + minor_rev); }#ifdef CONFIG_SPL_BUILD
arch/arm/cpu/armv7/omap5/hwinit.c +3 -0
@@ -337,6 +337,9 @@ void init_omap_revision(void)case OMAP5432_CONTROL_ID_CODE_ES2_0 : *omap_si_rev =OMAP5432_ES2_0 ;break ; +case DRA752_CONTROL_ID_CODE_ES1_0 : + *omap_si_rev =DRA752_ES1_0 ; +break ;default : *omap_si_rev =OMAP5430_SILICON_ID_INVALID ; }
arch/arm/include/asm/arch-omap5/omap.h +1 -0
@@ -60,6 +60,7 @@#define OMAP5430_CONTROL_ID_CODE_ES2_0 0x1B94202F#define OMAP5432_CONTROL_ID_CODE_ES1_0 0x0B99802F#define OMAP5432_CONTROL_ID_CODE_ES2_0 0x1B99802F +#define DRA752_CONTROL_ID_CODE_ES1_0 0x0B99002F/* STD_FUSE_PROD_ID_1 */ #define STD_FUSE_PROD_ID_1 (CTRL_BASE + 0x218)
arch/arm/include/asm/omap_common.h +3 -0
@@ -554,4 +554,7 @@ static inline u32 omap_revision(void)#define OMAP5432_ES1_0 0x54320100#define OMAP5430_ES2_0 0x54300200#define OMAP5432_ES2_0 0x54320200 + +/* DRA7XX */ +#define DRA752_ES1_0 0x07520100#endif /* _OMAP_COMMON_H_ */
Signature · 1 line
1.7.9.5
PATCH 1/7 arm: dra7xx: Add silicon id support for DRA752 soc
Quoted 4 lines · Lokesh Vutla
Adding CPU detection support for the DRA752 ES1.0 soc.
Signed-off-by Lokesh Vutla <[email protected]>Signed-off-by R Sricharan <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130215/7d49c2ad/attachment.pgp>
PATCH 2/7 arm: dra7xx: clock: Add the prcm changes
In reply to Lokesh VutlaPRCM register addresses are changed from OMAP5 ES2.0 to DRA7XX. So adding the necessary register changes for DRA7XX socs.
--- arch/arm/cpu/armv7/omap4/hw_data.c | 2 +- arch/arm/cpu/armv7/omap4/prcm-regs.c | 2 +- arch/arm/cpu/armv7/omap5/hw_data.c | 6 +- arch/arm/cpu/armv7/omap5/prcm-regs.c | 218 +++++++++++++++++++++++++++++++- arch/arm/include/asm/arch-omap5/cpu.h | 4 + arch/arm/include/asm/arch-omap5/omap.h | 9 +- arch/arm/include/asm/omap_common.h | 15 ++- 7 files changed, 249 insertions(+), 7 deletions(-)
arch/arm/cpu/armv7/omap4/hw_data.c +1 -1
@@ -290,7 +290,7 @@ void enable_basic_clocks(void) };u32 const clk_modules_hw_auto_essential[] = { - (*prcm)->cm_l3_2_gpmc_clkctrl, + (*prcm)->cm_l3_gpmc_clkctrl, (*prcm)->cm_memif_emif_1_clkctrl, (*prcm)->cm_memif_emif_2_clkctrl, (*prcm)->cm_l4cfg_l4_cfg_clkctrl,
arch/arm/cpu/armv7/omap4/prcm-regs.c +1 -1
@@ -153,7 +153,7 @@ struct prcm_regs const omap4_prcm = { .cm_l3_2_clkstctrl = 0x4a008800, .cm_l3_2_dynamicdep = 0x4a008808, .cm_l3_2_l3_2_clkctrl = 0x4a008820, - .cm_l3_2_gpmc_clkctrl = 0x4a008828, + .cm_l3_gpmc_clkctrl = 0x4a008828, .cm_l3_2_ocmc_ram_clkctrl = 0x4a008830, .cm_mpu_m3_clkstctrl = 0x4a008900, .cm_mpu_m3_staticdep = 0x4a008904,
arch/arm/cpu/armv7/omap5/hw_data.c +5 -1
@@ -278,7 +278,7 @@ void enable_basic_clocks(void) };u32 const clk_modules_hw_auto_essential[] = { - (*prcm)->cm_l3_2_gpmc_clkctrl, + (*prcm)->cm_l3_gpmc_clkctrl, (*prcm)->cm_memif_emif_1_clkctrl, (*prcm)->cm_memif_emif_2_clkctrl, (*prcm)->cm_l4cfg_l4_cfg_clkctrl,
@@ -503,6 +503,10 @@ void hw_data_init(void) *omap_vcores = &omap5430_volts_es2;break ; +case DRA752_ES1_0 : + *prcm = &dra7xx_prcm; +break ; +default :printf ("\n INVALID OMAP REVISION " ); }
arch/arm/cpu/armv7/omap5/prcm-regs.c +216 -2
233 lines not on this page · raw message
arch/arm/include/asm/arch-omap5/cpu.h +4 -0
@@ -178,7 +178,11 @@ struct watchdog {/* PRM */ #define PRM_BASE 0x4AE06000 +#ifndef CONFIG_DRA7XX #define PRM_DEVICE_BASE (PRM_BASE + 0x1B00) +#else +#define PRM_DEVICE_BASE (PRM_BASE + 0x1D00) +#endif #define PRM_RSTCTRL PRM_DEVICE_BASE#define PRM_RSTCTRL_RESET 0x01
arch/arm/include/asm/arch-omap5/omap.h +8 -1
@@ -53,7 +53,14 @@#define LPDDR2_IO_REGS_BASE 0x4A100638/* CONTROL_ID_CODE */ -#define CONTROL_ID_CODE (CTRL_BASE + 0x204) +#define CONTROL_CORE_ID_CODE 0x4A002204 +#define CONTROL_WKUP_ID_CODE 0x4AE0C204 + +#ifndef CONFIG_DRA7XX +#define CONTROL_ID_CODE CONTROL_CORE_ID_CODE +#else +#define CONTROL_ID_CODE CONTROL_WKUP_ID_CODE +#endif /* To be verified */ #define OMAP5430_CONTROL_ID_CODE_ES1_0 0x0B94202F
arch/arm/include/asm/omap_common.h +14 -1
@@ -85,6 +85,7 @@ struct prcm_regs {u32 cm_div_h12_dpll_ddrphy;u32 cm_div_h13_dpll_ddrphy;u32 cm_ssc_deltamstep_dpll_ddrphy; +u32 cm_clkmode_dpll_dsp;u32 cm_shadow_freq_config1;u32 cm_mpu_mpu_clkctrl;
@@ -143,6 +144,11 @@ struct prcm_regs {u32 cm_ssc_deltamstep_dpll_usb;u32 cm_ssc_modfreqdiv_dpll_usb;u32 cm_clkdcoldo_dpll_usb; +u32 cm_clkmode_dpll_pcie_ref; +u32 cm_clkmode_apll_pcie; +u32 cm_idlest_apll_pcie; +u32 cm_div_m2_apll_pcie; +u32 cm_clkvcoldo_apll_pcie;u32 cm_clkmode_dpll_unipro;u32 cm_idlest_dpll_unipro;u32 cm_autoidle_dpll_unipro;
@@ -160,7 +166,7 @@ struct prcm_regs {u32 cm_l3_2_clkstctrl;u32 cm_l3_2_dynamicdep;u32 cm_l3_2_l3_2_clkctrl; -u32 cm_l3_2_gpmc_clkctrl; +u32 cm_l3_gpmc_clkctrl;u32 cm_l3_2_ocmc_ram_clkctrl;u32 cm_mpu_m3_clkstctrl;u32 cm_mpu_m3_staticdep;
@@ -205,6 +211,12 @@ struct prcm_regs {u32 cm_cam_clkstctrl;u32 cm_cam_iss_clkctrl;u32 cm_cam_fdif_clkctrl; +u32 cm_cam_vip1_clkctrl; +u32 cm_cam_vip2_clkctrl; +u32 cm_cam_vip3_clkctrl; +u32 cm_cam_lvdsrx_clkctrl; +u32 cm_cam_csi1_clkctrl; +u32 cm_cam_csi2_clkctrl;/* cm2.dss */ u32 cm_dss_clkstctrl;
@@ -485,6 +497,7 @@ extern struct prcm_regs const **prcm;extern struct prcm_regs const omap5_es1_prcm;extern struct prcm_regs const omap5_es2_prcm;extern struct prcm_regs const omap4_prcm; +extern struct prcm_regs const dra7xx_prcm;extern struct dplls const **dplls_data;extern struct vcores_data const **omap_vcores;extern const u32 sys_clk_array[8 ];
Signature · 1 line
1.7.9.5
PATCH 2/7 arm: dra7xx: clock: Add the prcm changes
Quoted 5 lines · Lokesh Vutla
PRCM register addresses are changed from OMAP5 ES2.0 to DRA7XX. So adding the necessary register changes for DRA7XX socs.
Signed-off-by Lokesh Vutla <[email protected]>Signed-off-by R Sricharan <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130215/b7c6d3b4/attachment.pgp>
PATCH v2 2/7 arm: dra7xx: clock: Add the prcm changes
In reply to Lokesh VutlaPRCM register addresses are changed from OMAP5 ES2.0 to DRA7XX. So adding the necessary register changes for DRA7XX socs.
---
[v2] Removed hard coded constants for PRM_DEVICE_BASE
and using the runtime assigned variable instead. Also removed the unnecessary CONTROL_ID_CODE base register change.
arch/arm/cpu/armv7/omap4/hw_data.c | 2 +- arch/arm/cpu/armv7/omap4/prcm-regs.c | 2 +- arch/arm/cpu/armv7/omap5/hw_data.c | 6 +- arch/arm/cpu/armv7/omap5/hwinit.c | 9 +- arch/arm/cpu/armv7/omap5/prcm-regs.c | 224 +++++++++++++++++++++++++++++++++- arch/arm/include/asm/omap_common.h | 17 ++- 6 files changed, 252 insertions(+), 8 deletions(-)
arch/arm/cpu/armv7/omap4/hw_data.c +1 -1
@@ -290,7 +290,7 @@ void enable_basic_clocks(void) };u32 const clk_modules_hw_auto_essential[] = { - (*prcm)->cm_l3_2_gpmc_clkctrl, + (*prcm)->cm_l3_gpmc_clkctrl, (*prcm)->cm_memif_emif_1_clkctrl, (*prcm)->cm_memif_emif_2_clkctrl, (*prcm)->cm_l4cfg_l4_cfg_clkctrl,
arch/arm/cpu/armv7/omap4/prcm-regs.c +1 -1
@@ -153,7 +153,7 @@ struct prcm_regs const omap4_prcm = { .cm_l3_2_clkstctrl = 0x4a008800, .cm_l3_2_dynamicdep = 0x4a008808, .cm_l3_2_l3_2_clkctrl = 0x4a008820, - .cm_l3_2_gpmc_clkctrl = 0x4a008828, + .cm_l3_gpmc_clkctrl = 0x4a008828, .cm_l3_2_ocmc_ram_clkctrl = 0x4a008830, .cm_mpu_m3_clkstctrl = 0x4a008900, .cm_mpu_m3_staticdep = 0x4a008904,
arch/arm/cpu/armv7/omap5/hw_data.c +5 -1
@@ -278,7 +278,7 @@ void enable_basic_clocks(void) };u32 const clk_modules_hw_auto_essential[] = { - (*prcm)->cm_l3_2_gpmc_clkctrl, + (*prcm)->cm_l3_gpmc_clkctrl, (*prcm)->cm_memif_emif_1_clkctrl, (*prcm)->cm_memif_emif_2_clkctrl, (*prcm)->cm_l4cfg_l4_cfg_clkctrl,
@@ -503,6 +503,10 @@ void hw_data_init(void) *omap_vcores = &omap5430_volts_es2;break ; +case DRA752_ES1_0 : + *prcm = &dra7xx_prcm; +break ; +default :printf ("\n INVALID OMAP REVISION " ); }
arch/arm/cpu/armv7/omap5/hwinit.c +7 -2
@@ -354,7 +354,12 @@ void reset_cpu(ulong ignored)* So use cold reset in case instead. */ if (omap_rev ==OMAP5430_ES1_0 ) -writel (PRM_RSTCTRL_RESET <<0x1 ,PRM_RSTCTRL ); +writel (PRM_RSTCTRL_RESET <<0x1 , (*prcm)->prm_rstctrl);else -writel (PRM_RSTCTRL_RESET ,PRM_RSTCTRL ); +writel (PRM_RSTCTRL_RESET , (*prcm)->prm_rstctrl); +} + +u32 warm_reset (void ) +{ +return readl ((*prcm)->prm_rstst) &PRM_RSTST_WARM_RESET_MASK ; }
arch/arm/cpu/armv7/omap5/prcm-regs.c +222 -2
251 lines not on this page · raw message
arch/arm/include/asm/omap_common.h +16 -1
@@ -85,6 +85,7 @@ struct prcm_regs {u32 cm_div_h12_dpll_ddrphy;u32 cm_div_h13_dpll_ddrphy;u32 cm_ssc_deltamstep_dpll_ddrphy; +u32 cm_clkmode_dpll_dsp;u32 cm_shadow_freq_config1;u32 cm_mpu_mpu_clkctrl;
@@ -143,6 +144,11 @@ struct prcm_regs {u32 cm_ssc_deltamstep_dpll_usb;u32 cm_ssc_modfreqdiv_dpll_usb;u32 cm_clkdcoldo_dpll_usb; +u32 cm_clkmode_dpll_pcie_ref; +u32 cm_clkmode_apll_pcie; +u32 cm_idlest_apll_pcie; +u32 cm_div_m2_apll_pcie; +u32 cm_clkvcoldo_apll_pcie;u32 cm_clkmode_dpll_unipro;u32 cm_idlest_dpll_unipro;u32 cm_autoidle_dpll_unipro;
@@ -160,7 +166,7 @@ struct prcm_regs {u32 cm_l3_2_clkstctrl;u32 cm_l3_2_dynamicdep;u32 cm_l3_2_l3_2_clkctrl; -u32 cm_l3_2_gpmc_clkctrl; +u32 cm_l3_gpmc_clkctrl;u32 cm_l3_2_ocmc_ram_clkctrl;u32 cm_mpu_m3_clkstctrl;u32 cm_mpu_m3_staticdep;
@@ -205,6 +211,12 @@ struct prcm_regs {u32 cm_cam_clkstctrl;u32 cm_cam_iss_clkctrl;u32 cm_cam_fdif_clkctrl; +u32 cm_cam_vip1_clkctrl; +u32 cm_cam_vip2_clkctrl; +u32 cm_cam_vip3_clkctrl; +u32 cm_cam_lvdsrx_clkctrl; +u32 cm_cam_csi1_clkctrl; +u32 cm_cam_csi2_clkctrl;/* cm2.dss */ u32 cm_dss_clkstctrl;
@@ -302,6 +314,8 @@ struct prcm_regs {u32 cm_wkup_bandgap_clkctrl;u32 cm_wkupaon_scrm_clkctrl;u32 cm_wkupaon_io_srcomp_clkctrl; +u32 prm_rstctrl; +u32 prm_rstst;u32 prm_vc_val_bypass;u32 prm_vc_cfg_i2c_mode;u32 prm_vc_cfg_i2c_clk;
@@ -485,6 +499,7 @@ extern struct prcm_regs const **prcm;extern struct prcm_regs const omap5_es1_prcm;extern struct prcm_regs const omap5_es2_prcm;extern struct prcm_regs const omap4_prcm; +extern struct prcm_regs const dra7xx_prcm;extern struct dplls const **dplls_data;extern struct vcores_data const **omap_vcores;extern const u32 sys_clk_array[8 ];
Signature · 1 line
1.7.9.5
PATCH 3/7 arm: dra7xx: clock: Add the dplls data
In reply to Lokesh VutlaA new DPLL DDR is added in DRA7XX socs. Now clocks to EMIF CD is from DPLL DDR. So DPLL DDR should be locked before initializing RAM.
Also adding other dpll data which are different from OMAP5 ES2.0. SYS_CLK running at 20MHz is introduced in DRA7xx socs.
--- arch/arm/cpu/armv7/omap-common/clocks-common.c | 26 +++++++++- arch/arm/cpu/armv7/omap4/hw_data.c | 9 ++-- arch/arm/cpu/armv7/omap5/hw_data.c | 64 ++++++++++++++++++++++-- arch/arm/include/asm/omap_common.h | 3 +- 4 files changed, 94 insertions(+), 8 deletions(-)
arch/arm/cpu/armv7/omap-common/clocks-common.c +25 -1
@@ -55,11 +55,12 @@ const u32 sys_clk_array[8] = {26000000 ,/* 26 MHz */ 27000000 ,/* 27 MHz */ 38400000 ,/* 38.4 MHz */ + 20000000, /* 20 MHz */ };static inline u32 __get_sys_clk_index (void ) { -u32 ind; +s8 ind;/* * For ES1 the ROM code calibration of sys clock is not reliable * due to hw issue. So, use hard-coded value. If this value is not
@@ -73,6 +74,13 @@ static inline u32 __get_sys_clk_index(void)/* SYS_CLKSEL - 1 to match the dpll param array indices */ ind = (readl ((*prcm)->cm_sys_clksel) &CM_SYS_CLKSEL_SYS_CLKSEL_MASK ) -1 ; +/* +* SYS_CLKSEL value for 20MHz is 0. This is introduced newly +* in DRA7XX socs. SYS_CLKSEL -1 will be greater than +* NUM_SYS_CLK. So considering the last 3 bits as the index +* for the dpll param array. +*/ + ind &=CM_SYS_CLKSEL_SYS_CLKSEL_MASK ; }return ind; }
@@ -201,12 +209,25 @@ const struct dpll_params *get_abe_dpll_params(struct dplls const *dpll_data)#endif } +static const struct dpll_params *get_ddr_dpll_params + (struct dplls const *dpll_data) +{ +u32 sysclk_ind =get_sys_clk_index (); + +if (!dpll_data->ddr) +return NULL ; +return &dpll_data->ddr[sysclk_ind]; +} +static void do_setup_dpll (u32 const base,const struct dpll_params *params,u8 lock,char *dpll) {u32 temp,M ,N ;struct dpll_regs *const dpll_regs = (struct dpll_regs *)base; +if (!params) +return ; + temp =readl (&dpll_regs->cm_clksel_dpll);if (check_for_lock (base)) {
@@ -397,6 +418,9 @@ static void setup_dplls(void)#ifdef CONFIG_USB_EHCI_OMAP setup_usb_dpll ();#endif + params =get_ddr_dpll_params (*dplls_data); +do_setup_dpll ((*prcm)->cm_clkmode_dpll_ddrphy, + params,DPLL_LOCK ,"ddr" ); }#ifdef CONFIG_SYS_CLOCKS_ENABLE_ALL
arch/arm/cpu/armv7/omap4/hw_data.c +6 -3
@@ -182,7 +182,8 @@ struct dplls omap4430_dplls_es1 = { #else .abe = &abe_dpll_params_32k_196608khz, #endif - .usb = usb_dpll_params_1920mhz + .usb = usb_dpll_params_1920mhz, + .ddr = NULL }; struct dplls omap4430_dplls = {
@@ -195,7 +196,8 @@ struct dplls omap4430_dplls = { #else .abe = &abe_dpll_params_32k_196608khz, #endif - .usb = usb_dpll_params_1920mhz + .usb = usb_dpll_params_1920mhz, + .ddr = NULL }; struct dplls omap4460_dplls = {
@@ -208,7 +210,8 @@ struct dplls omap4460_dplls = { #else .abe = &abe_dpll_params_32k_196608khz, #endif - .usb = usb_dpll_params_1920mhz + .usb = usb_dpll_params_1920mhz, + .ddr = NULL }; struct pmic_data twl6030_4430es1 = {
arch/arm/cpu/armv7/omap5/hw_data.c +61 -3
106 lines not on this page · raw message
arch/arm/include/asm/omap_common.h +2 -1
@@ -27,7 +27,7 @@#include <common.h> -#define NUM_SYS_CLKS 7 +#define NUM_SYS_CLKS 8struct prcm_regs {/* cm1.ckgen */
@@ -471,6 +471,7 @@ struct dplls {const struct dpll_params *abe;const struct dpll_params *iva;const struct dpll_params *usb; +const struct dpll_params *ddr; };struct pmic_data {
Signature · 1 line
1.7.9.5
PATCH 3/7 arm: dra7xx: clock: Add the dplls data
Quoted 8 lines · Lokesh Vutla
A new DPLL DDR is added in DRA7XX socs. Now clocks to EMIF CD is from DPLL DDR. So DPLL DDR should be locked before initializing RAM.
Also adding other dpll data which are different from OMAP5 ES2.0.SYS_CLKrunning at 20MHz is introduced in DRA7xx socs.Signed-off-by Lokesh Vutla <[email protected]>Signed-off-by R Sricharan <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130215/fccab4a3/attachment.pgp>
PATCH 4/7 arm: dra7xx: Add control module changes
In reply to Lokesh VutlaControl module register addresses are changed from OMAP5 to DRA7XX socs.
So adding the necessary changes for the same.
--- arch/arm/cpu/armv7/omap5/hw_data.c | 5 ++- arch/arm/cpu/armv7/omap5/prcm-regs.c | 72 ++++++++++++++++++++++++++++++++++ arch/arm/include/asm/omap_common.h | 10 +++++ 3 files changed, 85 insertions(+), 2 deletions(-)
arch/arm/cpu/armv7/omap5/hw_data.c +3 -2
@@ -550,6 +550,7 @@ void hw_data_init(void) *prcm = &omap5_es1_prcm; *dplls_data = &omap5_dplls_es1; *omap_vcores = &omap5430_volts; + *ctrl = &omap5_ctrl;break ;case OMAP5430_ES2_0 :
@@ -557,19 +558,19 @@ void hw_data_init(void) *prcm = &omap5_es2_prcm; *dplls_data = &omap5_dplls_es2; *omap_vcores = &omap5430_volts_es2; + *ctrl = &omap5_ctrl;break ;case DRA752_ES1_0 : *prcm = &dra7xx_prcm; *dplls_data = &dra7xx_dplls; *omap_vcores = &omap5430_volts_es2; + *ctrl = &dra7xx_ctrl;break ;default :printf ("\n INVALID OMAP REVISION " ); } - - *ctrl = &omap5_ctrl; }void get_ioregs (const struct ctrl_ioregs **regs)
arch/arm/cpu/armv7/omap5/prcm-regs.c +72 -0
78 lines not on this page · raw message
arch/arm/include/asm/omap_common.h +10 -0
@@ -345,11 +345,19 @@ struct prcm_regs {struct omap_sys_ctrl_regs {u32 control_status; +u32 control_core_mmr_lock1; +u32 control_core_mmr_lock2; +u32 control_core_mmr_lock3; +u32 control_core_mmr_lock4; +u32 control_core_mmr_lock5; +u32 control_core_control_io1; +u32 control_core_control_io2;u32 control_id_code;u32 control_std_fuse_opp_bgap;u32 control_ldosram_iva_voltage_ctrl;u32 control_ldosram_mpu_voltage_ctrl;u32 control_ldosram_core_voltage_ctrl; +u32 control_padconf_core_base;u32 control_paconf_global;u32 control_paconf_mode;u32 control_smart1io_padconf_0;
@@ -429,6 +437,7 @@ struct omap_sys_ctrl_regs {u32 control_efuse_11;u32 control_efuse_12;u32 control_efuse_13; +u32 control_padconf_wkup_base; };struct dpll_params {
@@ -505,6 +514,7 @@ extern const u32 sys_clk_array[8];extern struct omap_sys_ctrl_regs const **ctrl;extern struct omap_sys_ctrl_regs const omap4_ctrl;extern struct omap_sys_ctrl_regs const omap5_ctrl; +extern struct omap_sys_ctrl_regs const dra7xx_ctrl;void hw_data_init (void );
Signature · 1 line
1.7.9.5
PATCH 4/7 arm: dra7xx: Add control module changes
Quoted 6 lines · Lokesh Vutla
Control module register addresses are changed from OMAP5 to DRA7XX socs.
So adding the necessary changes for the same.Signed-off-by Lokesh Vutla <[email protected]>Signed-off-by R Sricharan <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130215/b5df3cd7/attachment.pgp>
PATCH 5/7 arm: dra7xx: Add DDR related data for DRA752 ES1.0
In reply to Lokesh VutlaDRA752 uses DDR3. Populating the corresponding structures with DDR3 data.
Writing into MA registers if only MA is present in that soc.
--- arch/arm/cpu/armv7/omap-common/emif-common.c | 2 +- arch/arm/cpu/armv7/omap4/sdram_elpida.c | 18 +++++++++++++++--- arch/arm/cpu/armv7/omap5/hw_data.c | 1 + arch/arm/cpu/armv7/omap5/sdram.c | 26 ++++++++++++++++++++++++-- arch/arm/include/asm/emif.h | 1 + 5 files changed, 42 insertions(+), 6 deletions(-)
arch/arm/cpu/armv7/omap-common/emif-common.c +1 -1
@@ -1191,7 +1191,7 @@ void dmm_init(u32 base)writel (lisa_map_regs->dmm_lisa_map_0, &hw_lisa_map_regs->dmm_lisa_map_0); -if (omap_revision () >=OMAP4460_ES1_0 ) { +if (lisa_map_regs->is_ma_present) { hw_lisa_map_regs = (struct dmm_lisa_map_regs *)MA_BASE ;
arch/arm/cpu/armv7/omap4/sdram_elpida.c +15 -3
@@ -94,14 +94,24 @@ const struct dmm_lisa_map_regs lisa_map_2G_x_1_x_2 = { .dmm_lisa_map_0 = 0xFF020100, .dmm_lisa_map_1 = 0, .dmm_lisa_map_2 = 0, - .dmm_lisa_map_3 = 0x80540300 + .dmm_lisa_map_3 = 0x80540300, + .is_ma_present = 0x0 };const struct dmm_lisa_map_regs lisa_map_2G_x_2_x_2 = { .dmm_lisa_map_0 =0xFF020100 , .dmm_lisa_map_1 =0 , .dmm_lisa_map_2 =0 , - .dmm_lisa_map_3 =0x80640300 + .dmm_lisa_map_3 =0x80640300 , + .is_ma_present =0x0 +}; + +const struct dmm_lisa_map_regs ma_lisa_map_2G_x_2_x_2 = { + .dmm_lisa_map_0 =0xFF020100 , + .dmm_lisa_map_1 =0 , + .dmm_lisa_map_2 =0 , + .dmm_lisa_map_3 =0x80640300 , + .is_ma_present =0x1 };static void emif_get_reg_dump_sdp (u32 emif_nr,const struct emif_regs **regs)
@@ -126,8 +136,10 @@ static void emif_get_dmm_regs_sdp(const struct dmm_lisa_map_regsif (omap_rev ==OMAP4430_ES1_0 ) *dmm_lisa_regs = &lisa_map_2G_x_1_x_2; -else +else if (omap_rev <OMAP4460_ES1_0 ) *dmm_lisa_regs = &lisa_map_2G_x_2_x_2; +else + *dmm_lisa_regs = &ma_lisa_map_2G_x_2_x_2; }void emif_get_dmm_regs (const struct dmm_lisa_map_regs **dmm_lisa_regs)
arch/arm/cpu/armv7/omap5/hw_data.c +1 -0
@@ -586,6 +586,7 @@ void get_ioregs(const struct ctrl_ioregs **regs) *regs = &ioregs_omap5432_es1;break ;case OMAP5432_ES2_0 : +case DRA752_ES1_0 : *regs = &ioregs_omap5432_es2;break ;
arch/arm/cpu/armv7/omap5/sdram.c +24 -2
@@ -155,7 +155,16 @@ const struct dmm_lisa_map_regs lisa_map_4G_x_2_x_2 = { .dmm_lisa_map_0 = 0x0, .dmm_lisa_map_1 = 0x0, .dmm_lisa_map_2 = 0x80740300, - .dmm_lisa_map_3 = 0xFF020100 + .dmm_lisa_map_3 = 0xFF020100, + .is_ma_present = 0x1 +}; + +const struct dmm_lisa_map_regs lisa_map_512M_x_1 = { + .dmm_lisa_map_0 =0x0 , + .dmm_lisa_map_1 =0x0 , + .dmm_lisa_map_2 =0x0 , + .dmm_lisa_map_3 =0x80500100 , + .is_ma_present =0x1 };static void emif_get_reg_dump_sdp (u32 emif_nr,const struct emif_regs **regs)
@@ -171,6 +180,7 @@ static void emif_get_reg_dump_sdp(u32 emif_nr, const struct emif_regs **regs) *regs = &emif_regs_532_mhz_2cs_es2;break ;case OMAP5432_ES2_0 : +case DRA752_ES1_0 :default : *regs = &emif_regs_ddr3_532_mhz_1cs_es2; }
@@ -182,7 +192,18 @@ void emif_get_reg_dump(u32 emif_nr, const struct emif_regs **regs)static void emif_get_dmm_regs_sdp (const struct dmm_lisa_map_regs **dmm_lisa_regs) { - *dmm_lisa_regs = &lisa_map_4G_x_2_x_2; +switch (omap_revision ()) { +case OMAP5430_ES1_0 : +case OMAP5430_ES2_0 : +case OMAP5432_ES1_0 : +case OMAP5432_ES2_0 : + *dmm_lisa_regs = &lisa_map_4G_x_2_x_2; +break ; +case DRA752_ES1_0 : +default : + *dmm_lisa_regs = &lisa_map_512M_x_1; + } + }void emif_get_dmm_regs (const struct dmm_lisa_map_regs **dmm_lisa_regs)
@@ -297,6 +318,7 @@ static void emif_get_ext_phy_ctrl_const_regs(const u32 **regs) *regs = ddr3_ext_phy_ctrl_const_base_es1;break ;case OMAP5432_ES2_0 : +case DRA752_ES1_0 :default : *regs = ddr3_ext_phy_ctrl_const_base_es2;
arch/arm/include/asm/emif.h +1 -0
@@ -697,6 +697,7 @@ struct dmm_lisa_map_regs {u32 dmm_lisa_map_1;u32 dmm_lisa_map_2;u32 dmm_lisa_map_3; +u8 is_ma_present; };#define CS0 0
Signature · 1 line
1.7.9.5
PATCH 5/7 arm: dra7xx: Add DDR related data for DRA752 ES1.0
Quoted 6 lines · Lokesh Vutla
DRA752 uses DDR3. Populating the corresponding structures with DDR3 data.
Writing into MA registers if only MA is present in that soc.Signed-off-by Lokesh Vutla <[email protected]>Signed-off-by R Sricharan <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130215/01d249f4/attachment.pgp>
PATCH 6/7 arm: dra7xx: Add board files for DRA7XX socs
In reply to Lokesh VutlaAdding new board files for DRA7XX socs.
The pad registers layout is changed completely from OMAP5 So introducing the new structure here and also adding the minimal data.
--- arch/arm/include/asm/arch-omap5/mux_dra7xx.h | 344 ++++++++++++++++++++++++++ arch/arm/include/asm/arch-omap5/mux_omap5.h | 8 - arch/arm/include/asm/arch-omap5/sys_proto.h | 6 +- board/ti/dra7xx/Makefile | 49 ++++ board/ti/dra7xx/evm.c | 103 ++++++++ board/ti/dra7xx/mux_data.h | 47 ++++ 6 files changed, 548 insertions(+), 9 deletions(-) create mode 100644 arch/arm/include/asm/arch-omap5/mux_dra7xx.h create mode 100644 board/ti/dra7xx/Makefile create mode 100644 board/ti/dra7xx/evm.c create mode 100644 board/ti/dra7xx/mux_data.h
arch/arm/include/asm/arch-omap5/mux_dra7xx.h new file +344 -0
@@ -0,0 +1,344 @@ +/* +* (C) Copyright 2013 +* Texas Instruments Incorporated +* +* Nishant Kamat <[email protected]> +* Lokesh Vutla <[email protected]> +* +* See file CREDITS for list of people who contributed to this +* project. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ +#ifndef _MUX_DRA7XX_H_ +#define _MUX_DRA7XX_H_ + +#include <asm/types.h> + +#define IEN (1 << 18) +#define IDIS (0 << 18) + +#define PTU (3 << 16) +#define PTD (1 << 16) +#define PEN (1 << 16) +#define PDIS (0 << 16) + +#define WKEN (1 << 24) +#define WKDIS (0 << 24) + +#define M0 0 +#define M1 1 +#define M2 2 +#define M3 3 +#define M4 4 +#define M5 5 +#define M6 6 +#define M7 7 +#define M8 8 +#define M9 9 +#define M10 10 +#define M11 11 +#define M12 12 +#define M13 13 +#define M14 14 +#define M15 15 + +#define SAFE_MODE M15 + +#define GPMC_AD0 0x000 +#define GPMC_AD1 0x004 +#define GPMC_AD2 0x008 +#define GPMC_AD3 0x00C +#define GPMC_AD4 0x010 +#define GPMC_AD5 0x014 +#define GPMC_AD6 0x018 +#define GPMC_AD7 0x01C +#define GPMC_AD8 0x020 +#define GPMC_AD9 0x024 +#define GPMC_AD10 0x028 +#define GPMC_AD11 0x02C +#define GPMC_AD12 0x030 +#define GPMC_AD13 0x034 +#define GPMC_AD14 0x038 +#define GPMC_AD15 0x03C +#define GPMC_A0 0x040 +#define GPMC_A1 0x044 +#define GPMC_A2 0x048 +#define GPMC_A3 0x04C +#define GPMC_A4 0x050 +#define GPMC_A5 0x054 +#define GPMC_A6 0x058 +#define GPMC_A7 0x05C +#define GPMC_A8 0x060 +#define GPMC_A9 0x064 +#define GPMC_A10 0x068 +#define GPMC_A11 0x06C +#define GPMC_A12 0x070 +#define GPMC_A13 0x074 +#define GPMC_A14 0x078 +#define GPMC_A15 0x07C +#define GPMC_A16 0x080 +#define GPMC_A17 0x084 +#define GPMC_A18 0x088 +#define GPMC_A19 0x08C +#define GPMC_A20 0x090 +#define GPMC_A21 0x094 +#define GPMC_A22 0x098 +#define GPMC_A23 0x09C +#define GPMC_A24 0x0A0 +#define GPMC_A25 0x0A4 +#define GPMC_A26 0x0A8 +#define GPMC_A27 0x0AC +#define GPMC_CS1 0x0B0 +#define GPMC_CS0 0x0B4 +#define GPMC_CS2 0x0B8 +#define GPMC_CS3 0x0BC +#define GPMC_CLK 0x0C0 +#define GPMC_ADVN_ALE 0x0C4 +#define GPMC_OEN_REN 0x0C8 +#define GPMC_WEN 0x0CC +#define GPMC_BEN0 0x0D0 +#define GPMC_BEN1 0x0D4 +#define GPMC_WAIT0 0x0D8 +#define VIN1A_CLK0 0x0DC +#define VIN1B_CLK1 0x0E0 +#define VIN1A_DE0 0x0E4 +#define VIN1A_FLD0 0x0E8 +#define VIN1A_HSYNC0 0x0EC +#define VIN1A_VSYNC0 0x0F0 +#define VIN1A_D0 0x0F4 +#define VIN1A_D1 0x0F8 +#define VIN1A_D2 0x0FC +#define VIN1A_D3 0x100 +#define VIN1A_D4 0x104 +#define VIN1A_D5 0x108 +#define VIN1A_D6 0x10C +#define VIN1A_D7 0x110 +#define VIN1A_D8 0x114 +#define VIN1A_D9 0x118 +#define VIN1A_D10 0x11C +#define VIN1A_D11 0x120 +#define VIN1A_D12 0x124 +#define VIN1A_D13 0x128 +#define VIN1A_D14 0x12C +#define VIN1A_D15 0x130 +#define VIN1A_D16 0x134 +#define VIN1A_D17 0x138 +#define VIN1A_D18 0x13C +#define VIN1A_D19 0x140 +#define VIN1A_D20 0x144 +#define VIN1A_D21 0x148 +#define VIN1A_D22 0x14C +#define VIN1A_D23 0x150 +#define VIN2A_CLK0 0x154 +#define VIN2A_DE0 0x158 +#define VIN2A_FLD0 0x15C +#define VIN2A_HSYNC0 0x160 +#define VIN2A_VSYNC0 0x164 +#define VIN2A_D0 0x168 +#define VIN2A_D1 0x16C +#define VIN2A_D2 0x170 +#define VIN2A_D3 0x174 +#define VIN2A_D4 0x178 +#define VIN2A_D5 0x17C +#define VIN2A_D6 0x180 +#define VIN2A_D7 0x184 +#define VIN2A_D8 0x188 +#define VIN2A_D9 0x18C +#define VIN2A_D10 0x190 +#define VIN2A_D11 0x194 +#define VIN2A_D12 0x198 +#define VIN2A_D13 0x19C +#define VIN2A_D14 0x1A0 +#define VIN2A_D15 0x1A4 +#define VIN2A_D16 0x1A8 +#define VIN2A_D17 0x1AC +#define VIN2A_D18 0x1B0 +#define VIN2A_D19 0x1B4 +#define VIN2A_D20 0x1B8 +#define VIN2A_D21 0x1BC +#define VIN2A_D22 0x1C0 +#define VIN2A_D23 0x1C4 +#define VOUT1_CLK 0x1C8 +#define VOUT1_DE 0x1CC +#define VOUT1_FLD 0x1D0 +#define VOUT1_HSYNC 0x1D4 +#define VOUT1_VSYNC 0x1D8 +#define VOUT1_D0 0x1DC +#define VOUT1_D1 0x1E0 +#define VOUT1_D2 0x1E4 +#define VOUT1_D3 0x1E8 +#define VOUT1_D4 0x1EC +#define VOUT1_D5 0x1F0 +#define VOUT1_D6 0x1F4 +#define VOUT1_D7 0x1F8 +#define VOUT1_D8 0x1FC +#define VOUT1_D9 0x200 +#define VOUT1_D10 0x204 +#define VOUT1_D11 0x208 +#define VOUT1_D12 0x20C +#define VOUT1_D13 0x210 +#define VOUT1_D14 0x214 +#define VOUT1_D15 0x218 +#define VOUT1_D16 0x21C +#define VOUT1_D17 0x220 +#define VOUT1_D18 0x224 +#define VOUT1_D19 0x228 +#define VOUT1_D20 0x22C +#define VOUT1_D21 0x230 +#define VOUT1_D22 0x234 +#define VOUT1_D23 0x238 +#define MDIO_MCLK 0x23C +#define MDIO_D 0x240 +#define RMII_MHZ_50_CLK 0x244 +#define UART3_RXD 0x248 +#define UART3_TXD 0x24C +#define RGMII0_TXC 0x250 +#define RGMII0_TXCTL 0x254 +#define RGMII0_TXD3 0x258 +#define RGMII0_TXD2 0x25C +#define RGMII0_TXD1 0x260 +#define RGMII0_TXD0 0x264 +#define RGMII0_RXC 0x268 +#define RGMII0_RXCTL 0x26C +#define RGMII0_RXD3 0x270 +#define RGMII0_RXD2 0x274 +#define RGMII0_RXD1 0x278 +#define RGMII0_RXD0 0x27C +#define USB1_DRVVBUS 0x280 +#define USB2_DRVVBUS 0x284 +#define GPIO6_14 0x288 +#define GPIO6_15 0x28C +#define GPIO6_16 0x290 +#define XREF_CLK0 0x294 +#define XREF_CLK1 0x298 +#define XREF_CLK2 0x29C +#define XREF_CLK3 0x2A0 +#define MCASP1_ACLKX 0x2A4 +#define MCASP1_FSX 0x2A8 +#define MCASP1_ACLKR 0x2AC +#define MCASP1_FSR 0x2B0 +#define MCASP1_AXR0 0x2B4 +#define MCASP1_AXR1 0x2B8 +#define MCASP1_AXR2 0x2BC +#define MCASP1_AXR3 0x2C0 +#define MCASP1_AXR4 0x2C4 +#define MCASP1_AXR5 0x2C8 +#define MCASP1_AXR6 0x2CC +#define MCASP1_AXR7 0x2D0 +#define MCASP1_AXR8 0x2D4 +#define MCASP1_AXR9 0x2D8 +#define MCASP1_AXR10 0x2DC +#define MCASP1_AXR11 0x2E0 +#define MCASP1_AXR12 0x2E4 +#define MCASP1_AXR13 0x2E8 +#define MCASP1_AXR14 0x2EC +#define MCASP1_AXR15 0x2F0 +#define MCASP2_ACLKX 0x2F4 +#define MCASP2_FSX 0x2F8 +#define MCASP2_ACLKR 0x2FC +#define MCASP2_FSR 0x300 +#define MCASP2_AXR0 0x304 +#define MCASP2_AXR1 0x308 +#define MCASP2_AXR2 0x30C +#define MCASP2_AXR3 0x310 +#define MCASP2_AXR4 0x314 +#define MCASP2_AXR5 0x318 +#define MCASP2_AXR6 0x31C +#define MCASP2_AXR7 0x320 +#define MCASP3_ACLKX 0x324 +#define MCASP3_FSX 0x328 +#define MCASP3_AXR0 0x32C +#define MCASP3_AXR1 0x330 +#define MCASP4_ACLKX 0x334 +#define MCASP4_FSX 0x338 +#define MCASP4_AXR0 0x33C +#define MCASP4_AXR1 0x340 +#define MCASP5_ACLKX 0x344 +#define MCASP5_FSX 0x348 +#define MCASP5_AXR0 0x34C +#define MCASP5_AXR1 0x350 +#define MMC1_CLK 0x354 +#define MMC1_CMD 0x358 +#define MMC1_DAT0 0x35C +#define MMC1_DAT1 0x360 +#define MMC1_DAT2 0x364 +#define MMC1_DAT3 0x368 +#define MMC1_SDCD 0x36C +#define MMC1_SDWP 0x370 +#define GPIO6_10 0x374 +#define GPIO6_11 0x378 +#define MMC3_CLK 0x37C +#define MMC3_CMD 0x380 +#define MMC3_DAT0 0x384 +#define MMC3_DAT1 0x388 +#define MMC3_DAT2 0x38C +#define MMC3_DAT3 0x390 +#define MMC3_DAT4 0x394 +#define MMC3_DAT5 0x398 +#define MMC3_DAT6 0x39C +#define MMC3_DAT7 0x3A0 +#define SPI1_SCLK 0x3A4 +#define SPI1_D1 0x3A8 +#define SPI1_D0 0x3AC +#define SPI1_CS0 0x3B0 +#define SPI1_CS1 0x3B4 +#define SPI1_CS2 0x3B8 +#define SPI1_CS3 0x3BC +#define SPI2_SCLK 0x3C0 +#define SPI2_D1 0x3C4 +#define SPI2_D0 0x3C8 +#define SPI2_CS0 0x3CC +#define DCAN1_TX 0x3D0 +#define DCAN1_RX 0x3D4 +#define DCAN2_TX 0x3D8 +#define DCAN2_RX 0x3DC +#define UART1_RXD 0x3E0 +#define UART1_TXD 0x3E4 +#define UART1_CTSN 0x3E8 +#define UART1_RTSN 0x3EC +#define UART2_RXD 0x3F0 +#define UART2_TXD 0x3F4 +#define UART2_CTSN 0x3F8 +#define UART2_RTSN 0x3FC +#define I2C1_SDA 0x400 +#define I2C1_SCL 0x404 +#define I2C2_SDA 0x408 +#define I2C2_SCL 0x40C +#define I2C3_SDA 0x410 +#define I2C3_SCL 0x414 +#define WAKEUP0 0x418 +#define WAKEUP1 0x41C +#define WAKEUP2 0x420 +#define WAKEUP3 0x424 +#define ON_OFF 0x428 +#define RTC_PORZ 0x42C +#define TMS 0x430 +#define TDI 0x434 +#define TDO 0x438 +#define TCLK 0x43C +#define TRSTN 0x440 +#define RTCK 0x444 +#define EMU0 0x448 +#define EMU1 0x44C +#define EMU2 0x450 +#define EMU3 0x454 +#define EMU4 0x458 +#define RESETN 0x45C +#define NMIN 0x460 +#define RSTOUTN 0x464 + +#endif /* _MUX_DRA7XX_H_ */
arch/arm/include/asm/arch-omap5/mux_omap5.h +0 -8
@@ -28,14 +28,6 @@#include <asm/types.h> -struct pad_conf_entry { - -u16 offset; - -u16 val; - -}; -#ifdef CONFIG_OFF_PADCONF #define OFF_PD (1 << 12)#define OFF_PU (3 << 12)
arch/arm/include/asm/arch-omap5/sys_proto.h +5 -1
@@ -25,9 +25,13 @@#include <asm/io.h> #include <asm/arch/clocks.h> #include <asm/omap_common.h> -#include <asm/arch/mux_omap5.h> #include <asm/arch/clocks.h> +struct pad_conf_entry { +u32 offset; +u32 val; +}; +struct omap_sysinfo {char *board_string; };
board/ti/dra7xx/Makefile new file +49 -0
49 lines not on this page · raw message
board/ti/dra7xx/evm.c new file +103 -0
103 lines not on this page · raw message
board/ti/dra7xx/mux_data.h new file +47 -0
47 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 6/7 arm: dra7xx: Add board files for DRA7XX socs
Quoted 8 lines · Lokesh Vutla
Adding new board files for DRA7XX socs.
The pad registers layout is changed completely from OMAP5 So introducing the new structure here and also adding the minimal data.Signed-off-by Lokesh Vutla <[email protected]>Signed-off-by Nishant Kamat <[email protected]>Signed-off-by R Sricharan <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130215/1c62eeef/attachment.pgp>
PATCH 6/7 arm: dra7xx: Add board files for DRA7XX socs
In reply to Lokesh VutlaQuoted 9 lines · Lokesh Vutla
Adding new board files for DRA7XX socs.
The pad registers layout is changed completely from OMAP5 So introducing the new structure here and also adding the minimal data.Signed-off-by Lokesh Vutla <[email protected]>Signed-off-by Nishant Kamat <[email protected]>Signed-off-by R Sricharan <[email protected]>Reviewed-by Tom Rini <[email protected]>
With the following change to adapt to the omap_mmc_init changes I've also taken into u-boot-ti/master:
board/ti/dra7xx/evm.c +2 -2
@@ -96,8 +96,8 @@ void set_muxconf_regs_essential(void)#if !defined(CONFIG_SPL_BUILD ) && defined(CONFIG_GENERIC_MMC )int board_mmc_init (bd_t *bis) { -omap_mmc_init (0 ,0 ,0 ); -omap_mmc_init (1 ,0 ,0 ); +omap_mmc_init (0 ,0 ,0 ,-1 ,-1 ); +omap_mmc_init (1 ,0 ,0 ,-1 ,-1 );return 0 ; }#endif
This is now applied to u-boot-ti/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130311/c964fc73/attachment.pgp>
PATCH 6/7 arm: dra7xx: Add board files for DRA7XX socs
Quoted 31 lines · Tom Rini
Quoted 9 lines · Lokesh Vutla
Adding new board files for DRA7XX socs.
The pad registers layout is changed completely from OMAP5 So introducing the new structure here and also adding the minimal data.Signed-off-by Lokesh Vutla <[email protected]>Signed-off-by Nishant Kamat <[email protected]>Signed-off-by R Sricharan <[email protected]>Reviewed-by Tom Rini <[email protected]>With the following change to adapt to the
omap_mmc_initchanges I've also taken into u-boot-ti/master:board/ti/dra7xx/evm.c +2
-2@@ -96,8 +96,8 @@ void set_muxconf_regs_essential(void)#if !defined(CONFIG_SPL_BUILD ) && defined(CONFIG_GENERIC_MMC )int board_mmc_init (bd_t *bis) { -omap_mmc_init (0 ,0 ,0 ); -omap_mmc_init (1 ,0 ,0 ); +omap_mmc_init (0 ,0 ,0 ,-1 ,-1 ); +omap_mmc_init (1 ,0 ,0 ,-1 ,-1 );return 0 ; }#endif
Quoted 1 line
This is now applied to u-boot-ti/master, thanks!
Ok..Thanks..
Regards,
Lokesh
Quoted 1 line
PATCH 6/7 arm: dra7xx: Add board files for DRA7XX socs
In reply to Tom RiniQuoted 30 lines · Tom Rini
Quoted 9 lines · Lokesh Vutla
Adding new board files for DRA7XX socs.
The pad registers layout is changed completely from OMAP5 So introducing the new structure here and also adding the minimal data.Signed-off-by Lokesh Vutla <[email protected]>Signed-off-by Nishant Kamat <[email protected]>Signed-off-by R Sricharan <[email protected]>Reviewed-by Tom Rini <[email protected]>With the following change to adapt to the
omap_mmc_initchanges I've also taken into u-boot-ti/master:board/ti/dra7xx/evm.c +2
-2@@ -96,8 +96,8 @@ void set_muxconf_regs_essential(void)#if !defined(CONFIG_SPL_BUILD ) && defined(CONFIG_GENERIC_MMC )int board_mmc_init (bd_t *bis) { -omap_mmc_init (0 ,0 ,0 ); -omap_mmc_init (1 ,0 ,0 ); +omap_mmc_init (0 ,0 ,0 ,-1 ,-1 ); +omap_mmc_init (1 ,0 ,0 ,-1 ,-1 );return 0 ; }#endif
Quoted 8 lines
This is now applied to u-boot-ti/master, thanks!
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Thanks Tom..
Regards,
Sricharan
PATCH 7/7 arm: dra7xx: Add dra7xx_evm build support
In reply to Lokesh VutlaAdding the build support for dra7xx_evm.
Reusing omap5_evm.h config by moving it to omap5_common.h
---
boards.cfg | 1 +
include/configs/dra7xx_evm.h | 40 ++++
include/configs/{omap5_evm.h => omap5_common.h} | 20 +-
include/configs/omap5_evm.h | 240 +----------------------
4 files changed, 55 insertions(+), 246 deletions(-)
create mode 100644 include/configs/dra7xx_evm.h
copy include/configs/{omap5_evm.h => omap5_common.h} (95%)boards.cfg +1 -0
@@ -279,6 +279,7 @@ nokia_rx51 arm armv7 rx51 nokia omap4_panda arm armv7 panda ti omap4 omap4_sdp4430 arm armv7 sdp4430 ti omap4 omap5_evm arm armv7 omap5_evm ti omap5 +dra7xx_evm arm armv7 dra7xx ti omap5 s5p_goni arm armv7 goni samsung s5pc1xx smdkc100 arm armv7 smdkc100 samsung s5pc1xx origen arm armv7 origen samsung exynos
include/configs/dra7xx_evm.h new file +39 -0
@@ -0,0 +1,39 @@ +/* +* (C) Copyright 2013 +* Texas Instruments Incorporated. +* Lokesh Vutla <[email protected]> +* +* Configuration settings for the TI DRA7XX board. +* See omap5_common.h for omap5 common settings. +* +* See file CREDITS for list of people who contributed to this +* project. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#ifndef __CONFIG_DRA7XX_EVM_H +#define __CONFIG_DRA7XX_EVM_H + +#include <configs/omap5_common.h> + +#define CONFIG_OMAP +#define CONFIG_DRA7XX /* in a TI DRA7XX core */ +#define CONFIG_DRA752_EVM + +#define CONFIG_SYS_PROMPT "DRA752 EVM # " + +#endif /* __CONFIG_DRA7XX_EVM_H */
include/configs/omap5_common.h renamed from include/configs/omap5_evm.h +6 -13
@@ -1,12 +1,12 @@/* -* (C) Copyright 2010 +* (C) Copyright 2013 * Texas Instruments Incorporated. * Sricharan R <[email protected]> * * Derived from OMAP4 done by: * Aneesh V <[email protected]> * -* Configuration settings for the TI EVM5430 board. +* TI OMAP5 AND DRA7XX common configuration settings * * See file CREDITS for list of people who contributed to this * project.
@@ -27,17 +27,15 @@* MA 02111-1307 USA */ -#ifndef __CONFIG_H -#define __CONFIG_H +#ifndef __CONFIG_OMAP5_COMMON_H +#define __CONFIG_OMAP5_COMMON_H/* * High Level Configuration Options */ -#define CONFIG_ARMV7 /* This is an ARM V7 CPU core */ #define CONFIG_OMAP /* in a TI OMAP core */ #define CONFIG_OMAP54XX /* which is a 54XX */ -#define CONFIG_OMAP5430 /* which is in a 5430 */ -#define CONFIG_5430EVM /* working with EVM */ +#define CONFIG_ARMV7 /* This is an ARM V7 CPU core */ #define CONFIG_OMAP_GPIO /* Get CPU defs */
@@ -96,10 +94,6 @@#define CONFIG_DRIVER_OMAP34XX_I2C #define CONFIG_I2C_MULTI_BUS -/* TWL6035 */ -#ifndef CONFIG_SPL_BUILD -#define CONFIG_TWL6035_POWER -#endif /* MMC */ #define CONFIG_GENERIC_MMC
@@ -185,7 +179,6 @@#define CONFIG_SYS_LONGHELP /* undef to save memory */ #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ -#define CONFIG_SYS_PROMPT "OMAP5430 EVM # "#define CONFIG_SYS_CBSIZE 256/* Print Buffer Size */ #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
@@ -266,4 +259,4 @@#define CONFIG_SYS_SPL_MALLOC_SIZE 0x100000/* 1 MB */ #define CONFIG_SPL_GPIO_SUPPORT -#endif /* __CONFIG_H */ +#endif /* __CONFIG_OMAP5_COMMON_H */
include/configs/omap5_evm.h +7 -233
262 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 7/7 arm: dra7xx: Add dra7xx_evm build support
Quoted 5 lines · Lokesh Vutla
Adding the build support for
dra7xx_evm.
Reusingomap5_evm.hconfig by moving it toomap5_common.hSigned-off-by Lokesh Vutla <[email protected]>Signed-off-by R Sricharan <[email protected]>
[snip]
Quoted 1 line
+#define
CONFIG_DRA752_EVM
[snip]
Quoted 2 lines
#define
CONFIG_OMAP5430/* which is in a 5430 */
#defineCONFIG_5430EVM/* working with EVM */
Are these three ever used? I don't see the two current OMAP5 ones anywhere and I suspect the new DRA one isn't either.
I know we'll need separate config files at some point down the line, so I'm fine with creating a small dra7xx_evm config file.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130215/83b8dde9/attachment.pgp>
PATCH 7/7 arm: dra7xx: Add dra7xx_evm build support
Quoted 7 lines · Tom Rini
Quoted 5 lines · Lokesh Vutla
Adding the build support for
dra7xx_evm.
Reusingomap5_evm.hconfig by moving it toomap5_common.hSigned-off-by Lokesh Vutla <[email protected]>Signed-off-by R Sricharan <[email protected]>
Quoted 8 lines
[snip]
Quoted 1 line
+#define
CONFIG_DRA752_EVM[snip]
Quoted 2 lines
#define CONFIG_OMAP5430 /* which is in a 5430 */ #define CONFIG_5430EVM /* working with EVM */Are these three ever used? I don't see the two current OMAP5 ones anywhere and I suspect the new DRA one isn't either.
Yes, you are right.
ll remove these unused CONFIGs and send a V2.
Regards,
Lokesh
Quoted 4 lines
I know we'll need separate config files at some point down the line, so I'm fine with creating a small
dra7xx_evmconfig file.
PATCH v2 7/7 arm: dra7xx: Add dra7xx_evm build support
In reply to Lokesh VutlaAdding the build support for dra7xx_evm.
Reusing omap5_evm.h config by moving it to omap5_common.h
---
[v2] Addressed Tom Rini's <[email protected]> comments
boards.cfg | 1 +
include/configs/dra7xx_evm.h | 36 ++++
include/configs/{omap5_evm.h => omap5_common.h} | 18 +-
include/configs/omap5_evm.h | 241 +----------------------
4 files changed, 48 insertions(+), 248 deletions(-)
create mode 100644 include/configs/dra7xx_evm.h
copy include/configs/{omap5_evm.h => omap5_common.h} (94%)boards.cfg +1 -0
@@ -279,6 +279,7 @@ nokia_rx51 arm armv7 rx51 nokia omap4_panda arm armv7 panda ti omap4 omap4_sdp4430 arm armv7 sdp4430 ti omap4 omap5_evm arm armv7 omap5_evm ti omap5 +dra7xx_evm arm armv7 dra7xx ti omap5 s5p_goni arm armv7 goni samsung s5pc1xx smdkc100 arm armv7 smdkc100 samsung s5pc1xx origen arm armv7 origen samsung exynos
include/configs/dra7xx_evm.h new file +36 -0
@@ -0,0 +1,36 @@ +/* +* (C) Copyright 2013 +* Texas Instruments Incorporated. +* Lokesh Vutla <[email protected]> +* +* Configuration settings for the TI DRA7XX board. +* See omap5_common.h for omap5 common settings. +* +* See file CREDITS for list of people who contributed to this +* project. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#ifndef __CONFIG_DRA7XX_EVM_H +#define __CONFIG_DRA7XX_EVM_H + +#include <configs/omap5_common.h> + +#define CONFIG_DRA7XX /* in a TI DRA7XX core */ +#define CONFIG_SYS_PROMPT "DRA752 EVM # " + +#endif /* __CONFIG_DRA7XX_EVM_H */
include/configs/omap5_common.h renamed from include/configs/omap5_evm.h +5 -13
@@ -1,12 +1,12 @@/* -* (C) Copyright 2010 +* (C) Copyright 2013 * Texas Instruments Incorporated. * Sricharan R <[email protected]> * * Derived from OMAP4 done by: * Aneesh V <[email protected]> * -* Configuration settings for the TI EVM5430 board. +* TI OMAP5 AND DRA7XX common configuration settings * * See file CREDITS for list of people who contributed to this * project.
@@ -27,17 +27,14 @@* MA 02111-1307 USA */ -#ifndef __CONFIG_H -#define __CONFIG_H +#ifndef __CONFIG_OMAP5_COMMON_H +#define __CONFIG_OMAP5_COMMON_H/* * High Level Configuration Options */ -#define CONFIG_ARMV7 /* This is an ARM V7 CPU core */ #define CONFIG_OMAP /* in a TI OMAP core */ #define CONFIG_OMAP54XX /* which is a 54XX */ -#define CONFIG_OMAP5430 /* which is in a 5430 */ -#define CONFIG_5430EVM /* working with EVM */ #define CONFIG_OMAP_GPIO /* Get CPU defs */
@@ -96,10 +93,6 @@#define CONFIG_DRIVER_OMAP34XX_I2C #define CONFIG_I2C_MULTI_BUS -/* TWL6035 */ -#ifndef CONFIG_SPL_BUILD -#define CONFIG_TWL6035_POWER -#endif /* MMC */ #define CONFIG_GENERIC_MMC
@@ -185,7 +178,6 @@#define CONFIG_SYS_LONGHELP /* undef to save memory */ #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ -#define CONFIG_SYS_PROMPT "OMAP5430 EVM # "#define CONFIG_SYS_CBSIZE 256/* Print Buffer Size */ #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
@@ -266,4 +258,4 @@#define CONFIG_SYS_SPL_MALLOC_SIZE 0x100000/* 1 MB */ #define CONFIG_SPL_GPIO_SUPPORT -#endif /* __CONFIG_H */ +#endif /* __CONFIG_OMAP5_COMMON_H */
include/configs/omap5_evm.h +6 -235
261 lines not on this page · raw message
Signature · 1 line
1.7.9.5