From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Andreas_Bie=DFmann?= Date: Sun, 12 May 2013 13:28:16 +0200 Subject: [U-Boot] [Patch v2 1/4] USB: ohci-at91: support sama5d3x devices In-Reply-To: <1363068932-2485-2-git-send-email-voice.shen@atmel.com> References: <1363068932-2485-1-git-send-email-voice.shen@atmel.com> <1363068932-2485-2-git-send-email-voice.shen@atmel.com> Message-ID: <518F7CD0.8090701@googlemail.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 Bo Shen, On 12.03.2013 07:15, Bo Shen wrote: > Add OHCI support for sama5d3x devices can you please rebase this patch and send again? > > Signed-off-by: Bo Shen > --- > change in v2: > - change #if defined to #ifdef for sama5d3 > --- > drivers/usb/host/ohci-at91.c | 14 ++++++++++++-- > 1 file changed, 12 insertions(+), 2 deletions(-) > > diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c > index efd711d..086cd0f 100644 > --- a/drivers/usb/host/ohci-at91.c > +++ b/drivers/usb/host/ohci-at91.c > @@ -42,7 +42,7 @@ int usb_cpu_init(void) > while ((readl(&pmc->sr) & AT91_PMC_LOCKB) != AT91_PMC_LOCKB) > ; > #elif defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45) || \ > - defined(CONFIG_AT91SAM9X5) > + defined(CONFIG_AT91SAM9X5) || defined(CONFIG_SAMA5D3) > /* Enable UPLL */ > writel(readl(&pmc->uckr) | AT91_PMC_UPLLEN | AT91_PMC_BIASEN, > &pmc->uckr); > @@ -54,7 +54,12 @@ int usb_cpu_init(void) > #endif > > /* Enable USB host clock. */ > +#ifdef CONFIG_SAMA5D3 > + writel(1 << (ATMEL_ID_UHP - 32), &pmc->pcer1); Please reorder the patches so that pmc->pcer1 is declared before used. Best regards Andreas Bie?mann