Add support for MX35 processor
Subsystems (8)
PATCH 1/7 Add support for MX35 processor
The patch adds basic support for the Freescale's i.MX35 (arm1136 based) processor.
--- arch/arm/cpu/arm1136/mx35/Makefile | 49 +++ arch/arm/cpu/arm1136/mx35/generic.c | 462 ++++++++++++++++++++++++++++ arch/arm/cpu/arm1136/mx35/iomux.c | 147 +++++++++ arch/arm/cpu/arm1136/mx35/timer.c | 118 +++++++ arch/arm/include/asm/arch-mx35/clock.h | 45 +++ arch/arm/include/asm/arch-mx35/crm_regs.h | 270 ++++++++++++++++ arch/arm/include/asm/arch-mx35/imx-regs.h | 367 ++++++++++++++++++++++ arch/arm/include/asm/arch-mx35/iomux.h | 290 +++++++++++++++++ arch/arm/include/asm/arch-mx35/mmu.h | 172 +++++++++++ arch/arm/include/asm/arch-mx35/mx35_pins.h | 342 ++++++++++++++++++++ arch/arm/include/asm/arch-mx35/sys_proto.h | 31 ++ 11 files changed, 2293 insertions(+), 0 deletions(-) create mode 100644 arch/arm/cpu/arm1136/mx35/Makefile create mode 100644 arch/arm/cpu/arm1136/mx35/generic.c create mode 100644 arch/arm/cpu/arm1136/mx35/iomux.c create mode 100644 arch/arm/cpu/arm1136/mx35/timer.c create mode 100644 arch/arm/include/asm/arch-mx35/clock.h create mode 100644 arch/arm/include/asm/arch-mx35/crm_regs.h create mode 100644 arch/arm/include/asm/arch-mx35/imx-regs.h create mode 100644 arch/arm/include/asm/arch-mx35/iomux.h create mode 100644 arch/arm/include/asm/arch-mx35/mmu.h create mode 100644 arch/arm/include/asm/arch-mx35/mx35_pins.h create mode 100644 arch/arm/include/asm/arch-mx35/sys_proto.h
arch/arm/cpu/arm1136/mx35/Makefile new file +49 -0
@@ -0,0 +1,49 @@ +# +# (C) Copyright 2000-2006 +# Wolfgang Denk, DENX Software Engineering, wd at denx.de. +# +# (C) Copyright 2008-2009 Freescale Semiconductor, Inc. +# +# 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 +# + +include $(TOPDIR)/config.mk + +LIB = $(obj)lib$(SOC).o + +COBJS += generic.o +COBJS += timer.o +COBJS += iomux.o + +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) + +all: $(obj).depend $(LIB) + +$(LIB): $(OBJS) + $(call cmd_link_o_target, $(OBJS)) + +######################################################################### + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +#########################################################################
arch/arm/cpu/arm1136/mx35/generic.c new file +462 -0
462 lines not on this page · raw message
arch/arm/cpu/arm1136/mx35/iomux.c new file +147 -0
147 lines not on this page · raw message
arch/arm/cpu/arm1136/mx35/timer.c new file +118 -0
118 lines not on this page · raw message
arch/arm/include/asm/arch-mx35/clock.h new file +45 -0
45 lines not on this page · raw message
arch/arm/include/asm/arch-mx35/crm_regs.h new file +270 -0
270 lines not on this page · raw message
arch/arm/include/asm/arch-mx35/imx-regs.h new file +367 -0
367 lines not on this page · raw message
arch/arm/include/asm/arch-mx35/iomux.h new file +290 -0
290 lines not on this page · raw message
arch/arm/include/asm/arch-mx35/mmu.h new file +172 -0
172 lines not on this page · raw message
arch/arm/include/asm/arch-mx35/mx35_pins.h new file +342 -0
342 lines not on this page · raw message
arch/arm/include/asm/arch-mx35/sys_proto.h new file +31 -0
@@ -0,0 +1,31 @@ +/* +* (C) Copyright 2009 +* Stefano Babic, DENX Software Engineering, sbabic at denx.de. +* +* 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 _SYS_PROTO_H_ +#define _SYS_PROTO_H_ + +u32 get_cpu_rev (void ); +#define is_soc_rev (rev) ((get_cpu_rev() & 0xFF) - rev) +void sdelay (unsigned long ); + +#endif
Signature · 1 line
1.7.1
PATCH 2/7 serial_mxc: add support for Freescale's i.MX35 processor
The patch adds UART support for the i.MX35 processor.
--- drivers/serial/serial_mxc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/serial/serial_mxc.c +2 -2
@@ -50,9 +50,9 @@#define UART_PHYS 0x1001b000#elif defined(CONFIG_SYS_MX27_UART6 )#define UART_PHYS 0x1001c000 -#elif defined(CONFIG_SYS_MX51_UART1 ) +#elif defined(CONFIG_SYS_MX51_UART1 ) || defined(CONFIG_SYS_MX35_UART1 )#define UART_PHYS UART1_BASE_ADDR -#elif defined(CONFIG_SYS_MX51_UART2 ) +#elif defined(CONFIG_SYS_MX51_UART2 ) || defined(CONFIG_SYS_MX35_UART2 )#define UART_PHYS UART2_BASE_ADDR#elif defined(CONFIG_SYS_MX51_UART3 )#define UART_PHYS UART3_BASE_ADDR
Signature · 1 line
1.7.1
PATCH 2/7 serial_mxc: add support for Freescale's i.MX35 processor
Dear Stefano Babic,
Quoted 12 lines · In message <[email protected]> you wrote:
The patch adds UART support for the i.MX35 processor.
Signed-off-by Stefano Babic <[email protected]>--- drivers/serial/serial_mxc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)drivers/serial/serial_mxc.c +0
-0
drivers/serial/serial_mxc.c line 55
Quoted 8 lines
drivers/serial/serial_mxc.c +2
-2@@ -50,9 +50,9 @@#define UART_PHYS 0x1001b000#elif defined(CONFIG_SYS_MX27_UART6 )#define UART_PHYS 0x1001c000 -#elif defined(CONFIG_SYS_MX51_UART1 ) +#elif defined(CONFIG_SYS_MX51_UART1 ) || defined(CONFIG_SYS_MX35_UART1 )#define UART_PHYS UART1_BASE_ADDR -#elif defined(CONFIG_SYS_MX51_UART2 ) +#elif defined(CONFIG_SYS_MX51_UART2 ) || defined(CONFIG_SYS_MX35_UART2 )
Please sort entries - CONFIG_SYS_MX35_UART2 goes before CONFIG_SYS_MX51_UART2.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de There is nothing in this world constant but inconstancy. - Swift
PATCH 3/7 mxc_i2c: Add support for the i.MX35 processor
In reply to Stefano Babic--- drivers/i2c/mxc_i2c.c | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-)
drivers/i2c/mxc_i2c.c +14 -2
@@ -26,8 +26,13 @@#if defined(CONFIG_HARD_I2C ) +#if defined(CONFIG_MX31 )#include <asm/arch/mx31.h> #include <asm/arch/mx31-regs.h> +#else +#include <asm/arch/imx-regs.h> +#include <asm/arch/clock.h> +#endif #define IADR 0x00#define IFDR 0x04
@@ -56,8 +61,10 @@#elif defined (CONFIG_SYS_I2C_MX31_PORT3 )#define I2C_BASE 0x43f84000#define I2C_CLK_OFFSET 30 +#elif defined (CONFIG_SYS_I2C_MX35_PORT1 ) +#define I2C_BASE I2C_BASE_ADDR#else -#error "define CONFIG_SYS_I2C_MX31_PORTx to use the mx31 I2C driver" +#error "define CONFIG_SYS_I2C_MXXX_PORTx to use the mx I2C driver"#endif #ifdef DEBUG
@@ -72,11 +79,16 @@ static u16 div[] = { 30, 32, 36, 42, 48, 52, 60, 72, 80, 88, 104, 128, 144,void i2c_init (int speed,int unused) { -int freq =mx31_get_ipg_clk (); +int freq;int i; +#ifdef CONFIG_MX31 + freq =mx31_get_ipg_clk ();/* start the required I2C clock */ __REG (CCM_CGR0 ) =__REG (CCM_CGR0 ) | (3 <<I2C_CLK_OFFSET ); +#else + freq =mxc_get_clock (MXC_IPG_PERCLK ); +#endif for (i =0 ; i <0x1f ; i++)if (freq / div[i] <= speed)
Signature · 1 line
1.7.1
PATCH 3/7 mxc_i2c: Add support for the i.MX35 processor
Dear Stefano Babic,
Quoted 1 line · In message <[email protected]> you wrote:
Signed-off-by Stefano Babic <[email protected]>
Add a "Cc: Heiko Schocher <[email protected]>" here so the responsible custodian is on Cc:
drivers/i2c/mxc_i2c.c line 67
Quoted 2 lines
drivers/i2c/mxc_i2c.c +1
-1-#error "define CONFIG_SYS_I2C_MX31_PORTx to use the mx31 I2C driver" +#error "define CONFIG_SYS_I2C_MXXX_PORTx to use the mx I2C driver"
Please make this "CONFIG_SYS_I2C_MXxx_PORTx" or similar; text containing "XXX" triggers some spam filters. Yes, really!
Best regards,
Wolfgang Denk
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-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The only way to get rid of a temptation is to yield to it.
- Oscar WildePATCH 3/7 mxc_i2c: Add support for the i.MX35 processor
Quoted 5 lines · Wolfgang Denk
Dear Stefano Babic,
Quoted 1 line · In message <[email protected]> you wrote:
Signed-off-by Stefano Babic <[email protected]>
Quoted 8 lines
Add a "Cc: Heiko Schocher <[email protected]>" here so the responsible custodian is on Cc:
drivers/i2c/mxc_i2c.c line 67
Quoted 2 lines
drivers/i2c/mxc_i2c.c +1
-1-#error "define CONFIG_SYS_I2C_MX31_PORTx to use the mx31 I2C driver" +#error "define CONFIG_SYS_I2C_MXXX_PORTx to use the mx I2C driver"Please make this "
CONFIG_SYS_I2C_MXxx_PORTx" or similar; text containing "XXX" triggers some spam filters. Yes, really!
I admit I never thought to this kind of problem. Of course, I will change the name !
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-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================
PATCH 4/7 mxc_nand: add support for i.MX35 processor
In reply to Stefano Babic--- drivers/mtd/nand/mxc_nand.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/mtd/nand/mxc_nand.c +3 -3
@@ -22,7 +22,7 @@#include <nand.h> #include <linux/err.h> #include <asm/io.h> -#if defined(CONFIG_MX25 ) || defined(CONFIG_MX27 ) +#if defined(CONFIG_MX25 ) || defined(CONFIG_MX27 ) || defined(CONFIG_MX35 )#include <asm/arch/imx-regs.h> #endif
@@ -50,7 +50,7 @@*/ #if defined(CONFIG_MX31 ) || defined(CONFIG_MX27 )#define MXC_NFC_V1 -#elif defined(CONFIG_MX25 ) +#elif defined(CONFIG_MX25 ) || defined(CONFIG_MX35 )#define MXC_NFC_V1_1 #else #warning "MXC NFC version not defined"
@@ -265,7 +265,7 @@ static int is_16bit_nand(void) else return 0; } -#elif defined(CONFIG_MX25 ) +#elif defined(CONFIG_MX25 ) || defined(CONFIG_MX35 )static int is_16bit_nand (void ) { struct ccm_regs *ccm =
Signature · 1 line
1.7.1
PATCH 4/7 mxc_nand: add support for i.MX35 processor
Quoted 4 lines · On Fri, 14 Jan 2011 14:35:21 +0100 Stefano Babic <[email protected]> wrote:
Signed-off-by Stefano Babic <[email protected]>--- drivers/mtd/nand/mxc_nand.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
-Scott
PATCH 5/7 Add basic support for Freescale's mc9sdz60
In reply to Stefano BabicThe patch adds helper funtions for basic access to the registers of the MC9sdz60 chip (multifunctional device with RTC and CAN) via I2C interface.
--- drivers/misc/Makefile | 1 + drivers/misc/mc9sdz60.c | 51 ++++++++++++++++++++++++++++ include/mc9sdz60.h | 84 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 136 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/mc9sdz60.c create mode 100644 include/mc9sdz60.h
drivers/misc/Makefile +1 -0
@@ -32,6 +32,7 @@ COBJS-$(CONFIG_GPIO_LED) += gpio_led.o COBJS-$(CONFIG_NS87308) += ns87308.o COBJS-$(CONFIG_STATUS_LED) += status_led.o COBJS-$(CONFIG_TWL4030_LED) += twl4030_led.o +COBJS-$(CONFIG_FSL_MC9SDZ60) += mc9sdz60.o COBJS-$(CONFIG_FSL_PMIC) += fsl_pmic.o COBJS-$(CONFIG_PDSP188x) += pdsp188x.o
drivers/misc/mc9sdz60.c new file +51 -0
51 lines not on this page · raw message
include/mc9sdz60.h new file +84 -0
84 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH 5/7 Add basic support for Freescale's mc9sdz60
Dear Stefano Babic,
Quoted 18 lines · In message <[email protected]> you wrote:
The patch adds helper funtions for basic access to the registers of the MC9sdz60 chip (multifunctional device with RTC and CAN) via I2C interface.
Signed-off-by Stefano Babic <[email protected]>--- drivers/misc/Makefile | 1 + drivers/misc/mc9sdz60.c | 51 ++++++++++++++++++++++++++++ include/mc9sdz60.h | 84 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 136 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/mc9sdz60.c create mode 100644 include/mc9sdz60.hdrivers/misc/Makefile +0
-0
drivers/misc/Makefile COBJS-$(CONFIG_GPIO_LED) += gpio_led.o · line 37
Quoted 6 lines
drivers/misc/Makefile +1
-0@@ -32,6 +32,7 @@ COBJS-$(CONFIG_GPIO_LED) += gpio_led.o COBJS-$(CONFIG_NS87308) += ns87308.o COBJS-$(CONFIG_STATUS_LED) += status_led.o COBJS-$(CONFIG_TWL4030_LED) += twl4030_led.o +COBJS-$(CONFIG_FSL_MC9SDZ60) += mc9sdz60.o COBJS-$(CONFIG_FSL_PMIC) += fsl_pmic.o COBJS-$(CONFIG_PDSP188x) += pdsp188x.o
I know it's not your fault, but could you please sort this list?
Thanks.
Best regards,
Wolfgang Denk
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-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de What the gods would destroy they first submit to an IEEE standards committee.
PATCH 6/7 mxc_spi: add support for i.MX35 processor
In reply to Stefano Babic--- drivers/spi/mxc_spi.c | 96 +++++++++++++++++++++++++++++++++++++------------ 1 files changed, 73 insertions(+), 23 deletions(-)
drivers/spi/mxc_spi.c +73 -23
@@ -70,6 +70,8 @@ static unsigned long spi_bases[] = { 0x53f84000, }; +#define spi_cfg spi_cfg_mx3 +#elif defined(CONFIG_MX51 )#include <asm/arch/imx-regs.h> #include <asm/arch/clock.h>
@@ -111,6 +113,47 @@ static unsigned long spi_bases[] = {CSPI2_BASE_ADDR , CSPI3_BASE_ADDR, }; +#define spi_cfg spi_cfg_mx51 + +#elif defined(CONFIG_MX35 ) + +#include <asm/arch/imx-regs.h> +#include <asm/arch/clock.h> + +#define MXC_CSPIRXDATA 0x00 +#define MXC_CSPITXDATA 0x04 +#define MXC_CSPICTRL 0x08 +#define MXC_CSPIINT 0x0C +#define MXC_CSPIDMA 0x10 +#define MXC_CSPISTAT 0x14 +#define MXC_CSPIPERIOD 0x18 +#define MXC_CSPITEST 0x1C +#define MXC_CSPIRESET 0x00 + +#define MXC_CSPICTRL_EN (1 << 0) +#define MXC_CSPICTRL_MODE (1 << 1) +#define MXC_CSPICTRL_XCH (1 << 2) +#define MXC_CSPICTRL_SMC (1 << 3) +#define MXC_CSPICTRL_POL (1 << 4) +#define MXC_CSPICTRL_PHA (1 << 5) +#define MXC_CSPICTRL_SSCTL (1 << 6) +#define MXC_CSPICTRL_SSPOL (1 << 7) +#define MXC_CSPICTRL_CHIPSELECT (x) (((x) & 0x3) << 12) +#define MXC_CSPICTRL_BITCOUNT (x) (((x) & 0xfff) << 20) +#define MXC_CSPICTRL_DATARATE (x) (((x) & 0x7) << 16) +#define MXC_CSPICTRL_TC (1 << 7) +#define MXC_CSPICTRL_RXOVF (1 << 6) +#define MXC_CSPICTRL_MAXBITS 0xfff + +#define MXC_CSPIPERIOD_32KHZ (1 << 15) +#define MAX_SPI_BYTES 4 + +static unsigned long spi_bases[] = { +0x43fa4000 , +0x50010000 , +}; +#define spi_cfg spi_cfg_mx3 +#else #error "Unsupported architecture"#endif
@@ -158,8 +201,35 @@ void spi_cs_deactivate(struct spi_slave *slave) !(mxcs->ss_pol)); } -#ifdef CONFIG_MX51 -static s32 spi_cfg (struct mxc_spi_slave *mxcs,unsigned int cs, +#if defined(CONFIG_MX31 ) || defined(CONFIG_MX35 ) +static s32 spi_cfg_mx3 (struct mxc_spi_slave *mxcs,unsigned int cs, +unsigned int max_hz,unsigned int mode) +{ +unsigned int ctrl_reg; + + ctrl_reg =MXC_CSPICTRL_CHIPSELECT (cs) | +MXC_CSPICTRL_BITCOUNT (MXC_CSPICTRL_MAXBITS ) | +MXC_CSPICTRL_DATARATE (7 ) |/* FIXME: calculate data rate */ +MXC_CSPICTRL_EN | +#ifdef CONFIG_MX35 +MXC_CSPICTRL_SSCTL | +#endif +MXC_CSPICTRL_MODE ; + +if (mode &SPI_CPHA ) + ctrl_reg |=MXC_CSPICTRL_PHA ; +if (mode &SPI_CPOL ) + ctrl_reg |=MXC_CSPICTRL_POL ; +if (mode &SPI_CS_HIGH ) + ctrl_reg |=MXC_CSPICTRL_SSPOL ; + mxcs->ctrl_reg = ctrl_reg; + +return 0 ; +} +#endif + +#if defined(CONFIG_MX51 ) +static s32 spi_cfg_mx51 (struct mxc_spi_slave *mxcs,unsigned int cs,unsigned int max_hz,unsigned int mode) {u32 clk_src =mxc_get_clock (MXC_CSPI_CLK );
@@ -227,7 +297,7 @@ static s32 spi_cfg(struct mxc_spi_slave *mxcs, unsigned int cs,/* * Configuration register setup -* The MX51 has support different setup for each SS +* The MX51 supports different setup for each SS */ reg_config = (reg_config & ~(1 << (cs +MXC_CSPICON_SSPOL ))) | (ss_pol << (cs +MXC_CSPICON_SSPOL ));
@@ -363,7 +433,6 @@ int spi_xchg_single(struct spi_slave *slave, unsigned int bitlen, } -int spi_xfer (struct spi_slave *slave,unsigned int bitlen,const void *dout,void *din,unsigned long flags) {
@@ -441,7 +510,6 @@ static int decode_cs(struct mxc_spi_slave *mxcs, unsigned int cs)struct spi_slave *spi_setup_slave (unsigned int bus,unsigned int cs,unsigned int max_hz,unsigned int mode) { -unsigned int ctrl_reg;struct mxc_spi_slave *mxcs;int ret;
@@ -467,30 +535,12 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, mxcs->base = spi_bases[bus]; mxcs->ss_pol = (mode &SPI_CS_HIGH ) ?1 :0 ; -#ifdef CONFIG_MX51 -/* Can be used for i.MX31 too ? */ - ctrl_reg =0 ; ret =spi_cfg (mxcs, cs, max_hz, mode);if (ret) {printf ("mxc_spi: cannot setup SPI controller\n" );free (mxcs);return NULL ; } -#else - ctrl_reg =MXC_CSPICTRL_CHIPSELECT (cs) | -MXC_CSPICTRL_BITCOUNT (31 ) | -MXC_CSPICTRL_DATARATE (7 ) |/* FIXME: calculate data rate */ -MXC_CSPICTRL_EN | -MXC_CSPICTRL_MODE ; - -if (mode &SPI_CPHA ) - ctrl_reg |=MXC_CSPICTRL_PHA ; -if (mode &SPI_CPOL ) - ctrl_reg |=MXC_CSPICTRL_POL ; -if (mode &SPI_CS_HIGH ) - ctrl_reg |=MXC_CSPICTRL_SSPOL ; - mxcs->ctrl_reg = ctrl_reg; -#endif return &mxcs->slave; }
Signature · 1 line
1.7.1
PATCH 6/7 mxc_spi: add support for i.MX35 processor
Dear Stefano Babic,
Quoted 14 lines · In message <[email protected]> you wrote:
Signed-off-by Stefano Babic <[email protected]>--- drivers/spi/mxc_spi.c | 96 +++++++++++++++++++++++++++++++++++++------------ 1 files changed, 73 insertions(+), 23 deletions(-)drivers/spi/mxc_spi.c +1
-0@@ -70,6 +70,8 @@ static unsigned long spi_bases[] = { 0x53f84000, }; +#define spi_cfg spi_cfg_mx3
...
Quoted 1 line
+#define
spi_cfgspi_cfg_mx51
Hm... this repeats below, but in the end both spi_cfg_mx3() and spi_cfg_mx51() are just static functions within the same source file, with #ifdef's around them so only one can ever be enabled at a time.
I suggest you omit all these "#define spi_cfg" lines and rename both versions of these functions into spi_cfg_mx().
drivers/spi/mxc_spi.c static unsigned long spi_bases[] = { · line 130
Quoted 8 lines
drivers/spi/mxc_spi.c +8
-0+#define MXC_CSPIRXDATA 0x00 +#define MXC_CSPITXDATA 0x04 +#define MXC_CSPICTRL 0x08 +#define MXC_CSPIINT 0x0C +#define MXC_CSPIDMA 0x10 +#define MXC_CSPISTAT 0x14 +#define MXC_CSPIPERIOD 0x18 +#define MXC_CSPITEST 0x1C
As mentioned before: please use a C struct.
Best regards,
Wolfgang Denk
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-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "If you own a machine, you are in turn owned by it, and spend your time serving it..." - Marion Zimmer Bradley, _The Forbidden Tower_
PATCH 6/7 mxc_spi: add support for i.MX35 processor
Quoted 16 lines · Wolfgang Denk
Dear Stefano Babic,
Quoted 13 lines · In message <[email protected]> you wrote:
Signed-off-by Stefano Babic <[email protected]>--- drivers/spi/mxc_spi.c | 96 +++++++++++++++++++++++++++++++++++++------------ 1 files changed, 73 insertions(+), 23 deletions(-)drivers/spi/mxc_spi.c +0
-0@@ -70,6 +70,8 @@ static unsigned long spi_bases[] = { 0x53f84000, };
Quoted 7 lines
Quoted 1 line
drivers/spi/mxc_spi.c +1
-0+#define spi_cfg spi_cfg_mx3...
Quoted 1 line
+#define
spi_cfgspi_cfg_mx51Hm... this repeats below, but in the end both
spi_cfg_mx3()andspi_cfg_mx51()are just static functions within the same source file, with #ifdef's around them so only one can ever be enabled at a time.
You are right, there is already an #ifdef. I think I had in mind to remove the #ifdef surrounding the functions, but I give up because I have added unneeded code (mx51 code for mx3 and viceversa). I will fix it.
Quoted 4 lines
I suggest you omit all these "#define
spi_cfg" lines and rename both versions of these functions intospi_cfg_mx().
Quoted 10 lines
drivers/spi/mxc_spi.c static unsigned long spi_bases[] = { · line 130
Quoted 8 lines
drivers/spi/mxc_spi.c +8
-0+#define MXC_CSPIRXDATA 0x00 +#define MXC_CSPITXDATA 0x04 +#define MXC_CSPICTRL 0x08 +#define MXC_CSPIINT 0x0C +#define MXC_CSPIDMA 0x10 +#define MXC_CSPISTAT 0x14 +#define MXC_CSPIPERIOD 0x18 +#define MXC_CSPITEST 0x1CAs mentioned before: please use a C struct.
This is another issue. I agree that is ugly code, but it comes from the originally written driver for the i.MX31. This issue should be fixed, but in a separate patch, and for all supported processors (MX.31/MX.25/MX.51/MX.35).
There are at the moment two other patches by Anatolji regarding this driver. I have already rebased one of them and post to the ML, but I admit that, as they are not in the same patchset, it is quite difficult to have an overview of the changes. My proposal is that I will add these other two patches to my patchset to simplify review.
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-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================
PATCH 6/7 mxc_spi: add support for i.MX35 processor
Dear Stefano Babic,
Quoted 1 line · In message <[email protected]> you wrote:
...
Quoted 5 lines
There are at the moment two other patches by Anatolji regarding this driver. I have already rebased one of them and post to the ML, but I admit that, as they are not in the same patchset, it is quite difficult to have an overview of the changes. My proposal is that I will add these other two patches to my patchset to simplify review.
That's fine with me, then.
Best regards,
Wolfgang Denk
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-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de How many QA engineers does it take to screw in a lightbulb? 3: 1 to screw it in and 2 to say "I told you so" when it doesn't work.
PATCH 7/7 Add support for Freescale's mx35pdk board.
In reply to Stefano BabicThe patch adds suupport for the Freescale's mx35pdk board (known as well as mx35_3stack).
The board boots from the NOR flash. Following devices are supported:
- two ethernet devices (FEC and SMC911x on debug board)
- I2C
- PMIC (MC13892) via I2C interface
- UART
- NOR flash (64MB)
- NAND flash (2GB)
- basic access to mc9sdz60 registers via I2C interface
--- MAINTAINERS | 1 + MAKEALL | 1 + arch/arm/include/asm/arch-mx35/mmu.h | 172 -------------- board/freescale/mx35pdk/Makefile | 49 ++++ board/freescale/mx35pdk/config.mk | 25 ++ board/freescale/mx35pdk/imximage.cfg | 62 +++++ board/freescale/mx35pdk/lowlevel_init.S | 382 +++++++++++++++++++++++++++++++ board/freescale/mx35pdk/mx35pdk.c | 313 +++++++++++++++++++++++++ board/freescale/mx35pdk/mx35pdk.h | 101 ++++++++ boards.cfg | 1 + doc/README.mx35pdk | 185 +++++++++++++++ include/configs/mx35pdk.h | 269 ++++++++++++++++++++++ 12 files changed, 1389 insertions(+), 172 deletions(-) delete mode 100644 arch/arm/include/asm/arch-mx35/mmu.h create mode 100644 board/freescale/mx35pdk/Makefile create mode 100644 board/freescale/mx35pdk/config.mk create mode 100644 board/freescale/mx35pdk/imximage.cfg create mode 100644 board/freescale/mx35pdk/lowlevel_init.S create mode 100644 board/freescale/mx35pdk/mx35pdk.c create mode 100644 board/freescale/mx35pdk/mx35pdk.h create mode 100644 doc/README.mx35pdk create mode 100644 include/configs/mx35pdk.h
MAINTAINERS +1 -0
@@ -554,6 +554,7 @@ Stefano Babic <[email protected]> ea20 davinci polaris xscale trizepsiv xscale + mx35pdk i.MX35 mx51evk i.MX51 vision2 i.MX51
MAKEALL +1 -0
@@ -409,6 +409,7 @@ LIST_ARM11=" \ mx31ads \ mx31pdk \ mx31pdk_nand \ + mx35pdk \ qong \ smdk6400 \ tnetv107x_evm \
arch/arm/include/asm/arch-mx35/mmu.h deleted +0 -172
172 lines not on this page · raw message
board/freescale/mx35pdk/Makefile new file +49 -0
49 lines not on this page · raw message
board/freescale/mx35pdk/config.mk new file +25 -0
@@ -0,0 +1,25 @@ +# +# (C) Copyright 2010 +# Stefano Babic DENX Software Engineering sbabic at denx.de. +# +# Copyright 2009 Freescale Semiconductor, Inc. All Rights Reserved. +# +# 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 +# +CONFIG_SYS_TEXT_BASE = 0xA0000000
board/freescale/mx35pdk/imximage.cfg new file +62 -0
62 lines not on this page · raw message
board/freescale/mx35pdk/lowlevel_init.S new file +382 -0
382 lines not on this page · raw message
board/freescale/mx35pdk/mx35pdk.c new file +313 -0
313 lines not on this page · raw message
board/freescale/mx35pdk/mx35pdk.h new file +101 -0
101 lines not on this page · raw message
boards.cfg +1 -0
@@ -38,6 +38,7 @@ qong arm arm1136 - davedenx mx31 mx31ads arm arm1136 - freescale mx31 imx31_litekit arm arm1136 - logicpd mx31 +mx35pdk arm arm1136 - freescale mx35 omap2420h4 arm arm1136 - ti omap24xx tnetv107x_evm arm arm1176 tnetv107xevm ti tnetv107x armadillo arm arm720t
doc/README.mx35pdk new file +185 -0
185 lines not on this page · raw message
include/configs/mx35pdk.h new file +269 -0
269 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH 7/7 Add support for Freescale's mx35pdk board.
Hi, Stefano,
2011/1/14 Stefano Babic <[email protected]>:
Quoted 13 lines
The patch adds suupport for the Freescale's mx35pdk board (known as well as
mx35_3stack).The board boots from the NOR flash. Following devices are supported:
?- two ethernet devices (FEC and SMC911x on debug board) ?- I2C
?- PMIC (MC13892) via I2C interface
?- UART
?- NOR flash (64MB)
?- NAND flash (2GB)
?- basic access to mc9sdz60 registers via I2C interface
Quoted 5 lines
Signed-off-by Stefano Babic <[email protected]>---
?MAINTAINERS ? ? ? ? ? ? ? ? ? ? ? ? ? ? | ? ?1 + ?MAKEALL ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | ? ?1 + ?arch/arm/include/asm/arch-mx35/mmu.h ? ?| ?172 --------------
You want to remove this file, is there this file in the mainline?
Quoted 50 lines
?board/freescale/mx35pdk/Makefile ? ? ? ?| ? 49 ++++ ?board/freescale/mx35pdk/config.mk ? ? ? | ? 25 ++ ?board/freescale/mx35pdk/imximage.cfg ? ?| ? 62 +++++ ?board/freescale/mx35pdk/lowlevel_init.S | ?382 +++++++++++++++++++++++++++++++ ?board/freescale/mx35pdk/mx35pdk.c ? ? ? | ?313 +++++++++++++++++++++++++ ?board/freescale/mx35pdk/mx35pdk.h ? ? ? | ?101 ++++++++ ?boards.cfg ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| ? ?1 + ?doc/README.mx35pdk ? ? ? ? ? ? ? ? ? ? ?| ?185 +++++++++++++++ ?include/configs/mx35pdk.h ? ? ? ? ? ? ? | ?269 ++++++++++++++++++++++?12 files changed, 1389 insertions(+), 172 deletions(-) ?delete mode 100644
arch/arm/include/asm/arch-mx35/mmu.h?create mode 100644 board/freescale/mx35pdk/Makefile ?create mode 100644board/freescale/mx35pdk/config.mk?create mode 100644 board/freescale/mx35pdk/imximage.cfg ?create mode 100644board/freescale/mx35pdk/lowlevel_init.S?create mode 100644board/freescale/mx35pdk/mx35pdk.c?create mode 100644board/freescale/mx35pdk/mx35pdk.h?create mode 100644 doc/README.mx35pdk
?create mode 100644include/configs/mx35pdk.hMAINTAINERS +0
-0@@ -554,6 +554,7 @@ Stefano Babic <[email protected]>? ? ? ?ea20 ? ? ? ? ? ?davinci
? ? ? ?polaris ? ? ? ? xscale
? ? ? ?trizepsiv ? ? ? xscale
+ ? ? ? mx35pdk ? ? ? ? i.MX35
? ? ? ?mx51evk ? ? ? ? i.MX51
? ? ? ?vision2 ? ? ? ? i.MX51MAKEALL +1
-0@@ -409,6 +409,7 @@ LIST_ARM11=" ? ? ? ? ? ? ? ? ? ? ? ?\ ? ? ? ?mx31ads ? ? ? ? ? ? ? ? \ ? ? ? ?mx31pdk ? ? ? ? ? ? ? ? \ ? ? ? ?mx31pdk_nand ? ? ? ? ? ?\ + ? ? ? mx35pdk ? ? ? ? ? ? ? ? \ ? ? ? ?qong ? ? ? ? ? ? ? ? ? ?\ ? ? ? ?smdk6400 ? ? ? ? ? ? ? ?\ ? ? ? ?tnetv107x_evm ? ? ? ? ? \arch/arm/include/asm/arch-mx35/mmu.h deleted +0
-0
arch/arm/include/asm/arch-mx35/mmu.h line 4
Quoted 4 lines
arch/arm/include/asm/arch-mx35/mmu.h deleted +0
-4@@ -1,172 +0,0 @@ -/* -* Copyright 2004-2010 Freescale Semiconductor, Inc. All Rights Reserved. -*/ -
Ditto,
[snip]
Quoted 21 lines
board/freescale/mx35pdk/config.mk new file +15
-0@@ -0,0 +1,25 @@ +# +# (C) Copyright 2010 +# Stefano Babic DENX Software Engineering sbabic at denx.de. +# +# Copyright 2009 Freescale Semiconductor, Inc. All Rights Reserved. +# +# 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,
board/freescale/mx35pdk/config.mk line 25
Quoted 10 lines
board/freescale/mx35pdk/config.mk new file +10
-0+# 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 +# +CONFIG_SYS_TEXT_BASE = 0xA0000000
Need move this config to board config file and remove this file.
[snip]
Quoted 6 lines
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
PATCH 7/7 Add support for Freescale's mx35pdk board.
Quoted 1 line · Jason Liu
Hi, Stefano,
Hi Jason,
Quoted 2 lines
You want to remove this file, is there this file in the mainline?
Of course, it was a mistake. I drop it.
Quoted 25 lines
Quoted 25 lines
board/freescale/mx35pdk/config.mk new file +19
-0@@ -0,0 +1,25 @@ +# +# (C) Copyright 2010 +# Stefano Babic DENX Software Engineering sbabic at denx.de. +# +# Copyright 2009 Freescale Semiconductor, Inc. All Rights Reserved. +# +# 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. +#
Quoted 8 lines
board/freescale/mx35pdk/config.mk line 25
Quoted 6 lines
board/freescale/mx35pdk/config.mk new file +6
-0+# 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 +# +CONFIG_SYS_TEXT_BASE = 0xA0000000Need move this config to board config file and remove this file.
I have not understood this point. The link address CONFIG_SYS_TEXT_BASE is always set in the config.mk file, because it is needed by the linker process, and it is not set in the configuration file (I think you mean mx35pdk.h). All boards follow this rule. If I move it, the linker does not find it. Do you mean probably something else ?
Best regards,
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-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================
PATCH 7/7 Add support for Freescale's mx35pdk board.
Quoted 11 lines · Stefano Babic
Quoted 2 lines
Need move this config to board config file and remove this file.
I have not understood this point. The link address
CONFIG_SYS_TEXT_BASE
is always set in the config.mk file, because it is needed by the linker process, and it is not set in the configuration file (I think you meanmx35pdk.h). All boards follow this rule. If I move it, the linker does not find it. Do you mean probably something else ?
Sorry, I checked again, I missed the new rule for TEXT_BASE - you are right, I will move it in boards.cfg (my preferred way).
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-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================
PATCH 7/7 Add support for Freescale's mx35pdk board.
In reply to Stefano BabicDear Stefano Babic,
Quoted 6 lines · In message <[email protected]> you wrote:
I have not understood this point. The link address
CONFIG_SYS_TEXT_BASEis always set in the config.mk file, because it is needed by the linker process, and it is not set in the configuration file (I think you meanmx35pdk.h). All boards follow this rule. If I move it, the linker does not find it. Do you mean probably something else ?
No, you are wrong. CONFIG_SYS_TEXT_BASE is always set in the configuration file, only a few files still have it in config.mk - these files need to be cleand up, and ideally config.mk should be ditched.
Best regards,
Wolfgang Denk
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-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Beware of the Turing Tar-pit in which everything is possible but nothing of interest is easy.
PATCH 7/7 Add support for Freescale's mx35pdk board.
Quoted 4 lines · Wolfgang Denk
No, you are wrong.
CONFIG_SYS_TEXT_BASEis always set in the configuration file, only a few files still have it in config.mk - these files need to be cleand up, and ideally config.mk should be ditched.
I see, understood. I will drop config.mk.
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-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================
PATCH 7/7 Add support for Freescale's mx35pdk board.
In reply to Stefano BabicDear Stefano Babic,
Quoted 14 lines · In message <[email protected]> you wrote:
The patch adds suupport for the Freescale's mx35pdk board (known as well as
mx35_3stack).The board boots from the NOR flash. Following devices are supported:
- two ethernet devices (FEC and SMC911x on debug board)
- I2C
- PMIC (MC13892) via I2C interface
- UART
- NOR flash (64MB)
- NAND flash (2GB)
- basic access to mc9sdz60 registers via I2C interfaceSigned-off-by Stefano Babic <[email protected]>
...
MAINTAINERS Stefano Babic <[email protected]> · line 559
Quoted 11 lines
MAINTAINERS +1
-0@@ -554,6 +554,7 @@ Stefano Babic <[email protected]> ea20 davinci polaris xscale trizepsiv xscale + mx35pdk i.MX35 mx51evk i.MX51 vision2 i.MX51
Please sort list.
MAKEALL LIST_ARM11=" \ · line 415
Quoted 12 lines
MAKEALL +1
-0@@ -409,6 +409,7 @@ LIST_ARM11=" \ mx31ads \ mx31pdk \ mx31pdk_nand \ + mx35pdk \ qong \ smdk6400 \ tnetv107x_evm \
NAK. We don't add boards to MAKEALL any more. They get auto-selcted from their entry in boards.cfg.
Quoted 16 lines
MAKEALL +0
-16-#define ARM_MMU_FIRST_LEVEL_DESCRIPTOR_ADDRESS(ttb_base, table_index) \ - (unsigned long *)((unsigned long)(ttb_base) + ((table_index) << 2)) - -#define ARM_FIRST_LEVEL_PAGE_TABLE_SIZE 0x4000 - -#define ARM_MMU_SECTION(ttb_base, actual_base, virtual_base, \ - cacheable, bufferable, perm) \ - { \ - register union ARM_MMU_FIRST_LEVEL_DESCRIPTOR desc; \ - desc.word = 0; \ - desc.section.id = ARM_MMU_FIRST_LEVEL_SECTION_ID; \ - desc.section.domain = 0; \ - desc.section.c = (cacheable); \ - desc.section.b = (bufferable); \ - desc.section.ap = (perm); \ - desc.section.base_address = (actual_base); \
MAKEALL
Quoted 10 lines
MAKEALL +0
-10- *ARM_MMU_FIRST_LEVEL_DESCRIPTOR_ADDRESS(ttb_base, (virtual_base)) \ - = desc.word; \ - } - -#define X_ARM_MMU_SECTION(abase, vbase, size, cache, buff, access) \ - { \ - int i; int j = abase; int k = vbase; \ - for (i = size; i > 0 ; i--, j++, k++) \ - ARM_MMU_SECTION(ttb_base, j, k, cache, buff, access); \ - }
Here and everywhere else: Macros with multiple statements should be enclosed in a do - while block.
Quoted 5 lines
board/freescale/mx35pdk/config.mk new file +0
-0
...
Quoted 1 line
+CONFIG_SYS_TEXT_BASE =
0xA0000000
NAK. Please move CONFIG_SYS_TEXT_BASE into board config file and ditch config.mk
board/freescale/mx35pdk/config.mk
Quoted 12 lines
board/freescale/mx35pdk/config.mk new file +12
-0+/* To support 133MHz DDR */ +.macro init_drive_strength +/* + mov r0, #0x2 + ldr r1, =IOMUXC_BASE_ADDR + add r1, r1, #0x368 + add r2, r1, #0x4C8 - 0x368 +1: str r0, [r1], #4 + cmp r1, r2 + ble 1b +*/ +.endm /* init_drive_strength */
Please remove dead code - please fix globally.
Please use TAB for indentation - please fix globally.
board/freescale/mx35pdk/config.mk
Quoted 8 lines
board/freescale/mx35pdk/config.mk new file +8
-0+int checkboard(void) +{ + u32 system_rev = get_cpu_rev(); + u32 board_rev = 0; + struct ccm_regs *ccm = + (struct ccm_regs *)IMX_CCM_BASE; + + puts("Board: MX35 3STACK ");
Is this the correct board name?
board/freescale/mx35pdk/config.mk
Quoted 7 lines
board/freescale/mx35pdk/config.mk new file +7
-0+ board_rev = board_detect(); + + /* Print board revision */ + if (board_rev) + puts("2.0"); + else + puts("1.0");
Maybe board_detect() could return the board revision sirectly, so you can use a single printf for all this, like:
printf("Board: mx35pdk %d.0", board_detect());?
board/freescale/mx35pdk/config.mk
Quoted 6 lines
board/freescale/mx35pdk/config.mk new file +6
-0+ /* Print CPU revision */ + puts(" i.MX35 "); + if (system_rev & CHIP_REV_2_0) + puts("2.0 ["); + else + puts("1.0 [");
Eventually something similar could / should be done here?
Quoted 2 lines
doc/README.mx35pdk new file +0
-0
...
...
doc/README.mx35pdk line 65
Quoted 6 lines
doc/README.mx35pdk new file +6
-0+NAND partitions can be recognized enabling in kernel CONFIG_MTD_REDBOOT_PARTS. +For this board, CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK should be set to 2. + +However, the setup in redboot is not correct and does not use the whole flash. + +Better solution is to use the kernel parameter mtdparts. Here the resulting script to be defined in RedBoot with fconfig:
Lines too long. Please fix globally (at least in text).
Quoted 2 lines
include/configs/mx35pdk.h new file +0
-0
...
...
include/configs/mx35pdk.h line 47
Quoted 4 lines
include/configs/mx35pdk.h new file +4
-0+#define CONFIG_CMDLINE_TAG 1/* enable passing of ATAGs */ +#define CONFIG_REVISION_TAG 1 +#define CONFIG_SETUP_MEMORY_TAGS 1 +#define CONFIG_INITRD_TAG 1
Please omit all such '1'.
...
Quoted 1 line
+#define
CONFIG_EXTRA_ENV_SETTINGS\
...
include/configs/mx35pdk.h line 120
Quoted 3 lines
include/configs/mx35pdk.h new file +3
-0+"uboot=u-boot.bin\0" \ +"kernel_addr_r=0x80800000\0" \ +"kernel=uImage\0" \
Default locations are "<boardname>/u-boot.bin" resp. "<boardname>/uImage".
include/configs/mx35pdk.h line 133
Quoted 5 lines
include/configs/mx35pdk.h new file +5
-0+"prg_uboot=tftpboot ${loadaddr} ${uboot};" \ +"protect off ${uboot_addr} 0xa003ffff;" \ +"erase ${uboot_addr} 0xa003ffff;" \ +"cp.b ${loadaddr} ${uboot_addr} ${filesize};" \ +"setenv filesize;saveenv\0"
We usually split this into "load" and "update" steps, so you don;t automatically erase your flash even when the download failed.
Best regards,
Wolfgang Denk
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-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Time is fluid ... like a river with currents, eddies, backwash. -- Spock, "The City on the Edge of Forever", stardate 3134.0
PATCH 7/7 Add support for Freescale's mx35pdk board.
Quoted 5 lines · Wolfgang Denk
Quoted 5 lines
MAINTAINERS +0
-0@@ -554,6 +554,7 @@ Stefano Babic <[email protected]>
Quoted 8 lines
MAINTAINERS Stefano Babic <[email protected]> · line 559
Quoted 6 lines
MAINTAINERS +1
-0ea20 davinci polaris xscale trizepsiv xscale + mx35pdk i.MX35 mx51evk i.MX51 vision2 i.MX51Please sort list.
Agree.
Quoted 7 lines
Quoted 7 lines
MAKEALL +0
-0@@ -409,6 +409,7 @@ LIST_ARM11=" \ mx31ads \ mx31pdk \
Quoted 8 lines
MAKEALL LIST_ARM11=" \ · line 415
Quoted 5 lines
MAKEALL +1
-0mx31pdk_nand \ + mx35pdk \ qong \ smdk6400 \ tnetv107x_evm \NAK. We don't add boards to MAKEALL any more. They get auto-selcted from their entry in boards.cfg.
I missed the point, I wil lfix it.
Quoted 9 lines
MAKEALL
Quoted 6 lines
MAKEALL +0
-6-#define X_ARM_MMU_SECTION(abase, vbase, size, cache, buff, access) \ - { \ - int i; int j = abase; int k = vbase; \ - for (i = size; i > 0 ; i--, j++, k++) \ - ARM_MMU_SECTION(ttb_base, j, k, cache, buff, access); \ - }Here and everywhere else: Macros with multiple statements should be enclosed in a do - while block.
The patch removes for mistake this file, that does not really exist in u-boot. I have aklready fixed it.
Quoted 4 lines
Quoted 1 line
+CONFIG_SYS_TEXT_BASE =
0xA0000000NAK. Please move
CONFIG_SYS_TEXT_BASEinto board config file and ditch config.mk
Thanks, I have understood now how it works.
Quoted 11 lines
MAKEALL
Quoted 9 lines
MAKEALL +8
-0+int checkboard(void) +{ + u32 system_rev = get_cpu_rev(); + u32 board_rev = 0; + struct ccm_regs *ccm = + (struct ccm_regs *)IMX_CCM_BASE; + + puts("Board: MX35 3STACK ");Is this the correct board name?
I will change it as MX35PDK
Quoted 16 lines
MAKEALL
Quoted 8 lines
MAKEALL +7
-0+ board_rev = board_detect(); + + /* Print board revision */ + if (board_rev) + puts("2.0"); + else + puts("1.0");Maybe
board_detect()could return the board revision sirectly, so you can use a single printf for all this, like:printf("Board: mx35pdk %d.0", board_detect());?
Quoted 8 lines
MAKEALL
Quoted 6 lines
MAKEALL +6
-0+ /* Print CPU revision */ + puts(" i.MX35 "); + if (system_rev & CHIP_REV_2_0) + puts("2.0 ["); + else + puts("1.0 [");Eventually something similar could / should be done here?
Yes, this should be (get_cpu_rev() & CHIP_REV_2_0)
Quoted 9 lines
...
MAKEALL
Quoted 6 lines
MAKEALL +6
-0+NAND partitions can be recognized enabling in kernel CONFIG_MTD_REDBOOT_PARTS. +For this board, CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK should be set to 2. + +However, the setup in redboot is not correct and does not use the whole flash. + +Better solution is to use the kernel parameter mtdparts. Here the resulting script to be defined in RedBoot with fconfig:Lines too long. Please fix globally (at least in text).
Ok
Quoted 11 lines
...
Quoted 1 line
+#define
CONFIG_EXTRA_ENV_SETTINGS\...
MAKEALL
Quoted 3 lines
MAKEALL +3
-0+ "uboot=u-boot.bin\0" \ + "kernel_addr_r=0x80800000\0" \ + "kernel=uImage\0" \Default locations are "<boardname>/u-boot.bin" resp. "<boardname>/uImage".
Quoted 8 lines
MAKEALL
Quoted 5 lines
MAKEALL +5
-0+ "prg_uboot=tftpboot ${loadaddr} ${uboot};" \ + "protect off ${uboot_addr} 0xa003ffff;" \ + "erase ${uboot_addr} 0xa003ffff;" \ + "cp.b ${loadaddr} ${uboot_addr} ${filesize};" \ + "setenv filesize;saveenv\0"We usually split this into "load" and "update" steps, so you don;t automatically erase your flash even when the download failed.
I will change it.
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-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================
PATCH 1/7 Add support for MX35 processor
In reply to Stefano BabicDear Stefano Babic,
Quoted 4 lines · In message <[email protected]> you wrote:
The patch adds basic support for the Freescale's i.MX35 (arm1136 based) processor.
Signed-off-by Stefano Babic <[email protected]>
...
arch/arm/cpu/arm1136/mx35/generic.c line 70
Quoted 8 lines
arch/arm/cpu/arm1136/mx35/generic.c new file +8
-0+u32 get_cpu_rev (void ) +{ +int reg; +struct iim_regs *iim = + (struct iim_regs *)IIM_BASE_ADDR ; + reg =readl (&iim->iim_srev); +if (!reg) { + reg =__REG (ROMPATCH_REV );
__REG()?
NAK. Please use I/O accessors. Please fix globally.
arch/arm/cpu/arm1136/mx35/generic.c line 394
Quoted 6 lines
arch/arm/cpu/arm1136/mx35/generic.c new file +6
-0+void imx_get_mac_from_fuse (unsigned char *mac) +{ +int i; + +for (i =0 ; i <6 ; i++) + mac[i] =0 ;
memset(mac, 0, 6);
?
Quoted 9 lines
arch/arm/cpu/arm1136/mx35/iomux.c new file +9
-0+/* +* IOMUX register (base) addresses +*/ +enum iomux_reg_addr { +IOMUXGPR =IOMUXC_BASE_ADDR , +/*!< General purpose */ +IOMUXSW_MUX_CTL =IOMUXC_BASE_ADDR +4 , +/*!< MUX control */ +IOMUXSW_MUX_END =IOMUXC_BASE_ADDR +0x324 ,
arch/arm/cpu/arm1136/mx35/iomux.c line 46
Quoted 10 lines
arch/arm/cpu/arm1136/mx35/iomux.c new file +10
-0+/*!< last MUX control register */ +IOMUXSW_PAD_CTL =IOMUXC_BASE_ADDR +0x328 , +/*!< Pad control */ +IOMUXSW_PAD_END =IOMUXC_BASE_ADDR +0x794 , +/*!< last Pad control register */ +IOMUXSW_INPUT_CTL =IOMUXC_BASE_ADDR +0x7AC , +/*!< input select register */ + IOMUXSW_INPUT_END = IOMUXC_BASE_ADDR + 0x9F4, + /*!< last input select register */ +};
What do these "!<" markers mean?
Quoted 7 lines
+/*
+ * This function is used to configure a pin through the IOMUX module.
+ * FIXED ME: for backward compatible. Will be static function!
+ * @param pin a pin number as defined in \b #iomux_pin_name_t
+ * @param cfg an output function as defined in \b #iomux_pin_cfg_t
+ *
+ * @return 0 if successful; Non-zero otherwise
When does the "otherwise" happen?
arch/arm/cpu/arm1136/mx35/iomux.c line 73
Quoted 12 lines
+ */
arch/arm/cpu/arm1136/mx35/iomux.c new file +11
-0+static int iomux_config_mux (iomux_pin_name_t pin,iomux_pin_cfg_t cfg) +{ +u32 mux_reg =PIN_TO_IOMUX_MUX (pin); + +if (mux_reg !=NON_MUX_I ) { + mux_reg +=IOMUXGPR ; +__REG (mux_reg) = cfg; + } + +return 0 ; +}
Should we make this function return "void" ?
arch/arm/cpu/arm1136/mx35/timer.c line 100
Quoted 2 lines
arch/arm/cpu/arm1136/mx35/timer.c new file +2
-0+/* delay x useconds AND perserve advance timstamp value */ +/* GPTCNT is now supposed to tick 1 by 1 us. */
s/perserve/preserve/ ?
Incorrect multiline comment style.
Quoted 5 lines
arch/arm/include/asm/arch-mx35/imx-regs.h new file +0
-0
...
arch/arm/include/asm/arch-mx35/imx-regs.h line 31
Quoted 3 lines
arch/arm/include/asm/arch-mx35/imx-regs.h new file +3
-0+#define __REG (x) (*((volatile u32 *)(x))) +#define __REG16 (x) (*((volatile u16 *)(x))) +#define __REG8 (x) (*((volatile u8 *)(x)))
NAK!! Please use I/O accessors. Please fix globally.
Quoted 6 lines
arch/arm/include/asm/arch-mx35/imx-regs.h new file +6
-0+/* CCM */ +#define CLKCTL_CCMR 0x00 +#define CLKCTL_PDR0 0x04 +#define CLKCTL_PDR1 0x08 +#define CLKCTL_PDR2 0x0C +#define CLKCTL_PDR3 0x10
arch/arm/include/asm/arch-mx35/imx-regs.h line 164
Quoted 10 lines
arch/arm/include/asm/arch-mx35/imx-regs.h new file +10
-0+#define CLKCTL_PDR4 0x14 +#define CLKCTL_RCSR 0x18 +#define CLKCTL_MPCTL 0x1C +#define CLKCTL_PPCTL 0x20 +#define CLKCTL_ACMR 0x24 +#define CLKCTL_COSR 0x28 +#define CLKCTL_CGR0 0x2C +#define CLKCTL_CGR1 0x30 +#define CLKCTL_CGR2 0x34 +#define CLKCTL_CGR3 0x38
NAK!! Please use C struct. Please fix globally.
arch/arm/include/asm/arch-mx35/imx-regs.h line 355
Quoted 3 lines
arch/arm/include/asm/arch-mx35/imx-regs.h new file +3
-0+#if 0 +extern unsigned int mxc_get_clock (enum mxc_clock clk); +#endif
Please remove such dead code. Please fix globally.
arch/arm/include/asm/arch-mx35/imx-regs.h line 362
Quoted 7 lines
arch/arm/include/asm/arch-mx35/imx-regs.h new file +7
-0+extern unsigned int get_board_rev (void ); +extern int is_soc_rev (int rev); +extern int sdhc_init (void ); + +#define fixup_before_linux \ + { \ + volatile unsigned long *l2cc_ctl = (unsigned long *)0x30000100;\
0x30000100 ? Don't we have a #define for it?
Quoted 4 lines
+/*
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
Please fix these license headers - all of these. They say where you can _get_ License Version 2 or later, but they don't say which version actually applies. Please make clear that License v2+ applies.
Best regards,
Wolfgang Denk
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-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de By the way, ALL software projects are done by iterative prototyping. Some companies call their prototypes "releases", that's all.
PATCH 1/7 Add support for MX35 processor
Quoted 5 lines · Wolfgang Denk
Dear Stefano Babic,
arch/arm/cpu/arm1136/mx35/generic.c line 70
Quoted 2 lines
arch/arm/cpu/arm1136/mx35/generic.c new file +2
-0+if (!reg) { + reg =__REG (ROMPATCH_REV );
__REG()?
It should not be..
Quoted 2 lines
NAK. Please use I/O accessors. Please fix globally.
I supposed to have already replaced all of them, but I have missed some of them.
Quoted 10 lines
arch/arm/cpu/arm1136/mx35/generic.c line 394
Quoted 6 lines
arch/arm/cpu/arm1136/mx35/generic.c new file +6
-0+void imx_get_mac_from_fuse (unsigned char *mac) +{ +int i; + +for (i =0 ; i <6 ; i++) + mac[i] =0 ;memset(mac, 0, 6);?
I think your question mark is related to the fact that it is not so clear why I set the mac address to all zero. At first glance, it makes no sense.
However, the reason is that the i.MX35 does not have a MAC address stored in its internal fuses as other i.MX processors (i.MX27/i.MX25/i.MX51), but I want to expose the same interface for all i.MX processors. In this way, I can avoid nasty #ifdef in code. As I can see in u-boot code, the exception now in code is the i.MX31, that was the first i.MX processor added to mainline. It has still a lot of own functions (I mean, something like mx31_*, such as mx31_gpio. mx31_iomux, and so on).
Quoted 1 line
What do these "!<" markers mean?
They have no useful meaning and I must drop them.
Quoted 11 lines
Quoted 8 lines
+/*
+ * This function is used to configure a pin through the IOMUX module.
+ * FIXED ME: for backward compatible. Will be static function!
+ * @param pin a pin number as defined in \b #iomux_pin_name_t
+ * @param cfg an output function as defined in \b #iomux_pin_cfg_t
+ *
+ * @return 0 if successful; Non-zero otherwiseWhen does the "otherwise" happen?
Quoted 14 lines
arch/arm/cpu/arm1136/mx35/iomux.c line 73
Quoted 12 lines
+ */
arch/arm/cpu/arm1136/mx35/iomux.c new file +11
-0+static int iomux_config_mux (iomux_pin_name_t pin,iomux_pin_cfg_t cfg) +{ +u32 mux_reg =PIN_TO_IOMUX_MUX (pin); + +if (mux_reg !=NON_MUX_I ) { + mux_reg +=IOMUXGPR ; +__REG (mux_reg) = cfg; + } + +return 0 ; +}Should we make this function return "void" ?
iomux_config_mux is already void for mx5 processors. Of course, it must return void for MX35, too. And mxc_request_mux as well.
I will check all these functions to remove inconsistencies.
Quoted 7 lines
arch/arm/cpu/arm1136/mx35/timer.c line 100
Quoted 3 lines
arch/arm/cpu/arm1136/mx35/timer.c new file +2
-0+/* delay x useconds AND perserve advance timstamp value */ +/* GPTCNT is now supposed to tick 1 by 1 us. */ s/perserve/preserve/ ?
Incorrect multiline comment style.
Thanks, I will fix it.
Quoted 7 lines
Quoted 6 lines
arch/arm/include/asm/arch-mx35/imx-regs.h new file +0
-0...
Quoted 5 lines
arch/arm/include/asm/arch-mx35/imx-regs.h line 31
Quoted 3 lines
arch/arm/include/asm/arch-mx35/imx-regs.h new file +3
-0+#define __REG (x) (*((volatile u32 *)(x))) +#define __REG16 (x) (*((volatile u16 *)(x))) +#define __REG8 (x) (*((volatile u8 *)(x)))NAK!! Please use I/O accessors. Please fix globally.
Of course - I will fix it.
Quoted 11 lines
Quoted 11 lines
arch/arm/include/asm/arch-mx35/imx-regs.h new file +10
-0+/* CCM */ +#define CLKCTL_CCMR 0x00 +#define CLKCTL_PDR0 0x04 +#define CLKCTL_PDR1 0x08 +#define CLKCTL_PDR2 0x0C +#define CLKCTL_PDR3 0x10 +#define CLKCTL_PDR4 0x14 +#define CLKCTL_RCSR 0x18 +#define CLKCTL_MPCTL 0x1C +#define CLKCTL_PPCTL 0x20
Quoted 8 lines
arch/arm/include/asm/arch-mx35/imx-regs.h line 164
Quoted 6 lines
arch/arm/include/asm/arch-mx35/imx-regs.h new file +6
-0+#define CLKCTL_ACMR 0x24 +#define CLKCTL_COSR 0x28 +#define CLKCTL_CGR0 0x2C +#define CLKCTL_CGR1 0x30 +#define CLKCTL_CGR2 0x34 +#define CLKCTL_CGR3 0x38NAK!! Please use C struct. Please fix globally.
No, this not. I have already set a structure for the Clock Module, that it is used in most part of code (ccm_regs). However, these offsets are used in the assembly file (lowlevel_init.S), and I cannot use the structure. It seems to me the only structure needed, and it seems to me not necessary to add an asm-offsets.h only for it. For this reason. I let it in imx-regs.h
Quoted 10 lines
arch/arm/include/asm/arch-mx35/imx-regs.h line 362
Quoted 8 lines
arch/arm/include/asm/arch-mx35/imx-regs.h new file +7
-0+extern unsigned int get_board_rev (void ); +extern int is_soc_rev (int rev); +extern int sdhc_init (void ); + +#define fixup_before_linux \ + { \ + volatile unsigned long *l2cc_ctl = (unsigned long *)0x30000100;\
0x30000100? Don't we have a #define for it?
I have already removed the usage of this macro, I forget to drop its define. Thanks, I will remove it.
Quoted 3 lines
Please fix these license headers - all of these. They say where you can _get_ License Version 2 or later, but they don't say which version actually applies. Please make clear that License v2+ applies.
I will check this issue globally.
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-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================
PATCH 1/7 Add support for MX35 processor
Dear Stefano Babic,
Quoted 10 lines · In message <[email protected]> you wrote:
Quoted 10 lines
arch/arm/cpu/arm1136/mx35/generic.c line 394
Quoted 7 lines
arch/arm/cpu/arm1136/mx35/generic.c new file +6
-0+void imx_get_mac_from_fuse (unsigned char *mac) +{ +int i; + +for (i =0 ; i <6 ; i++) + mac[i] =0 ;memset(mac, 0, 6);
Quoted 5 lines
Quoted 1 line
?
I think your question mark is related to the fact that it is not so clear why I set the mac address to all zero. At first glance, it makes no sense.
No, I wonder why code a loop when a simple memset() does the same.
Quoted 3 lines
Quoted 1 line
What do these "!<" markers mean?
They have no useful meaning and I must drop them.
There are other such cryptic markers - eventually from some doc generating tool.
Quoted 19 lines
Quoted 10 lines
Quoted 10 lines
arch/arm/include/asm/arch-mx35/imx-regs.h new file +10
-0+/* CCM */ +#define CLKCTL_CCMR 0x00 +#define CLKCTL_PDR0 0x04 +#define CLKCTL_PDR1 0x08 +#define CLKCTL_PDR2 0x0C +#define CLKCTL_PDR3 0x10 +#define CLKCTL_PDR4 0x14 +#define CLKCTL_RCSR 0x18 +#define CLKCTL_MPCTL 0x1C +#define CLKCTL_PPCTL 0x20Quoted 8 lines
arch/arm/include/asm/arch-mx35/imx-regs.h line 164
Quoted 6 lines
arch/arm/include/asm/arch-mx35/imx-regs.h new file +6
-0+#define CLKCTL_ACMR 0x24 +#define CLKCTL_COSR 0x28 +#define CLKCTL_CGR0 0x2C +#define CLKCTL_CGR1 0x30 +#define CLKCTL_CGR2 0x34 +#define CLKCTL_CGR3 0x38NAK!! Please use C struct. Please fix globally.
Quoted 1 line
No, this not. I have already set a structure for the Clock Module, that
If you already have a struct, then drop these duplication.
Quoted 5 lines
it is used in most part of code (
ccm_regs). However, these offsets are used in the assembly file (lowlevel_init.S), and I cannot use the structure. It seems to me the only structure needed, and it seems to me not necessary to add anasm-offsets.honly for it. For this reason. I let it inimx-regs.h
Such duplication of information is just a source of errors. And asm-offsets.h has been provided exactly for the purpose to avoid such #defines. Please use it.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Those who hate and fight must stop themselves -- otherwise it is not stopped. -- Spock, "Day of the Dove", stardate unknown
PATCH 1/7 Add support for MX35 processor
Quoted 1 line · Wolfgang Denk
No, I wonder why code a loop when a simple
memset()does the same.
Ok, I get the point - you are right, I will replace the code with memset.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
What do these "!<" markers mean?
They have no useful meaning and I must drop them.
There are other such cryptic markers - eventually from some doc generating tool.
I will check in all patches, and I will remove them.
Quoted 3 lines
Such duplication of information is just a source of errors. And
asm-offsets.hhas been provided exactly for the purpose to avoid such #defines. Please use it.
Ok, understood. I will move these defines in asm-offsets.h
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-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================
PATCH 1/7 Add support for MX35 processor
In reply to Wolfgang DenkHi Wolfgang,
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
What do these "!<" markers mean?
They have no useful meaning and I must drop them.
There are other such cryptic markers - eventually from some doc generating tool.
Correct - I'm pretty sure this was intended for doxygen.
Cheers
Detlev
Signature · 7 lines
Some people seem to think that C is a real programming language, but they are sadly mistaken. It really is about writing almost-portable assembly language [...] -- Linus Torvalds 10404265599082718160noreply at blogger.com -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de