On 09/12/2011 06:06 AM, Marek Vasut wrote: > Signed-off-by: Marek Vasut <marek.va...@gmail.com> > Cc: Stefano Babic <sba...@denx.de> > Cc: Wolfgang Denk <w...@denx.de> > Cc: Detlev Zundel <d...@denx.de> > ---
Hi Marek, > + > +#include <common.h> > +#include <netdev.h> > +#include <asm/errno.h> > +#include <asm/io.h> > +#include <asm/arch/iomux.h> > +#include <asm/arch/imx-regs.h> > + > +#if defined(CONFIG_MX23) > +#define PINCTRL_BANKS 3 > +#define PINCTRL_DOUT(n) (0x0500 + ((n) * 0x10)) > +#define PINCTRL_DIN(n) (0x0600 + ((n) * 0x10)) > +#define PINCTRL_DOE(n) (0x0700 + ((n) * 0x10)) > +#define PINCTRL_PIN2IRQ(n) (0x0800 + ((n) * 0x10)) > +#define PINCTRL_IRQEN(n) (0x0900 + ((n) * 0x10)) > +#define PINCTRL_IRQSTAT(n) (0x0c00 + ((n) * 0x10)) > +#elif defined(CONFIG_MX28) > +#define PINCTRL_BANKS 5 > +#define PINCTRL_DOUT(n) (0x0700 + ((n) * 0x10)) > +#define PINCTRL_DIN(n) (0x0900 + ((n) * 0x10)) > +#define PINCTRL_DOE(n) (0x0b00 + ((n) * 0x10)) > +#define PINCTRL_PIN2IRQ(n) (0x1000 + ((n) * 0x10)) > +#define PINCTRL_IRQEN(n) (0x1100 + ((n) * 0x10)) > +#define PINCTRL_IRQSTAT(n) (0x1400 + ((n) * 0x10)) > +#else > +#error "Please select CONFIG_MX23 or CONFIG_MX28" > +#endif Only to remark: I know that at the moment we have not CONFIG_MX23 in u-boot and the MX23 part is dead code. However, the added part is very small and clear visible, and I agree to let it in code even if it breaks this u-boot rule. Acked-by: Stefano Babic <sba...@denx.de> Best regards, Stefano Babic -- ===================================================================== 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: off...@denx.de ===================================================================== _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot