Hello Jens, Jens Scharsig wrote: > * add support for board VL+MA2SC > * adds vl_ma2sc_config for standard NOR boot configuration > * adds vl_ma2sc_ram_config for RAM load configuration > > Signed-off-by: Jens Scharsig <e...@bus-elektronik.de> > --- > MAINTAINERS | 1 + > board/BuS/vl_ma2sc/Makefile | 54 ++++ > board/BuS/vl_ma2sc/vl_ma2sc.c | 596 > +++++++++++++++++++++++++++++++++++++++++ > boards.cfg | 2 + > include/configs/vl_ma2sc.h | 466 ++++++++++++++++++++++++++++++++ > 5 files changed, 1119 insertions(+), 0 deletions(-) > create mode 100644 board/BuS/vl_ma2sc/Makefile > create mode 100644 board/BuS/vl_ma2sc/vl_ma2sc.c > create mode 100644 include/configs/vl_ma2sc.h
Please check your patch with tools/checkpatch, it shows a lot of warnings: [hs@pollux u-boot]$ ./tools/checkpatch.pl index.html [...] total: 17 errors, 13 warnings, 1131 lines checked > diff --git a/board/BuS/vl_ma2sc/vl_ma2sc.c b/board/BuS/vl_ma2sc/vl_ma2sc.c > new file mode 100644 > index 0000000..dfaf2cb > --- /dev/null > +++ b/board/BuS/vl_ma2sc/vl_ma2sc.c > @@ -0,0 +1,596 @@ > +/* > + * Miscelaneous platform dependent initialisations > + */ > + empty line not needed. [...] > +#ifdef CONFIG_CMD_NAND > +static void vl_ma2sc_nand_hw_init(void) > +{ > + unsigned long csa; > + at91_smc_t *smc = (at91_smc_t *) ATMEL_BASE_SMC0; > + at91_matrix_t *matrix = (at91_matrix_t *) ATMEL_BASE_MATRIX; > + at91_pmc_t *pmc = (at91_pmc_t *) ATMEL_BASE_PMC; > + > + at91_set_pio_output(AT91_PIO_PORTA, 13, 1); /* CAN_TX -> H */ > + at91_set_pio_output(AT91_PIO_PORTA, 12, 1); /* CAN_STB -> H */ > + at91_set_pio_output(AT91_PIO_PORTA, 11, 1); /* CAN_EN -> H */ > + > + /* Enable CS3 */ > + csa = readl(&matrix->csa[0]) | AT91_MATRIX_CSA_EBI_CS3A; > + writel(csa, &matrix->csa[0]); > + > + /* Configure SMC CS3 for NAND/SmartMedia */ > +#if 1 > + writel(AT91_SMC_SETUP_NWE(1) | AT91_SMC_SETUP_NCS_WR(0) | > + AT91_SMC_SETUP_NRD(1) | AT91_SMC_SETUP_NCS_RD(0), > + &smc->cs[3].setup); > + > + writel(AT91_SMC_PULSE_NWE(3) | AT91_SMC_PULSE_NCS_WR(3) | > + AT91_SMC_PULSE_NRD(3) | AT91_SMC_PULSE_NCS_RD(3), > + &smc->cs[3].pulse); > + > + writel(AT91_SMC_CYCLE_NWE(5) | AT91_SMC_CYCLE_NRD(5), > + &smc->cs[3].cycle); > + writel(AT91_SMC_MODE_RM_NRD | AT91_SMC_MODE_WM_NWE | > + AT91_SMC_MODE_DBW_8 | > + AT91_SMC_MODE_TDF_CYCLE(2), > + &smc->cs[3].mode); > +#else don't add dead code. > +#ifdef CONFIG_MACB > +static void vl_ma2sc_macb_hw_init(void) > +{ > + unsigned long erstl; > + at91_pmc_t *pmc = (at91_pmc_t *) ATMEL_BASE_PMC; > + at91_pio_t *pio = (at91_pio_t *) ATMEL_BASE_PIO; > + at91_rstc_t *rstc = (at91_rstc_t *) ATMEL_BASE_RSTC; > + /* Enable clock */ > + writel(1 << ATMEL_ID_EMAC, &pmc->pcer); > + > + /* > + * Disable pull-up on: > + * RXDV (PC25) => PHY normal mode (not Test mode) > + * ERX0 (PE25) => PHY ADDR0 > + * ERX1 (PE26) => PHY ADDR1 => PHYADDR = 0x0 > + * > + * PHY has internal pull-down > + */ > + > + writel((1 << 25), &pio->pioc.pudr); > + writel((1 << 25) | (1 << 26), &pio->pioe.pudr); please use defines here for 25 and 26 [...] > +#ifdef CONFIG_MISC_INIT_R > + > +int misc_init_r(void) > +{ > + uchar buffer[8]; > + at91_pio_t *pio = (at91_pio_t *) ATMEL_BASE_PIO; > + u32 pin; > + > + buffer[0] = 0x04; > + buffer[1] = 0x00; > + if (i2c_write(0x68, 0x0E, 1, buffer, 2) != 0) > + puts("error reseting rtc clock\n\0"); > + > + /* HWversion lesen */ no german please ;-) > + no empty line here needed. [...] > diff --git a/include/configs/vl_ma2sc.h b/include/configs/vl_ma2sc.h > new file mode 100644 > index 0000000..d9c2a2d > --- /dev/null > +++ b/include/configs/vl_ma2sc.h > @@ -0,0 +1,466 @@ [...] > + > +#endif > + > +/* EOF */ This comment is not needed. bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot