From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Andreas_Bie=DFmann?= Date: Mon, 21 Feb 2011 14:09:31 +0100 Subject: [U-Boot] [PATCH 18/18] Make the at91sam9263ek compile again. In-Reply-To: References: <0F3EF05CA2A70E43B140EF090B9F97183EFE01B8@CERNXCHG22.cern.ch> Message-ID: <4D62640B.4050804@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Remy Bohmer, Am 21.02.2011 12:00, schrieb Remy Bohmer: >> diff --git a/board/atmel/at91sam9263ek/led.c b/board/atmel/at91sam9263ek/led.c >> index fa1f05b..b3adc51 100644 >> --- a/board/atmel/at91sam9263ek/led.c >> +++ b/board/atmel/at91sam9263ek/led.c >> @@ -23,25 +23,22 @@ >> */ >> >> #include >> -#include >> -#include >> -#include >> #include >> -#include >> +#include >> >> void coloured_LED_init(void) >> { >> /* Enable clock */ >> at91_pmc_t *pmc = (at91_pmc_t *) AT91_PMC_BASE; >> >> - writel(1 << AT91SAM9263_ID_PIOB | 1 << AT91SAM9263_ID_PIOCDE, >> + writel(1 << AT91_ID_PIOB | 1 << AT91_ID_PIOCDE, >> &pmc->pcer); > > Enable all the GPIO peripheral clocks in a board_early_init_f() routine. > Not here. No, that is wrong! board_early_init_f() is too late! coloured_LED stuff is used (currently) in early init stage for debugging. Therefore we need to initialize the clocks here. Nevertheless it should preserve old settings in PCER! If we need these coloured_LED stuff beside the other LED implementation's is another question. regards Andreas Bie?mann