prepare for mx6dl/ mx6solo
Subsystems (5)
cover prepare for mx6dl/ mx6solo
Each patch in this series should be able to be applied independently of the others.
These patch have been seen before but I marked this as version 1, because they were in the middle of another series previously.
Troy Kisky (5):
mx6: soc: update get_cpu_rev and get_imx_type for mx6solo/sololite
mx6: use CONFIG_MX6 instead of CONFIG_MX6Q
imx-common: cpu: add imx_ddr_size
arch-mx6: add mx6dl_pins.h
imximage.cfg: run files through C preprocessor
.gitignore | 1 + Makefile | 11 +- arch/arm/cpu/armv7/mx6/soc.c | 32 ++- arch/arm/imx-common/cpu.c | 66 +++++- arch/arm/include/asm/arch-mx5/sys_proto.h | 10 +- arch/arm/include/asm/arch-mx6/imx-regs.h | 2 + arch/arm/include/asm/arch-mx6/mx6dl_pins.h | 149 +++++++++++++ arch/arm/include/asm/arch-mx6/sys_proto.h | 10 +- board/esg/ima3-mx53/imximage.cfg | 120 ++++++----- board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg | 90 ++++---- board/freescale/mx25pdk/imximage.cfg | 77 +++---- board/freescale/mx51evk/imximage.cfg | 114 +++++----- board/freescale/mx53ard/imximage_dd3.cfg | 83 ++++---- board/freescale/mx53evk/imximage.cfg | 86 ++++---- board/freescale/mx53loco/imximage.cfg | 83 ++++---- board/freescale/mx53smd/imximage.cfg | 83 ++++---- board/freescale/mx6qarm2/imximage.cfg | 88 ++++---- board/freescale/mx6qsabreauto/imximage.cfg | 82 +++---- board/genesi/mx51_efikamx/imximage_mx.cfg | 132 ++++++------ board/genesi/mx51_efikamx/imximage_sb.cfg | 126 +++++------ board/ttcontrol/vision2/imximage_hynix.cfg | 295 ++++++++++++++------------ drivers/gpio/mxc_gpio.c | 6 +- drivers/video/ipu_regs.h | 2 +- include/configs/mx6qarm2.h | 1 + include/configs/mx6qsabre_common.h | 1 + include/configs/mx6qsabrelite.h | 1 + 26 files changed, 1036 insertions(+), 715 deletions(-) create mode 100644 arch/arm/include/asm/arch-mx6/mx6dl_pins.h
Signature · 1 line
1.7.9.5
PATCH 1/5 mx6: soc: update get_cpu_rev and get_imx_type for mx6solo/sololite
Previously, the same value was returned for both mx6dl and mx6solo. Check number of processors to differeniate.
Also, a freescale patch says that sololite has its cpu/rev stored at 0x280 instead of 0x260.
I don't have a sololite to verify.
---
--- arch/arm/cpu/armv7/mx6/soc.c | 32 +++++++++++++++++++++-------- arch/arm/imx-common/cpu.c | 16 ++++++++------- arch/arm/include/asm/arch-mx5/sys_proto.h | 9 +++++++- arch/arm/include/asm/arch-mx6/imx-regs.h | 2 ++ arch/arm/include/asm/arch-mx6/sys_proto.h | 9 +++++++- 5 files changed, 51 insertions(+), 17 deletions(-)
arch/arm/cpu/armv7/mx6/soc.c +24 -8
@@ -31,17 +31,33 @@#include <asm/arch/sys_proto.h> #include <asm/imx-common/boot_mode.h> +struct scu_regs { +u32 ctrl; +u32 config; +u32 status; +u32 invalidate; +u32 fpga_rev; +}; +u32 get_cpu_rev (void ) {struct anatop_regs *anatop = (struct anatop_regs *)ANATOP_BASE_ADDR ; -int reg =readl (&anatop->digprog); - -/* Read mx6 variant: quad, dual or solo */ -int system_rev = (reg >>4 ) &0xFF000 ; -/* Read mx6 silicon revision */ - system_rev |= (reg &0xFF ) +0x10 ; - -return system_rev; +u32 reg =readl (&anatop->digprog_sololite); +u32 type = ((reg >>16 ) &0xff ); + +if (type !=MXC_CPU_MX6SL ) { + reg =readl (&anatop->digprog); + type = ((reg >>16 ) &0xff ); +if (type ==MXC_CPU_MX6DL ) { +struct scu_regs *scu = (struct scu_regs *)SCU_BASE_ADDR ; +u32 cfg =readl (&scu->config) &3 ; + +if (!cfg) + type =MXC_CPU_MX6SOLO ; + } + } + reg &=0xff ;/* mx6 silicon revision */ +return (type <<12 ) | (reg +0x10 ); }void init_aips (void )
arch/arm/imx-common/cpu.c +9 -7
@@ -67,18 +67,20 @@ char *get_reset_cause(void)#if defined(CONFIG_DISPLAY_CPUINFO ) -static const char *get_imx_type (u32 imxtype) +const char *get_imx_type (u32 imxtype) {switch (imxtype) { -case 0x63 : +case MXC_CPU_MX6Q :return "6Q" ;/* Quad-core version of the mx6 */ -case 0x61 : -return "6DS" ;/* Dual/Solo version of the mx6 */ -case 0x60 : +case MXC_CPU_MX6DL : +return "6DL" ;/* Dual Lite version of the mx6 */ +case MXC_CPU_MX6SOLO : +return "6SOLO" ;/* Solo version of the mx6 */ +case MXC_CPU_MX6SL :return "6SL" ;/* Solo-Lite version of the mx6 */ -case 0x51 : +case MXC_CPU_MX51 :return "51" ; -case 0x53 : +case MXC_CPU_MX53 :return "53" ;default :return "??" ;
arch/arm/include/asm/arch-mx5/sys_proto.h +8 -1
@@ -24,8 +24,15 @@#ifndef _SYS_PROTO_H_#define _SYS_PROTO_H_ -u32 get_cpu_rev (void ); +#define MXC_CPU_MX51 0x51 +#define MXC_CPU_MX53 0x53 +#define MXC_CPU_MX6SL 0x60 +#define MXC_CPU_MX6DL 0x61 +#define MXC_CPU_MX6SOLO 0x62 +#define MXC_CPU_MX6Q 0x63 +#define is_soc_rev (rev) ((get_cpu_rev() & 0xFF) - rev) +u32 get_cpu_rev (void );void sdelay (unsigned long );void set_chipselect_size (int const );
arch/arm/include/asm/arch-mx6/imx-regs.h +2 -0
@@ -564,6 +564,8 @@ struct anatop_regs {u32 usb2_misc_clr;/* 0x258 */ u32 usb2_misc_tog;/* 0x25c */ u32 digprog;/* 0x260 */ +u32 reserved1[7 ]; +u32 digprog_sololite;/* 0x280 */ };#define ANATOP_PFD_480_PFD0_FRAC_SHIFT 0
arch/arm/include/asm/arch-mx6/sys_proto.h +8 -1
@@ -24,9 +24,16 @@#ifndef _SYS_PROTO_H_#define _SYS_PROTO_H_ -#define is_soc_rev (rev) ((get_cpu_rev() & 0xFF) - rev) +#define MXC_CPU_MX51 0x51 +#define MXC_CPU_MX53 0x53 +#define MXC_CPU_MX6SL 0x60 +#define MXC_CPU_MX6DL 0x61 +#define MXC_CPU_MX6SOLO 0x62 +#define MXC_CPU_MX6Q 0x63 +#define is_soc_rev (rev) ((get_cpu_rev() & 0xFF) - rev)u32 get_cpu_rev (void ); +const char *get_imx_type (u32 imxtype);void set_vddsoc (u32 mv);
Signature · 1 line
1.7.9.5
PATCH 1/5 mx6: soc: update get_cpu_rev and get_imx_type for mx6solo/sololite
Quoted 8 lines · Troy Kisky
Previously, the same value was returned for both mx6dl and mx6solo. Check number of processors to differeniate.
Also, a freescale patch says that sololite has its cpu/rev stored at0x280instead of0x260.
I don't have a sololite to verify.Signed-off-by Troy Kisky <[email protected]>
Applied to -u-boot-imx, thanks.
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH 2/5 mx6: use CONFIG_MX6 instead of CONFIG_MX6Q
In reply to Troy KiskyUse CONFIG_MX6 when the particular processor
variant isn't important.
Reserve the use of CONFIG_MX6Q to
specifically test for quad cores variant.
--- drivers/gpio/mxc_gpio.c | 6 +++--- drivers/video/ipu_regs.h | 2 +- include/configs/mx6qarm2.h | 1 + include/configs/mx6qsabre_common.h | 1 + include/configs/mx6qsabrelite.h | 1 + 5 files changed, 7 insertions(+), 4 deletions(-)
drivers/gpio/mxc_gpio.c +3 -3
@@ -42,14 +42,14 @@ static unsigned long gpio_ports[] = { [1] = GPIO2_BASE_ADDR, [2] = GPIO3_BASE_ADDR,#if defined(CONFIG_MX25 ) || defined(CONFIG_MX27 ) || defined(CONFIG_MX51 ) || \ - defined(CONFIG_MX53 ) || defined(CONFIG_MX6Q ) + defined(CONFIG_MX53 ) || defined(CONFIG_MX6 ) [3] = GPIO4_BASE_ADDR,#endif -#if defined(CONFIG_MX27 ) || defined(CONFIG_MX53 ) || defined(CONFIG_MX6Q ) +#if defined(CONFIG_MX27 ) || defined(CONFIG_MX53 ) || defined(CONFIG_MX6 ) [4] = GPIO5_BASE_ADDR, [5] = GPIO6_BASE_ADDR,#endif -#if defined(CONFIG_MX53 ) || defined(CONFIG_MX6Q ) +#if defined(CONFIG_MX53 ) || defined(CONFIG_MX6 ) [6] = GPIO7_BASE_ADDR,#endif };
drivers/video/ipu_regs.h +1 -1
@@ -55,7 +55,7 @@#define IPU_TPM_REG_BASE 0x01060000#define IPU_DC_TMPL_REG_BASE 0x01080000#define IPU_ISP_TBPR_REG_BASE 0x010C0000 -#elif defined(CONFIG_MX6Q ) +#elif defined(CONFIG_MX6 )#define IPU_CPMEM_REG_BASE 0x00100000#define IPU_LUT_REG_BASE 0x00120000#define IPU_SRM_REG_BASE 0x00140000
include/configs/mx6qarm2.h +1 -0
@@ -22,6 +22,7 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_MX6 #define CONFIG_MX6Q #define CONFIG_DISPLAY_CPUINFO #define CONFIG_DISPLAY_BOARDINFO
include/configs/mx6qsabre_common.h +1 -0
@@ -17,6 +17,7 @@#ifndef __MX6QSABRE_COMMON_CONFIG_H#define __MX6QSABRE_COMMON_CONFIG_H +#define CONFIG_MX6 #define CONFIG_MX6Q #define CONFIG_DISPLAY_CPUINFO #define CONFIG_DISPLAY_BOARDINFO
include/configs/mx6qsabrelite.h +1 -0
@@ -22,6 +22,7 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_MX6 #define CONFIG_MX6Q #define CONFIG_DISPLAY_CPUINFO #define CONFIG_DISPLAY_BOARDINFO
Signature · 1 line
1.7.9.5
PATCH 2/5 mx6: use CONFIG_MX6 instead of CONFIG_MX6Q
Quoted 8 lines · Troy Kisky
Use
CONFIG_MX6when the particular processor
variant isn't important.Reserve the use of
CONFIG_MX6Qto
specifically test for quad cores variant.Signed-off-by Troy Kisky <[email protected]>---
Applied to -u-boot-imx, thanks.
Best regards,
Stefano Babi
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH 3/5 imx-common: cpu: add imx_ddr_size
In reply to Troy KiskyRead memory setup registers to determine size of available ram. This routine works for mx53/mx6x
I need this because when mx6solo called get_ram_size with a too large maximum size, the system hanged.
---
--- arch/arm/imx-common/cpu.c | 50 +++++++++++++++++++++++++++++ arch/arm/include/asm/arch-mx5/sys_proto.h | 1 + arch/arm/include/asm/arch-mx6/sys_proto.h | 1 + 3 files changed, 52 insertions(+)
arch/arm/imx-common/cpu.c +50 -0
@@ -65,6 +65,56 @@ char *get_reset_cause(void) } } +#if defined(CONFIG_MX53 ) || defined(CONFIG_MX6 ) +#if defined(CONFIG_MX53 ) +#define MEMCTL_BASE ESDCTL_BASE_ADDR; +#else +#define MEMCTL_BASE MMDC_P0_BASE_ADDR; +#endif +static const unsigned char col_lookup[] = {9 ,10 ,11 ,8 ,12 ,9 ,9 ,9 }; +static const unsigned char bank_lookup[] = {3 ,2 }; + +struct esd_mmdc_regs { +uint32_t ctl; +uint32_t pdc; +uint32_t otc; +uint32_t cfg0; +uint32_t cfg1; +uint32_t cfg2; +uint32_t misc; +uint32_t scr; +uint32_t ref; +uint32_t rsvd1; +uint32_t rsvd2; +uint32_t rwd; +uint32_t or; +uint32_t mrr; +uint32_t cfg3lp; +uint32_t mr4; +}; + +#define ESD_MMDC_CTL_GET_ROW (mdctl) ((ctl >> 24) & 7) +#define ESD_MMDC_CTL_GET_COLUMN (mdctl) ((ctl >> 20) & 7) +#define ESD_MMDC_CTL_GET_WIDTH (mdctl) ((ctl >> 16) & 3) +#define ESD_MMDC_CTL_GET_CS1 (mdctl) ((ctl >> 30) & 1) +#define ESD_MMDC_MISC_GET_BANK (mdmisc) ((misc >> 5) & 1) + +unsigned imx_ddr_size (void ) +{ +struct esd_mmdc_regs *mem = (struct esd_mmdc_regs *)MEMCTL_BASE ; +unsigned ctl =readl (&mem->ctl); +unsigned misc =readl (&mem->misc); +int bits =11 +0 +0 +1 ;/* row + col + bank + width */ + + bits +=ESD_MMDC_CTL_GET_ROW (ctl); + bits += col_lookup[ESD_MMDC_CTL_GET_COLUMN (ctl)]; + bits += bank_lookup[ESD_MMDC_MISC_GET_BANK (misc)]; + bits +=ESD_MMDC_CTL_GET_WIDTH (ctl); + bits +=ESD_MMDC_CTL_GET_CS1 (ctl); +return 1 << bits; +} +#endif +#if defined(CONFIG_DISPLAY_CPUINFO )const char *get_imx_type (u32 imxtype)
arch/arm/include/asm/arch-mx5/sys_proto.h +1 -0
@@ -33,6 +33,7 @@#define is_soc_rev (rev) ((get_cpu_rev() & 0xFF) - rev)u32 get_cpu_rev (void ); +unsigned imx_ddr_size (void );void sdelay (unsigned long );void set_chipselect_size (int const );
arch/arm/include/asm/arch-mx6/sys_proto.h +1 -0
@@ -34,6 +34,7 @@#define is_soc_rev (rev) ((get_cpu_rev() & 0xFF) - rev)u32 get_cpu_rev (void );const char *get_imx_type (u32 imxtype); +unsigned imx_ddr_size (void );void set_vddsoc (u32 mv);
Signature · 1 line
1.7.9.5
PATCH 3/5 imx-common: cpu: add imx_ddr_size
Quoted 8 lines · Troy Kisky
Read memory setup registers to determine size of available ram. This routine works for mx53/mx6x
I need this because when mx6solo called
get_ram_sizewith a too large maximum size, the system hanged.Signed-off-by Troy Kisky <[email protected]>
Applied to -u-boot-imx, thanks.
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH 4/5 arch-mx6: add mx6dl_pins.h
In reply to Troy KiskyOnly the values used in the sabrelite board are added currently. Add more as other boards use them.
--- arch/arm/include/asm/arch-mx6/mx6dl_pins.h | 149 ++++++++++++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 arch/arm/include/asm/arch-mx6/mx6dl_pins.h
arch/arm/include/asm/arch-mx6/mx6dl_pins.h new file +149 -0
@@ -0,0 +1,149 @@ +/* +* Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved. +* +* 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., +* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +* +*/ + +#ifndef __ASM_ARCH_MX6_MX6DL_PINS_H__ +#define __ASM_ARCH_MX6_MX6DL_PINS_H__ + +#include <asm/imx-common/iomux-v3.h> + +/* Use to set PAD control */ +#define PAD_CTL_HYS (1 << 16) +#define PAD_CTL_PUS_100K_DOWN (0 << 14) +#define PAD_CTL_PUS_47K_UP (1 << 14) +#define PAD_CTL_PUS_100K_UP (2 << 14) +#define PAD_CTL_PUS_22K_UP (3 << 14) + +#define PAD_CTL_PUE (1 << 13) +#define PAD_CTL_PKE (1 << 12) +#define PAD_CTL_ODE (1 << 11) +#define PAD_CTL_SPEED_LOW (1 << 6) +#define PAD_CTL_SPEED_MED (2 << 6) +#define PAD_CTL_SPEED_HIGH (3 << 6) +#define PAD_CTL_DSE_DISABLE (0 << 3) +#define PAD_CTL_DSE_240ohm (1 << 3) +#define PAD_CTL_DSE_120ohm (2 << 3) +#define PAD_CTL_DSE_80ohm (3 << 3) +#define PAD_CTL_DSE_60ohm (4 << 3) +#define PAD_CTL_DSE_48ohm (5 << 3) +#define PAD_CTL_DSE_40ohm (6 << 3) +#define PAD_CTL_DSE_34ohm (7 << 3) +#define PAD_CTL_SRE_FAST (1 << 0) +#define PAD_CTL_SRE_SLOW (0 << 0) + +#define IOMUX_CONFIG_SION 0x10 +#define NO_MUX_I 0 +#define NO_PAD_I 0 +enum { +MX6DL_PAD_DI0_DISP_CLK__IPU1_DI0_DISP_CLK =IOMUX_PAD (0x03B0 ,0x009C ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DI0_PIN15__IPU1_DI0_PIN15 =IOMUX_PAD (0x03B4 ,0x00A0 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DI0_PIN2__IPU1_DI0_PIN2 =IOMUX_PAD (0x03B8 ,0x00A4 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DI0_PIN3__IPU1_DI0_PIN3 =IOMUX_PAD (0x03BC ,0x00A8 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DI0_PIN4__GPIO_4_20 =IOMUX_PAD (0x03C0 ,0x00AC ,5 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT0__IPU1_DISP0_DAT_0 =IOMUX_PAD (0x03C4 ,0x00B0 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT1__IPU1_DISP0_DAT_1 =IOMUX_PAD (0x03C8 ,0x00B4 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT10__IPU1_DISP0_DAT_10 =IOMUX_PAD (0x03CC ,0x00B8 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT11__IPU1_DISP0_DAT_11 =IOMUX_PAD (0x03D0 ,0x00BC ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT12__IPU1_DISP0_DAT_12 =IOMUX_PAD (0x03D4 ,0x00C0 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT13__IPU1_DISP0_DAT_13 =IOMUX_PAD (0x03D8 ,0x00C4 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT14__IPU1_DISP0_DAT_14 =IOMUX_PAD (0x03DC ,0x00C8 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT15__IPU1_DISP0_DAT_15 =IOMUX_PAD (0x03E0 ,0x00CC ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT16__IPU1_DISP0_DAT_16 =IOMUX_PAD (0x03E4 ,0x00D0 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT17__IPU1_DISP0_DAT_17 =IOMUX_PAD (0x03E8 ,0x00D4 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT18__IPU1_DISP0_DAT_18 =IOMUX_PAD (0x03EC ,0x00D8 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT19__IPU1_DISP0_DAT_19 =IOMUX_PAD (0x03F0 ,0x00DC ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT2__IPU1_DISP0_DAT_2 =IOMUX_PAD (0x03F4 ,0x00E0 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT20__IPU1_DISP0_DAT_20 =IOMUX_PAD (0x03F8 ,0x00E4 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT21__IPU1_DISP0_DAT_21 =IOMUX_PAD (0x03FC ,0x00E8 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT22__IPU1_DISP0_DAT_22 =IOMUX_PAD (0x0400 ,0x00EC ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT23__IPU1_DISP0_DAT_23 =IOMUX_PAD (0x0404 ,0x00F0 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT3__IPU1_DISP0_DAT_3 =IOMUX_PAD (0x0408 ,0x00F4 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT4__IPU1_DISP0_DAT_4 =IOMUX_PAD (0x040C ,0x00F8 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT5__IPU1_DISP0_DAT_5 =IOMUX_PAD (0x0410 ,0x00FC ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT6__IPU1_DISP0_DAT_6 =IOMUX_PAD (0x0414 ,0x0100 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT7__IPU1_DISP0_DAT_7 =IOMUX_PAD (0x0418 ,0x0104 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT8__IPU1_DISP0_DAT_8 =IOMUX_PAD (0x041C ,0x0108 ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_DISP0_DAT9__IPU1_DISP0_DAT_9 =IOMUX_PAD (0x0420 ,0x010C ,0 ,0x0000 ,0 , PAD_CTL_DSE_120ohm), +MX6DL_PAD_EIM_D16__ECSPI1_SCLK =IOMUX_PAD (0x0514 ,0x0144 ,1 ,0x07D8 ,2 ,0 ), +MX6DL_PAD_EIM_D17__ECSPI1_MISO =IOMUX_PAD (0x0518 ,0x0148 ,1 ,0x07DC ,2 ,0 ), +MX6DL_PAD_EIM_D18__ECSPI1_MOSI =IOMUX_PAD (0x051C ,0x014C ,1 ,0x07E0 ,2 ,0 ), +MX6DL_PAD_EIM_D19__GPIO_3_19 =IOMUX_PAD (0x0520 ,0x0150 ,5 ,0x0000 ,0 ,0 ), +MX6DL_PAD_EIM_D21__GPIO_3_21 =IOMUX_PAD (0x0528 ,0x0158 ,5 ,0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X6DL_PAD_SD3_DAT7__UART1_TXD =IOMUX_PAD (0x0718 ,0x0330 ,1 ,0x0000 ,0 ,0 ), +MX6DL_PAD_SD4_CLK__USDHC4_CLK =IOMUX_PAD (0x0720 ,0x0338 ,0 ,0x0938 ,1 ,0 ), +MX6DL_PAD_SD4_CMD__USDHC4_CMD =IOMUX_PAD (0x0724 ,0x033C ,0 |IOMUX_CONFIG_SION ,0x0000 ,0 ,0 ), +MX6DL_PAD_SD4_DAT0__USDHC4_DAT0 =IOMUX_PAD (0x0728 ,0x0340 ,1 ,0x0000 ,0 ,0 ), +MX6DL_PAD_SD4_DAT1__USDHC4_DAT1 =IOMUX_PAD (0x072C ,0x0344 ,1 ,0x0000 ,0 ,0 ), +MX6DL_PAD_SD4_DAT2__USDHC4_DAT2 =IOMUX_PAD (0x0730 ,0x0348 ,1 ,0x0000 ,0 ,0 ), +MX6DL_PAD_SD4_DAT3__USDHC4_DAT3 =IOMUX_PAD (0x0734 ,0x034C ,1 ,0x0000 ,0 ,0 ), +}; +#endif /* __ASM_ARCH_MX6_MX6DL_PINS_H__ */
Signature · 1 line
1.7.9.5
PATCH 4/5 arch-mx6: add mx6dl_pins.h
Quoted 5 lines · Troy Kisky
Only the values used in the sabrelite board are added currently. Add more as other boards use them.
Signed-off-by Troy Kisky <[email protected]>---
Applied to -u-boot-imx, thanks.
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH 5/5 imximage.cfg: run files through C preprocessor
In reply to Troy KiskyThe '#' used as comments in the files cause the preprocessor trouble, so change to /* */.
--- .gitignore | 1 + Makefile | 11 +- board/esg/ima3-mx53/imximage.cfg | 120 ++++++----- board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg | 90 ++++---- board/freescale/mx25pdk/imximage.cfg | 77 +++---- board/freescale/mx51evk/imximage.cfg | 114 +++++----- board/freescale/mx53ard/imximage_dd3.cfg | 83 ++++---- board/freescale/mx53evk/imximage.cfg | 86 ++++---- board/freescale/mx53loco/imximage.cfg | 83 ++++---- board/freescale/mx53smd/imximage.cfg | 83 ++++---- board/freescale/mx6qarm2/imximage.cfg | 88 ++++---- board/freescale/mx6qsabreauto/imximage.cfg | 82 +++---- board/genesi/mx51_efikamx/imximage_mx.cfg | 132 ++++++------ board/genesi/mx51_efikamx/imximage_sb.cfg | 126 +++++------ board/ttcontrol/vision2/imximage_hynix.cfg | 295 ++++++++++++++------------ 15 files changed, 777 insertions(+), 694 deletions(-)
.gitignore +1 -0
@@ -15,6 +15,7 @@ *.swp *.patch *.bin +*.cfgtmp # Build tree /build-*
Makefile +8 -3
@@ -450,8 +450,12 @@ $(obj)u-boot.img: $(obj)u-boot.bin sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ -d $< $@ -$(obj)u-boot.imx: $(obj)u-boot.bin - $(obj)tools/mkimage -n $(CONFIG_IMX_CONFIG) -T imximage \ +$(obj)$(patsubst "%",%,$(CONFIG_IMX_CONFIG)).cfgtmp: $(obj)%.cfgtmp : % + mkdir -p $(dir $@) + $(CC) -E -x c $< $(CPPFLAGS) -o $@ + +$(obj)u-boot.imx: %.imx : %.bin $(obj)$(patsubst "%",%,$(CONFIG_IMX_CONFIG)).cfgtmp + $(obj)tools/mkimage -n $(filter-out %.bin,$^) -T imximage \ -e $(CONFIG_SYS_TEXT_BASE) -d $< $@ $(obj)u-boot.kwb: $(obj)u-boot.bin
@@ -819,7 +823,8 @@ clean: @$(MAKE) -C doc/DocBook/ cleandocs @find $(OBJTREE) -type f \ \( -name 'core' -o -name '*.bak' -o -name '*~' -o -name '*.su' \ - -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \ + -o -name '*.o' -o -name '*.a' -o -name '*.exe' \ + -o -name '*.cfgtmp' \) -print \ | xargs rm -f # Removes everything not needed for testing u-boot
board/esg/ima3-mx53/imximage.cfg +66 -54
153 lines not on this page · raw message
board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg +47 -43
109 lines not on this page · raw message
board/freescale/mx25pdk/imximage.cfg +40 -37
93 lines not on this page · raw message
board/freescale/mx51evk/imximage.cfg +60 -54
147 lines not on this page · raw message
board/freescale/mx53ard/imximage_dd3.cfg +43 -40
91 lines not on this page · raw message
board/freescale/mx53evk/imximage.cfg +44 -42
94 lines not on this page · raw message
board/freescale/mx53loco/imximage.cfg +43 -40
91 lines not on this page · raw message
board/freescale/mx53smd/imximage.cfg +43 -40
91 lines not on this page · raw message
board/freescale/mx6qarm2/imximage.cfg +46 -42
101 lines not on this page · raw message
board/freescale/mx6qsabreauto/imximage.cfg +43 -39
96 lines not on this page · raw message
board/genesi/mx51_efikamx/imximage_mx.cfg +70 -62
170 lines not on this page · raw message
board/genesi/mx51_efikamx/imximage_sb.cfg +66 -60
158 lines not on this page · raw message
board/ttcontrol/vision2/imximage_hynix.cfg +157 -138
366 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 5/5 imximage.cfg: run files through C preprocessor
Quoted 5 lines · Troy Kisky
The '#' used as comments in the files cause the preprocessor trouble, so change to /* */.
Signed-off-by Troy Kisky <[email protected]>---
Hi Troy,
Quoted 8 lines
.gitignore | 1 + Makefile | 11 +- board/esg/ima3-mx53/imximage.cfg | 120 ++++++----- board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg | 90 ++++---- board/freescale/mx25pdk/imximage.cfg | 77 +++---- board/freescale/mx51evk/imximage.cfg | 114 +++++----- board/freescale/mx53ard/imximage_dd3.cfg | 83 ++++---- board/freescale/mx53evk/imximage.cfg | 86 ++++----
Quoted 9 lines
board/freescale/mx53loco/imximage.cfg | 83 ++++---- board/freescale/mx53smd/imximage.cfg | 83 ++++---- board/freescale/mx6qarm2/imximage.cfg | 88 ++++---- board/freescale/mx6qsabreauto/imximage.cfg | 82 +++---- board/genesi/mx51_efikamx/imximage_mx.cfg | 132 ++++++------ board/genesi/mx51_efikamx/imximage_sb.cfg | 126 +++++------ board/ttcontrol/vision2/imximage_hynix.cfg | 295 ++++++++++++++------------ 15 files changed, 777 insertions(+), 694 deletions(-)
I am not sure. I see that Tom agree using /* comment style, but I have not seen a general agreement where to move the rule (in which Makefile, I mean). Tom, is it ok for you to add the rule in the main Makefile ?
Stefano
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH v2 1/1 imximage.cfg: run files through C preprocessor
In reply to Troy KiskyThe '#' used as comments in the files cause the preprocessor trouble, so change to /* */.
---
v2: moved the mkimage call to arch/arm/imx-common Makefile updated spl/Makefile as well
added board/woodburn/imximage.cfg conversion
--- .gitignore | 1 + Makefile | 8 +- arch/arm/cpu/arm926ejs/config.mk | 2 +- arch/arm/cpu/armv7/config.mk | 2 +- arch/arm/imx-common/Makefile | 13 ++ board/esg/ima3-mx53/imximage.cfg | 120 ++++++----- board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg | 90 ++++---- board/freescale/mx25pdk/imximage.cfg | 77 +++---- board/freescale/mx51evk/imximage.cfg | 114 +++++----- board/freescale/mx53ard/imximage_dd3.cfg | 83 ++++---- board/freescale/mx53evk/imximage.cfg | 86 ++++---- board/freescale/mx53loco/imximage.cfg | 83 ++++---- board/freescale/mx53smd/imximage.cfg | 83 ++++---- board/freescale/mx6qarm2/imximage.cfg | 88 ++++---- board/freescale/mx6qsabreauto/imximage.cfg | 82 +++---- board/genesi/mx51_efikamx/imximage_mx.cfg | 132 ++++++------ board/genesi/mx51_efikamx/imximage_sb.cfg | 126 +++++------ board/ttcontrol/vision2/imximage_hynix.cfg | 295 ++++++++++++++------------ board/woodburn/imximage.cfg | 2 +- spl/Makefile | 7 +- 20 files changed, 791 insertions(+), 703 deletions(-)
.gitignore +1 -0
@@ -15,6 +15,7 @@ *.swp *.patch *.bin +*.cfgtmp # Build tree /build-*
Makefile +4 -4
@@ -467,9 +467,8 @@ $(obj)u-boot.img: $(obj)u-boot.bin sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ -d $< $@ -$(obj)u-boot.imx: $(obj)u-boot.bin - $(obj)tools/mkimage -n $(CONFIG_IMX_CONFIG) -T imximage \ - -e $(CONFIG_SYS_TEXT_BASE) -d $< $@ +$(OBJTREE)/u-boot.imx : $(obj)u-boot.bin $(SUBDIR_TOOLS) depend + $(MAKE) -C $(SRCTREE)/arch/arm/imx-common $@ $(obj)u-boot.kwb: $(obj)u-boot.bin $(obj)tools/mkimage -n $(CONFIG_SYS_KWD_CONFIG) -T kwbimage \
@@ -843,7 +842,8 @@ clean: @$(MAKE) -s -C doc/DocBook/ cleandocs @find $(OBJTREE) -type f \ \( -name 'core' -o -name '*.bak' -o -name '*~' -o -name '*.su' \ - -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \ + -o -name '*.o' -o -name '*.a' -o -name '*.exe' \ + -o -name '*.cfgtmp' \) -print \ | xargs rm -f # Removes everything not needed for testing u-boot
arch/arm/cpu/arm926ejs/config.mk +1 -1
@@ -34,6 +34,6 @@ PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT) ifneq ($(CONFIG_IMX_CONFIG),) -ALL-y += $(obj)u-boot.imx +ALL-y += $(OBJTREE)/u-boot.imx endif
arch/arm/cpu/armv7/config.mk +1 -1
@@ -40,5 +40,5 @@ PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,) PLATFORM_NO_UNALIGNED := $(PF_NO_UNALIGNED) ifneq ($(CONFIG_IMX_CONFIG),) -ALL-y += $(obj)u-boot.imx +ALL-y += $(OBJTREE)/u-boot.imx endif
arch/arm/imx-common/Makefile +13 -0
@@ -42,6 +42,19 @@ all: $(obj).depend $(LIB) $(LIB): $(OBJS) $(call cmd_link_o_target, $(OBJS)) +$(OBJTREE)/$(patsubst "%",%,$(CONFIG_IMX_CONFIG)).cfgtmp: $(OBJTREE)/%.cfgtmp : $(SRCTREE)/% + mkdir -p $(dir $@) + $(CC) -E -x c $< $(CPPFLAGS) -o $@ + +$(OBJTREE)/u-boot.imx: $(OBJTREE)/u-boot.bin $(OBJTREE)/$(patsubst "%",%,$(CONFIG_IMX_CONFIG)).cfgtmp + $(OBJTREE)/tools/mkimage -n $(filter-out %.bin,$^) -T imximage \ + -e $(CONFIG_SYS_TEXT_BASE) -d $< $@ + +$(OBJTREE)/SPL: $(OBJTREE)/spl/u-boot-spl.bin $(OBJTREE)/$(patsubst "%",%,$(CONFIG_IMX_CONFIG)).cfgtmp + $(OBJTREE)/tools/mkimage -n $(filter-out %.bin,$^) -T imximage \ + -e $(CONFIG_SPL_TEXT_BASE) -d $< $@ + + ######################################################################### # defines $(obj).depend target
board/esg/ima3-mx53/imximage.cfg +66 -54
153 lines not on this page · raw message
board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg +47 -43
109 lines not on this page · raw message
board/freescale/mx25pdk/imximage.cfg +40 -37
93 lines not on this page · raw message
board/freescale/mx51evk/imximage.cfg +60 -54
147 lines not on this page · raw message
board/freescale/mx53ard/imximage_dd3.cfg +43 -40
91 lines not on this page · raw message
board/freescale/mx53evk/imximage.cfg +44 -42
94 lines not on this page · raw message
board/freescale/mx53loco/imximage.cfg +43 -40
91 lines not on this page · raw message
board/freescale/mx53smd/imximage.cfg +43 -40
91 lines not on this page · raw message
board/freescale/mx6qarm2/imximage.cfg +46 -42
101 lines not on this page · raw message
board/freescale/mx6qsabreauto/imximage.cfg +43 -39
96 lines not on this page · raw message
board/genesi/mx51_efikamx/imximage_mx.cfg +70 -62
170 lines not on this page · raw message
board/genesi/mx51_efikamx/imximage_sb.cfg +66 -60
158 lines not on this page · raw message
board/ttcontrol/vision2/imximage_hynix.cfg +157 -138
366 lines not on this page · raw message
board/woodburn/imximage.cfg +1 -1
@@ -1,4 +1,4 @@ BOOT_FROM sd -# DDR2 init +/* DDR2 init */ DATA 4 0xB8001010 0x00000304
spl/Makefile +2 -5
@@ -141,11 +141,8 @@ $(OBJTREE)/MLO.byteswap: $(obj)u-boot-spl.bin $(OBJTREE)/tools/mkimage -T omapimage -n byteswap \ -a $(CONFIG_SPL_TEXT_BASE) -d $< $@ -ifneq ($(CONFIG_IMX_CONFIG),) -$(OBJTREE)/SPL: $(obj)u-boot-spl.bin - $(OBJTREE)/tools/mkimage -n $(SRCTREE)/$(CONFIG_IMX_CONFIG) -T imximage \ - -e $(CONFIG_SPL_TEXT_BASE) -d $< $@ -endif +$(OBJTREE)/SPL : $(obj)u-boot-spl.bin depend + $(MAKE) -C $(SRCTREE)/arch/arm/imx-common $@ ALL-y += $(obj)u-boot-spl.bin
Signature · 1 line
1.7.9.5
PATCH v2 1/1 imximage.cfg: run files through C preprocessor
Hi Troy,
Quoted 2 lines · Troy Kisky
The '#' used as comments in the files cause the preprocessor trouble, so change to /* */.
This seems incomplete -- there's also a change to .gitignore regarding *.cfgtmp. For the sake of completeness, can you add a note in the commit message about it?
Amicalement,
Signature · 1 line
Albert.
PATCH v3 1/1 imximage.cfg: run files through C preprocessor
In reply to Troy KiskyThe '#' used as comments in the files cause the preprocessor trouble, so change to /* */.
The mkimage command which uses this preprocessor output was moved to arch/arm/imx-common/Makefile
.gitignore was updated to ignore .cfgtmp files.
---
v2: moved the mkimage call to arch/arm/imx-common Makefile updated spl/Makefile as well
added board/woodburn/imximage.cfg conversion
v3: added .gitignore to commit message
added mkimage command move to commit message
--- .gitignore | 1 + Makefile | 8 +- arch/arm/cpu/arm926ejs/config.mk | 2 +- arch/arm/cpu/armv7/config.mk | 2 +- arch/arm/imx-common/Makefile | 13 ++ board/esg/ima3-mx53/imximage.cfg | 120 ++++++----- board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg | 90 ++++---- board/freescale/mx25pdk/imximage.cfg | 77 +++---- board/freescale/mx51evk/imximage.cfg | 114 +++++----- board/freescale/mx53ard/imximage_dd3.cfg | 83 ++++---- board/freescale/mx53evk/imximage.cfg | 86 ++++---- board/freescale/mx53loco/imximage.cfg | 83 ++++---- board/freescale/mx53smd/imximage.cfg | 83 ++++---- board/freescale/mx6qarm2/imximage.cfg | 88 ++++---- board/freescale/mx6qsabreauto/imximage.cfg | 82 +++---- board/genesi/mx51_efikamx/imximage_mx.cfg | 132 ++++++------ board/genesi/mx51_efikamx/imximage_sb.cfg | 126 +++++------ board/ttcontrol/vision2/imximage_hynix.cfg | 295 ++++++++++++++------------ board/woodburn/imximage.cfg | 2 +- spl/Makefile | 7 +- 20 files changed, 791 insertions(+), 703 deletions(-)
.gitignore +1 -0
@@ -15,6 +15,7 @@ *.swp *.patch *.bin +*.cfgtmp # Build tree /build-*
Makefile +4 -4
@@ -467,9 +467,8 @@ $(obj)u-boot.img: $(obj)u-boot.bin sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ -d $< $@ -$(obj)u-boot.imx: $(obj)u-boot.bin - $(obj)tools/mkimage -n $(CONFIG_IMX_CONFIG) -T imximage \ - -e $(CONFIG_SYS_TEXT_BASE) -d $< $@ +$(OBJTREE)/u-boot.imx : $(obj)u-boot.bin $(SUBDIR_TOOLS) depend + $(MAKE) -C $(SRCTREE)/arch/arm/imx-common $@ $(obj)u-boot.kwb: $(obj)u-boot.bin $(obj)tools/mkimage -n $(CONFIG_SYS_KWD_CONFIG) -T kwbimage \
@@ -843,7 +842,8 @@ clean: @$(MAKE) -s -C doc/DocBook/ cleandocs @find $(OBJTREE) -type f \ \( -name 'core' -o -name '*.bak' -o -name '*~' -o -name '*.su' \ - -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \ + -o -name '*.o' -o -name '*.a' -o -name '*.exe' \ + -o -name '*.cfgtmp' \) -print \ | xargs rm -f # Removes everything not needed for testing u-boot
arch/arm/cpu/arm926ejs/config.mk +1 -1
@@ -34,6 +34,6 @@ PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT) ifneq ($(CONFIG_IMX_CONFIG),) -ALL-y += $(obj)u-boot.imx +ALL-y += $(OBJTREE)/u-boot.imx endif
arch/arm/cpu/armv7/config.mk +1 -1
@@ -40,5 +40,5 @@ PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,) PLATFORM_NO_UNALIGNED := $(PF_NO_UNALIGNED) ifneq ($(CONFIG_IMX_CONFIG),) -ALL-y += $(obj)u-boot.imx +ALL-y += $(OBJTREE)/u-boot.imx endif
arch/arm/imx-common/Makefile +13 -0
@@ -42,6 +42,19 @@ all: $(obj).depend $(LIB) $(LIB): $(OBJS) $(call cmd_link_o_target, $(OBJS)) +$(OBJTREE)/$(patsubst "%",%,$(CONFIG_IMX_CONFIG)).cfgtmp: $(OBJTREE)/%.cfgtmp : $(SRCTREE)/% + mkdir -p $(dir $@) + $(CC) -E -x c $< $(CPPFLAGS) -o $@ + +$(OBJTREE)/u-boot.imx: $(OBJTREE)/u-boot.bin $(OBJTREE)/$(patsubst "%",%,$(CONFIG_IMX_CONFIG)).cfgtmp + $(OBJTREE)/tools/mkimage -n $(filter-out %.bin,$^) -T imximage \ + -e $(CONFIG_SYS_TEXT_BASE) -d $< $@ + +$(OBJTREE)/SPL: $(OBJTREE)/spl/u-boot-spl.bin $(OBJTREE)/$(patsubst "%",%,$(CONFIG_IMX_CONFIG)).cfgtmp + $(OBJTREE)/tools/mkimage -n $(filter-out %.bin,$^) -T imximage \ + -e $(CONFIG_SPL_TEXT_BASE) -d $< $@ + + ######################################################################### # defines $(obj).depend target
board/esg/ima3-mx53/imximage.cfg +66 -54
153 lines not on this page · raw message
board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg +47 -43
109 lines not on this page · raw message
board/freescale/mx25pdk/imximage.cfg +40 -37
93 lines not on this page · raw message
board/freescale/mx51evk/imximage.cfg +60 -54
147 lines not on this page · raw message
board/freescale/mx53ard/imximage_dd3.cfg +43 -40
91 lines not on this page · raw message
board/freescale/mx53evk/imximage.cfg +44 -42
94 lines not on this page · raw message
board/freescale/mx53loco/imximage.cfg +43 -40
91 lines not on this page · raw message
board/freescale/mx53smd/imximage.cfg +43 -40
91 lines not on this page · raw message
board/freescale/mx6qarm2/imximage.cfg +46 -42
101 lines not on this page · raw message
board/freescale/mx6qsabreauto/imximage.cfg +43 -39
96 lines not on this page · raw message
board/genesi/mx51_efikamx/imximage_mx.cfg +70 -62
170 lines not on this page · raw message
board/genesi/mx51_efikamx/imximage_sb.cfg +66 -60
158 lines not on this page · raw message
board/ttcontrol/vision2/imximage_hynix.cfg +157 -138
366 lines not on this page · raw message
board/woodburn/imximage.cfg +1 -1
@@ -1,4 +1,4 @@ BOOT_FROM sd -# DDR2 init +/* DDR2 init */ DATA 4 0xB8001010 0x00000304
spl/Makefile +2 -5
@@ -141,11 +141,8 @@ $(OBJTREE)/MLO.byteswap: $(obj)u-boot-spl.bin $(OBJTREE)/tools/mkimage -T omapimage -n byteswap \ -a $(CONFIG_SPL_TEXT_BASE) -d $< $@ -ifneq ($(CONFIG_IMX_CONFIG),) -$(OBJTREE)/SPL: $(obj)u-boot-spl.bin - $(OBJTREE)/tools/mkimage -n $(SRCTREE)/$(CONFIG_IMX_CONFIG) -T imximage \ - -e $(CONFIG_SPL_TEXT_BASE) -d $< $@ -endif +$(OBJTREE)/SPL : $(obj)u-boot-spl.bin depend + $(MAKE) -C $(SRCTREE)/arch/arm/imx-common $@ ALL-y += $(obj)u-boot-spl.bin
Signature · 1 line
1.7.9.5
PATCH v3 1/1 imximage.cfg: run files through C preprocessor
Quoted 9 lines · Troy Kisky
The '#' used as comments in the files cause the preprocessor trouble, so change to /* */.
The mkimage command which uses this preprocessor output was moved to
arch/arm/imx-common/Makefile.gitignore was updated to ignore .cfgtmp files.
Signed-off-by Troy Kisky <[email protected]>
Quoted 8 lines
---
v2: moved the mkimage call toarch/arm/imx-commonMakefileupdated spl/Makefile as well
added board/woodburn/imximage.cfg conversionv3: added .gitignore to commit message
added mkimage command move to commit message
---
Applied to u-boot-imx, thanks.
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================