* [U-Boot] [PATCH] AT91: Use AT91_CPU_CLOCK in displays
@ 2008-10-21 16:07 ` Stelian Pop
2008-11-06 19:29 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 15+ messages in thread
From: Stelian Pop @ 2008-10-21 16:07 UTC (permalink / raw)
To: u-boot
Introduce AT91_CPU_CLOCK and use it for displaying the CPU
speed in the LCD driver.
Also make AT91_MAIN_CLOCK and AT91_MASTER_CLOCK reflect the
corresponding board clocks.
Signed-off-by: Stelian Pop <stelian@popies.net>
---
common/lcd.c | 2 +-
include/configs/at91cap9adk.h | 5 +++--
include/configs/at91sam9260ek.h | 6 ++++--
include/configs/at91sam9261ek.h | 5 +++--
include/configs/at91sam9263ek.h | 5 +++--
include/configs/at91sam9rlek.h | 5 +++--
6 files changed, 17 insertions(+), 11 deletions(-)
diff --git a/common/lcd.c b/common/lcd.c
index 25f8664..c6ced91 100644
--- a/common/lcd.c
+++ b/common/lcd.c
@@ -837,7 +837,7 @@ static void *lcd_logo (void)
sprintf (info, "%s CPU at %s MHz",
AT91_CPU_NAME,
- strmhz(temp, AT91_MAIN_CLOCK));
+ strmhz(temp, AT91_CPU_CLOCK));
lcd_drawchars (LCD_INFO_X, LCD_INFO_Y + VIDEO_FONT_HEIGHT * 3,
(uchar *)info, strlen(info));
diff --git a/include/configs/at91cap9adk.h b/include/configs/at91cap9adk.h
index fd06245..1dbd3a4 100644
--- a/include/configs/at91cap9adk.h
+++ b/include/configs/at91cap9adk.h
@@ -29,8 +29,9 @@
/* ARM asynchronous clock */
#define AT91_CPU_NAME "AT91CAP9"
-#define AT91_MAIN_CLOCK 200000000 /* from 12 MHz crystal */
-#define AT91_MASTER_CLOCK 100000000 /* peripheral = main / 2 */
+#define AT91_MAIN_CLOCK 12000000 /* 12 MHz crystal */
+#define AT91_MASTER_CLOCK 100000000 /* peripheral */
+#define AT91_CPU_CLOCK 200000000 /* cpu */
#define CFG_HZ 1000000 /* 1us resolution */
#define AT91_SLOW_CLOCK 32768 /* slow clock */
diff --git a/include/configs/at91sam9260ek.h b/include/configs/at91sam9260ek.h
index 41d1da3..cb8857a 100644
--- a/include/configs/at91sam9260ek.h
+++ b/include/configs/at91sam9260ek.h
@@ -28,8 +28,10 @@
#define __CONFIG_H
/* ARM asynchronous clock */
-#define AT91_MAIN_CLOCK 198656000 /* from 18.432 MHz crystal */
-#define AT91_MASTER_CLOCK 99328000 /* peripheral = main / 2 */
+#define AT91_CPU_NAME "AT91SAM9260"
+#define AT91_MAIN_CLOCK 18432000 /* 18.432 MHz crystal */
+#define AT91_MASTER_CLOCK 100000000 /* peripheral */
+#define AT91_CPU_CLOCK 200000000 /* cpu */
#define CFG_HZ 1000000 /* 1us resolution */
#define AT91_SLOW_CLOCK 32768 /* slow clock */
diff --git a/include/configs/at91sam9261ek.h b/include/configs/at91sam9261ek.h
index 80c3b03..92e134d 100644
--- a/include/configs/at91sam9261ek.h
+++ b/include/configs/at91sam9261ek.h
@@ -29,8 +29,9 @@
/* ARM asynchronous clock */
#define AT91_CPU_NAME "AT91SAM9261"
-#define AT91_MAIN_CLOCK 198656000 /* from 18.432 MHz crystal */
-#define AT91_MASTER_CLOCK 99328000 /* peripheral = main / 2 */
+#define AT91_MAIN_CLOCK 18432000 /* 18.432 MHz crystal */
+#define AT91_MASTER_CLOCK 100000000 /* peripheral */
+#define AT91_CPU_CLOCK 200000000 /* cpu */
#define CFG_HZ 1000000 /* 1us resolution */
#define AT91_SLOW_CLOCK 32768 /* slow clock */
diff --git a/include/configs/at91sam9263ek.h b/include/configs/at91sam9263ek.h
index b4368ef..c914571 100644
--- a/include/configs/at91sam9263ek.h
+++ b/include/configs/at91sam9263ek.h
@@ -29,8 +29,9 @@
/* ARM asynchronous clock */
#define AT91_CPU_NAME "AT91SAM9263"
-#define AT91_MAIN_CLOCK 199919000 /* from 16.367 MHz crystal */
-#define AT91_MASTER_CLOCK 99959500 /* peripheral = main / 2 */
+#define AT91_MAIN_CLOCK 16367660 /* 16.367 MHz crystal */
+#define AT91_MASTER_CLOCK 100000000 /* peripheral */
+#define AT91_CPU_CLOCK 200000000 /* cpu */
#define CFG_HZ 1000000 /* 1us resolution */
#define AT91_SLOW_CLOCK 32768 /* slow clock */
diff --git a/include/configs/at91sam9rlek.h b/include/configs/at91sam9rlek.h
index 32168dc..9bcd2db 100644
--- a/include/configs/at91sam9rlek.h
+++ b/include/configs/at91sam9rlek.h
@@ -29,8 +29,9 @@
/* ARM asynchronous clock */
#define AT91_CPU_NAME "AT91SAM9RL"
-#define AT91_MAIN_CLOCK 200000000 /* from 12.000 MHz crystal */
-#define AT91_MASTER_CLOCK 100000000 /* peripheral = main / 2 */
+#define AT91_MAIN_CLOCK 12000000 /* 12 MHz crystal */
+#define AT91_MASTER_CLOCK 100000000 /* peripheral */
+#define AT91_CPU_CLOCK 200000000 /* cpu */
#define CFG_HZ 1000000 /* 1us resolution */
#define AT91_SLOW_CLOCK 32768 /* slow clock */
--
1.5.4.3
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH] AT91: Use AT91_CPU_CLOCK in displays
2008-10-21 16:07 ` [U-Boot] [PATCH] AT91: Use AT91_CPU_CLOCK in displays Stelian Pop
@ 2008-11-06 19:29 ` Jean-Christophe PLAGNIOL-VILLARD
2008-11-06 21:55 ` Stelian Pop
0 siblings, 1 reply; 15+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2008-11-06 19:29 UTC (permalink / raw)
To: u-boot
On 18:07 Tue 21 Oct , Stelian Pop wrote:
> Introduce AT91_CPU_CLOCK and use it for displaying the CPU
> speed in the LCD driver.
>
> Also make AT91_MAIN_CLOCK and AT91_MASTER_CLOCK reflect the
> corresponding board clocks.
>
> Signed-off-by: Stelian Pop <stelian@popies.net>
> ---
> common/lcd.c | 2 +-
> include/configs/at91cap9adk.h | 5 +++--
> include/configs/at91sam9260ek.h | 6 ++++--
> include/configs/at91sam9261ek.h | 5 +++--
> include/configs/at91sam9263ek.h | 5 +++--
> include/configs/at91sam9rlek.h | 5 +++--
> 6 files changed, 17 insertions(+), 11 deletions(-)
failed to apply
could you rebase it against u-boot-at91?
Best Regards,
J.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH] AT91: Use AT91_CPU_CLOCK in displays
2008-11-06 19:29 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2008-11-06 21:55 ` Stelian Pop
2008-11-06 22:51 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 15+ messages in thread
From: Stelian Pop @ 2008-11-06 21:55 UTC (permalink / raw)
To: u-boot
Le jeudi 06 novembre 2008 ? 20:29 +0100, Jean-Christophe
PLAGNIOL-VILLARD a ?crit :
> On 18:07 Tue 21 Oct , Stelian Pop wrote:
> > Introduce AT91_CPU_CLOCK and use it for displaying the CPU
> > speed in the LCD driver.
> >
> > Also make AT91_MAIN_CLOCK and AT91_MASTER_CLOCK reflect the
> > corresponding board clocks.
> >
> > Signed-off-by: Stelian Pop <stelian@popies.net>
> > ---
> > common/lcd.c | 2 +-
> > include/configs/at91cap9adk.h | 5 +++--
> > include/configs/at91sam9260ek.h | 6 ++++--
> > include/configs/at91sam9261ek.h | 5 +++--
> > include/configs/at91sam9263ek.h | 5 +++--
> > include/configs/at91sam9rlek.h | 5 +++--
> > 6 files changed, 17 insertions(+), 11 deletions(-)
> failed to apply
>
> could you rebase it against u-boot-at91
Here it is.
Thanks,
Stelian.
-----------------------------
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH] AT91: Use AT91_CPU_CLOCK in displays
2008-11-06 21:55 ` Stelian Pop
@ 2008-11-06 22:51 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 15+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2008-11-06 22:51 UTC (permalink / raw)
To: u-boot
On 22:55 Thu 06 Nov , Stelian Pop wrote:
> Le jeudi 06 novembre 2008 ? 20:29 +0100, Jean-Christophe
> PLAGNIOL-VILLARD a ?crit :
> > On 18:07 Tue 21 Oct , Stelian Pop wrote:
> > > Introduce AT91_CPU_CLOCK and use it for displaying the CPU
> > > speed in the LCD driver.
> > >
> > > Also make AT91_MAIN_CLOCK and AT91_MASTER_CLOCK reflect the
> > > corresponding board clocks.
> > >
> > > Signed-off-by: Stelian Pop <stelian@popies.net>
> > > ---
> > > common/lcd.c | 2 +-
> > > include/configs/at91cap9adk.h | 5 +++--
> > > include/configs/at91sam9260ek.h | 6 ++++--
> > > include/configs/at91sam9261ek.h | 5 +++--
> > > include/configs/at91sam9263ek.h | 5 +++--
> > > include/configs/at91sam9rlek.h | 5 +++--
> > > 6 files changed, 17 insertions(+), 11 deletions(-)
> > failed to apply
> >
> > could you rebase it against u-boot-at91
>
> Here it is.
>
> Thanks,
>
> Stelian.
>
Applied to u-boot-at91
Best Regards,
J.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH] AT91: Enable PLLB for USB
@ 2008-10-21 16:07 ` Stelian Pop
2008-10-21 17:54 ` Remy Bohmer
2008-11-06 19:27 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 2 replies; 15+ messages in thread
From: Stelian Pop @ 2008-10-21 16:07 UTC (permalink / raw)
To: u-boot
At least some (old ?) versions of the AT91Bootstrap do not set up the
PLLB correctly to 48 MHz in order to make USB host function correctly.
This patch sets up the PLLB to the same values Linux uses, and makes USB
work ok on the following CPUs:
- AT91CAP9
- AT91SAM9260
- AT91SAM9263
This patch also defines CONFIG_USB_STORAGE and CONFIG_CMD_FAT for all
the relevant AT91CAP9/AT91SAM9 boards.
Signed-off-by: Stelian Pop <stelian@popies.net>
---
cpu/arm926ejs/at91/usb.c | 18 ++++++++++++++++++
include/configs/at91cap9adk.h | 3 +++
include/configs/at91sam9260ek.h | 2 ++
include/configs/at91sam9261ek.h | 1 +
include/configs/at91sam9263ek.h | 2 ++
5 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/cpu/arm926ejs/at91/usb.c b/cpu/arm926ejs/at91/usb.c
index 2a92f73..c02334f 100644
--- a/cpu/arm926ejs/at91/usb.c
+++ b/cpu/arm926ejs/at91/usb.c
@@ -31,6 +31,15 @@
int usb_cpu_init(void)
{
+
+#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
+ defined(CONFIG_AT91SAM9263)
+ /* Enable PLLB */
+ at91_sys_write(AT91_CKGR_PLLBR, CFG_AT91_PLLB);
+ while ((at91_sys_read(AT91_PMC_SR) & AT91_PMC_LOCKB) != AT91_PMC_LOCKB)
+ ;
+#endif
+
/* Enable USB host clock. */
at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_UHP);
#ifdef CONFIG_AT91SAM9261
@@ -51,6 +60,15 @@ int usb_cpu_stop(void)
#else
at91_sys_write(AT91_PMC_SCDR, AT91_PMC_UHP);
#endif
+
+#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
+ defined(CONFIG_AT91SAM9263)
+ /* Disable PLLB */
+ at91_sys_write(AT91_CKGR_PLLBR, 0);
+ while ((at91_sys_read(AT91_PMC_SR) & AT91_PMC_LOCKB) != 0)
+ ;
+#endif
+
return 0;
}
diff --git a/include/configs/at91cap9adk.h b/include/configs/at91cap9adk.h
index 1dbd3a4..47145d8 100644
--- a/include/configs/at91cap9adk.h
+++ b/include/configs/at91cap9adk.h
@@ -32,6 +32,7 @@
#define AT91_MAIN_CLOCK 12000000 /* 12 MHz crystal */
#define AT91_MASTER_CLOCK 100000000 /* peripheral */
#define AT91_CPU_CLOCK 200000000 /* cpu */
+#define CFG_AT91_PLLB 0x10073e01 /* PLLB settings for USB */
#define CFG_HZ 1000000 /* 1us resolution */
#define AT91_SLOW_CLOCK 32768 /* slow clock */
@@ -137,6 +138,8 @@
#define CFG_USB_OHCI_REGS_BASE 0x00700000 /* AT91_BASE_UHP */
#define CFG_USB_OHCI_SLOT_NAME "at91cap9"
#define CFG_USB_OHCI_MAX_ROOT_PORTS 2
+#define CONFIG_USB_STORAGE 1
+#define CONFIG_CMD_FAT 1
#define CFG_LOAD_ADDR 0x72000000 /* load address */
diff --git a/include/configs/at91sam9260ek.h b/include/configs/at91sam9260ek.h
index cb8857a..cd09288 100644
--- a/include/configs/at91sam9260ek.h
+++ b/include/configs/at91sam9260ek.h
@@ -32,6 +32,7 @@
#define AT91_MAIN_CLOCK 18432000 /* 18.432 MHz crystal */
#define AT91_MASTER_CLOCK 100000000 /* peripheral */
#define AT91_CPU_CLOCK 200000000 /* cpu */
+#define CFG_AT91_PLLB 0x107c3e18 /* PLLB settings for USB */
#define CFG_HZ 1000000 /* 1us resolution */
#define AT91_SLOW_CLOCK 32768 /* slow clock */
@@ -123,6 +124,7 @@
#define CFG_USB_OHCI_SLOT_NAME "at91sam9260"
#define CFG_USB_OHCI_MAX_ROOT_PORTS 2
#define CONFIG_USB_STORAGE 1
+#define CONFIG_CMD_FAT 1
#define CFG_LOAD_ADDR 0x22000000 /* load address */
diff --git a/include/configs/at91sam9261ek.h b/include/configs/at91sam9261ek.h
index 92e134d..aa6c6ab 100644
--- a/include/configs/at91sam9261ek.h
+++ b/include/configs/at91sam9261ek.h
@@ -137,6 +137,7 @@
#define CFG_USB_OHCI_SLOT_NAME "at91sam9261"
#define CFG_USB_OHCI_MAX_ROOT_PORTS 2
#define CONFIG_USB_STORAGE 1
+#define CONFIG_CMD_FAT 1
#define CFG_LOAD_ADDR 0x22000000 /* load address */
diff --git a/include/configs/at91sam9263ek.h b/include/configs/at91sam9263ek.h
index c914571..1e9c5c5 100644
--- a/include/configs/at91sam9263ek.h
+++ b/include/configs/at91sam9263ek.h
@@ -32,6 +32,7 @@
#define AT91_MAIN_CLOCK 16367660 /* 16.367 MHz crystal */
#define AT91_MASTER_CLOCK 100000000 /* peripheral */
#define AT91_CPU_CLOCK 200000000 /* cpu */
+#define CFG_AT91_PLLB 0x133a3e8d /* PLLB settings for USB */
#define CFG_HZ 1000000 /* 1us resolution */
#define AT91_SLOW_CLOCK 32768 /* slow clock */
@@ -143,6 +144,7 @@
#define CFG_USB_OHCI_SLOT_NAME "at91sam9263"
#define CFG_USB_OHCI_MAX_ROOT_PORTS 2
#define CONFIG_USB_STORAGE 1
+#define CONFIG_CMD_FAT 1
#define CFG_LOAD_ADDR 0x22000000 /* load address */
--
1.5.4.3
^ permalink raw reply related [flat|nested] 15+ messages in thread* [U-Boot] [PATCH] AT91: Enable PLLB for USB
2008-10-21 16:07 ` [U-Boot] [PATCH] AT91: Enable PLLB for USB Stelian Pop
@ 2008-10-21 17:54 ` Remy Bohmer
2008-10-21 21:20 ` Stelian Pop
2008-11-06 19:27 ` Jean-Christophe PLAGNIOL-VILLARD
1 sibling, 1 reply; 15+ messages in thread
From: Remy Bohmer @ 2008-10-21 17:54 UTC (permalink / raw)
To: u-boot
Hello Stelian,
2008/10/21 Stelian Pop <stelian@popies.net>:
> At least some (old ?) versions of the AT91Bootstrap do not set up the
> PLLB correctly to 48 MHz in order to make USB host function correctly.
>
> This patch sets up the PLLB to the same values Linux uses, and makes USB
> work ok on the following CPUs:
> - AT91CAP9
> - AT91SAM9260
> - AT91SAM9263
Are all your USB stick problems solved by now? Including that stick
that did not work?
I noticed that (with my latest patchset) sometimes a cold boot result
in a non-working USB stick on my boards, but a hard reset always
worked...
I will try your patches tomorrow, but I have one question:
> #define AT91_MAIN_CLOCK 18432000 /* 18.432 MHz crystal */
> #define AT91_MASTER_CLOCK 100000000 /* peripheral */
> #define AT91_CPU_CLOCK 200000000 /* cpu */
Are such nice rounded values possible with that unrounded crystal?
Looking at sam9261 I see:
#define AT91_MAIN_CLOCK 198656000 /* from 18.432 MHz crystal */
#define AT91_MASTER_CLOCK 99328000 /* peripheral = main / 2
This seems more logical to me, but I may be wrong...
Kind Regards,
Remy
>
> This patch also defines CONFIG_USB_STORAGE and CONFIG_CMD_FAT for all
> the relevant AT91CAP9/AT91SAM9 boards.
>
> Signed-off-by: Stelian Pop <stelian@popies.net>
> ---
> cpu/arm926ejs/at91/usb.c | 18 ++++++++++++++++++
> include/configs/at91cap9adk.h | 3 +++
> include/configs/at91sam9260ek.h | 2 ++
> include/configs/at91sam9261ek.h | 1 +
> include/configs/at91sam9263ek.h | 2 ++
> 5 files changed, 26 insertions(+), 0 deletions(-)
>
> diff --git a/cpu/arm926ejs/at91/usb.c b/cpu/arm926ejs/at91/usb.c
> index 2a92f73..c02334f 100644
> --- a/cpu/arm926ejs/at91/usb.c
> +++ b/cpu/arm926ejs/at91/usb.c
> @@ -31,6 +31,15 @@
>
> int usb_cpu_init(void)
> {
> +
> +#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
> + defined(CONFIG_AT91SAM9263)
> + /* Enable PLLB */
> + at91_sys_write(AT91_CKGR_PLLBR, CFG_AT91_PLLB);
> + while ((at91_sys_read(AT91_PMC_SR) & AT91_PMC_LOCKB) != AT91_PMC_LOCKB)
> + ;
> +#endif
> +
> /* Enable USB host clock. */
> at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_UHP);
> #ifdef CONFIG_AT91SAM9261
> @@ -51,6 +60,15 @@ int usb_cpu_stop(void)
> #else
> at91_sys_write(AT91_PMC_SCDR, AT91_PMC_UHP);
> #endif
> +
> +#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
> + defined(CONFIG_AT91SAM9263)
> + /* Disable PLLB */
> + at91_sys_write(AT91_CKGR_PLLBR, 0);
> + while ((at91_sys_read(AT91_PMC_SR) & AT91_PMC_LOCKB) != 0)
> + ;
> +#endif
> +
> return 0;
> }
>
> diff --git a/include/configs/at91cap9adk.h b/include/configs/at91cap9adk.h
> index 1dbd3a4..47145d8 100644
> --- a/include/configs/at91cap9adk.h
> +++ b/include/configs/at91cap9adk.h
> @@ -32,6 +32,7 @@
> #define AT91_MAIN_CLOCK 12000000 /* 12 MHz crystal */
> #define AT91_MASTER_CLOCK 100000000 /* peripheral */
> #define AT91_CPU_CLOCK 200000000 /* cpu */
> +#define CFG_AT91_PLLB 0x10073e01 /* PLLB settings for USB */
> #define CFG_HZ 1000000 /* 1us resolution */
>
> #define AT91_SLOW_CLOCK 32768 /* slow clock */
> @@ -137,6 +138,8 @@
> #define CFG_USB_OHCI_REGS_BASE 0x00700000 /* AT91_BASE_UHP */
> #define CFG_USB_OHCI_SLOT_NAME "at91cap9"
> #define CFG_USB_OHCI_MAX_ROOT_PORTS 2
> +#define CONFIG_USB_STORAGE 1
> +#define CONFIG_CMD_FAT 1
>
> #define CFG_LOAD_ADDR 0x72000000 /* load address */
>
> diff --git a/include/configs/at91sam9260ek.h b/include/configs/at91sam9260ek.h
> index cb8857a..cd09288 100644
> --- a/include/configs/at91sam9260ek.h
> +++ b/include/configs/at91sam9260ek.h
> @@ -32,6 +32,7 @@
> #define AT91_MAIN_CLOCK 18432000 /* 18.432 MHz crystal */
> #define AT91_MASTER_CLOCK 100000000 /* peripheral */
> #define AT91_CPU_CLOCK 200000000 /* cpu */
> +#define CFG_AT91_PLLB 0x107c3e18 /* PLLB settings for USB */
> #define CFG_HZ 1000000 /* 1us resolution */
>
> #define AT91_SLOW_CLOCK 32768 /* slow clock */
> @@ -123,6 +124,7 @@
> #define CFG_USB_OHCI_SLOT_NAME "at91sam9260"
> #define CFG_USB_OHCI_MAX_ROOT_PORTS 2
> #define CONFIG_USB_STORAGE 1
> +#define CONFIG_CMD_FAT 1
>
> #define CFG_LOAD_ADDR 0x22000000 /* load address */
>
> diff --git a/include/configs/at91sam9261ek.h b/include/configs/at91sam9261ek.h
> index 92e134d..aa6c6ab 100644
> --- a/include/configs/at91sam9261ek.h
> +++ b/include/configs/at91sam9261ek.h
> @@ -137,6 +137,7 @@
> #define CFG_USB_OHCI_SLOT_NAME "at91sam9261"
> #define CFG_USB_OHCI_MAX_ROOT_PORTS 2
> #define CONFIG_USB_STORAGE 1
> +#define CONFIG_CMD_FAT 1
>
> #define CFG_LOAD_ADDR 0x22000000 /* load address */
>
> diff --git a/include/configs/at91sam9263ek.h b/include/configs/at91sam9263ek.h
> index c914571..1e9c5c5 100644
> --- a/include/configs/at91sam9263ek.h
> +++ b/include/configs/at91sam9263ek.h
> @@ -32,6 +32,7 @@
> #define AT91_MAIN_CLOCK 16367660 /* 16.367 MHz crystal */
> #define AT91_MASTER_CLOCK 100000000 /* peripheral */
> #define AT91_CPU_CLOCK 200000000 /* cpu */
> +#define CFG_AT91_PLLB 0x133a3e8d /* PLLB settings for USB */
> #define CFG_HZ 1000000 /* 1us resolution */
>
> #define AT91_SLOW_CLOCK 32768 /* slow clock */
> @@ -143,6 +144,7 @@
> #define CFG_USB_OHCI_SLOT_NAME "at91sam9263"
> #define CFG_USB_OHCI_MAX_ROOT_PORTS 2
> #define CONFIG_USB_STORAGE 1
> +#define CONFIG_CMD_FAT 1
>
> #define CFG_LOAD_ADDR 0x22000000 /* load address */
>
> --
> 1.5.4.3
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread* [U-Boot] [PATCH] AT91: Enable PLLB for USB
2008-10-21 17:54 ` Remy Bohmer
@ 2008-10-21 21:20 ` Stelian Pop
0 siblings, 0 replies; 15+ messages in thread
From: Stelian Pop @ 2008-10-21 21:20 UTC (permalink / raw)
To: u-boot
Le mardi 21 octobre 2008 ? 19:54 +0200, Remy Bohmer a ?crit :
> Hello Stelian,
Hi Remy,
> Are all your USB stick problems solved by now? Including that stick
> that did not work?
Nope. I still have one (kinda old) stick which does not work, on any
AT91 board. But I suspect the issues are no longer in the board/cpu
code, but in the core USB layer.
> I will try your patches tomorrow, but I have one question:
> > #define AT91_MAIN_CLOCK 18432000 /* 18.432 MHz crystal */
> > #define AT91_MASTER_CLOCK 100000000 /* peripheral */
> > #define AT91_CPU_CLOCK 200000000 /* cpu */
>
> Are such nice rounded values possible with that unrounded crystal?
>
> Looking at sam9261 I see:
> #define AT91_MAIN_CLOCK 198656000 /* from 18.432 MHz crystal */
This one is clearly wrong. 18.432 MHz is 18432000 Hz.
> #define AT91_MASTER_CLOCK 99328000 /* peripheral = main / 2
And the master clock is not main / 2, but PLLA / 2, where PLLA is
initialized by the bootstrap to (main * 0x60) / 9.
This gives:
PLLA = 18432000 * 0x60 / 9 = 196608000 Hz
MASTER = 196608000 / 2 = 98304000 Hz.
The defines in the header files contain rounded values, I don't think
it's too important to be precise here.
Stelian.
--
Stelian Pop <stelian@popies.net>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH] AT91: Enable PLLB for USB
2008-10-21 16:07 ` [U-Boot] [PATCH] AT91: Enable PLLB for USB Stelian Pop
2008-10-21 17:54 ` Remy Bohmer
@ 2008-11-06 19:27 ` Jean-Christophe PLAGNIOL-VILLARD
2008-11-06 21:55 ` Stelian Pop
1 sibling, 1 reply; 15+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2008-11-06 19:27 UTC (permalink / raw)
To: u-boot
On 18:07 Tue 21 Oct , Stelian Pop wrote:
> At least some (old ?) versions of the AT91Bootstrap do not set up the
> PLLB correctly to 48 MHz in order to make USB host function correctly.
>
> This patch sets up the PLLB to the same values Linux uses, and makes USB
> work ok on the following CPUs:
> - AT91CAP9
> - AT91SAM9260
> - AT91SAM9263
>
> This patch also defines CONFIG_USB_STORAGE and CONFIG_CMD_FAT for all
> the relevant AT91CAP9/AT91SAM9 boards.
>
> Signed-off-by: Stelian Pop <stelian@popies.net>
> ---
> cpu/arm926ejs/at91/usb.c | 18 ++++++++++++++++++
> include/configs/at91cap9adk.h | 3 +++
> include/configs/at91sam9260ek.h | 2 ++
> include/configs/at91sam9261ek.h | 1 +
> include/configs/at91sam9263ek.h | 2 ++
> 5 files changed, 26 insertions(+), 0 deletions(-)
failed to apply
could you rebase it against u-boot-at91?
Best Regards,
J.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH] AT91: Enable PLLB for USB
2008-11-06 19:27 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2008-11-06 21:55 ` Stelian Pop
2008-11-06 22:52 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 15+ messages in thread
From: Stelian Pop @ 2008-11-06 21:55 UTC (permalink / raw)
To: u-boot
Le jeudi 06 novembre 2008 ? 20:27 +0100, Jean-Christophe
PLAGNIOL-VILLARD a ?crit :
> On 18:07 Tue 21 Oct , Stelian Pop wrote:
> > At least some (old ?) versions of the AT91Bootstrap do not set up the
> > PLLB correctly to 48 MHz in order to make USB host function correctly.
> >
> > This patch sets up the PLLB to the same values Linux uses, and makes USB
> > work ok on the following CPUs:
> > - AT91CAP9
> > - AT91SAM9260
> > - AT91SAM9263
> >
> > This patch also defines CONFIG_USB_STORAGE and CONFIG_CMD_FAT for all
> > the relevant AT91CAP9/AT91SAM9 boards.
> >
> > Signed-off-by: Stelian Pop <stelian@popies.net>
> > ---
> > cpu/arm926ejs/at91/usb.c | 18 ++++++++++++++++++
> > include/configs/at91cap9adk.h | 3 +++
> > include/configs/at91sam9260ek.h | 2 ++
> > include/configs/at91sam9261ek.h | 1 +
> > include/configs/at91sam9263ek.h | 2 ++
> > 5 files changed, 26 insertions(+), 0 deletions(-)
>
> failed to apply
>
> could you rebase it against u-boot-at91?
Here it is.
Thanks,
Stelian.
--------------------------------
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH] AT91: Enable PLLB for USB
2008-11-06 21:55 ` Stelian Pop
@ 2008-11-06 22:52 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 15+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2008-11-06 22:52 UTC (permalink / raw)
To: u-boot
On 22:55 Thu 06 Nov , Stelian Pop wrote:
> Le jeudi 06 novembre 2008 ? 20:27 +0100, Jean-Christophe
> PLAGNIOL-VILLARD a ?crit :
> > On 18:07 Tue 21 Oct , Stelian Pop wrote:
> > > At least some (old ?) versions of the AT91Bootstrap do not set up the
> > > PLLB correctly to 48 MHz in order to make USB host function correctly.
> > >
> > > This patch sets up the PLLB to the same values Linux uses, and makes USB
> > > work ok on the following CPUs:
> > > - AT91CAP9
> > > - AT91SAM9260
> > > - AT91SAM9263
> > >
> > > This patch also defines CONFIG_USB_STORAGE and CONFIG_CMD_FAT for all
> > > the relevant AT91CAP9/AT91SAM9 boards.
> > >
> > > Signed-off-by: Stelian Pop <stelian@popies.net>
> > > ---
> > > cpu/arm926ejs/at91/usb.c | 18 ++++++++++++++++++
> > > include/configs/at91cap9adk.h | 3 +++
> > > include/configs/at91sam9260ek.h | 2 ++
> > > include/configs/at91sam9261ek.h | 1 +
> > > include/configs/at91sam9263ek.h | 2 ++
> > > 5 files changed, 26 insertions(+), 0 deletions(-)
> >
> > failed to apply
> >
> > could you rebase it against u-boot-at91?
>
> Here it is.
>
> Thanks,
>
> Stelian.
Applied to u-boot-at91
Best Regards,
J.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH] AT91: Replace AT91_BASE_EMAC by the board specific values.
@ 2008-10-21 16:08 ` Stelian Pop
2008-11-06 19:28 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 15+ messages in thread
From: Stelian Pop @ 2008-10-21 16:08 UTC (permalink / raw)
To: u-boot
AT91_BASE_EMAC is never used outside the board specific files,
so replace its usage by the board specific AT91xxx_BASE_EMAC.
Signed-off-by: Stelian Pop <stelian@popies.net>
---
board/atmel/at91cap9adk/at91cap9adk.c | 2 +-
board/atmel/at91sam9260ek/at91sam9260ek.c | 2 +-
board/atmel/at91sam9263ek/at91sam9263ek.c | 2 +-
include/asm-arm/arch-at91/hardware.h | 3 ---
4 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/board/atmel/at91cap9adk/at91cap9adk.c b/board/atmel/at91cap9adk/at91cap9adk.c
index 787d64d..0f39de6 100644
--- a/board/atmel/at91cap9adk/at91cap9adk.c
+++ b/board/atmel/at91cap9adk/at91cap9adk.c
@@ -383,7 +383,7 @@ int board_eth_init(bd_t *bis)
{
int rc = 0;
#ifdef CONFIG_MACB
- rc = macb_eth_initialize(0, (void *)AT91_BASE_EMAC, 0x00);
+ rc = macb_eth_initialize(0, (void *)AT91CAP9_BASE_EMAC, 0x00);
#endif
return rc;
}
diff --git a/board/atmel/at91sam9260ek/at91sam9260ek.c b/board/atmel/at91sam9260ek/at91sam9260ek.c
index 913e3fb..25a33b2 100644
--- a/board/atmel/at91sam9260ek/at91sam9260ek.c
+++ b/board/atmel/at91sam9260ek/at91sam9260ek.c
@@ -255,7 +255,7 @@ int board_eth_init(bd_t *bis)
{
int rc = 0;
#ifdef CONFIG_MACB
- rc = macb_eth_initialize(0, (void *)AT91_BASE_EMAC, 0x00);
+ rc = macb_eth_initialize(0, (void *)AT91SAM9260_BASE_EMAC, 0x00);
#endif
return rc;
}
diff --git a/board/atmel/at91sam9263ek/at91sam9263ek.c b/board/atmel/at91sam9263ek/at91sam9263ek.c
index c705074..f5718df 100644
--- a/board/atmel/at91sam9263ek/at91sam9263ek.c
+++ b/board/atmel/at91sam9263ek/at91sam9263ek.c
@@ -315,7 +315,7 @@ int board_eth_init(bd_t *bis)
{
int rc = 0;
#ifdef CONFIG_MACB
- rc = macb_eth_initialize(0, (void *)AT91_BASE_EMAC, 0x00);
+ rc = macb_eth_initialize(0, (void *)AT91SAM9263_BASE_EMAC, 0x00);
#endif
return rc;
}
diff --git a/include/asm-arm/arch-at91/hardware.h b/include/asm-arm/arch-at91/hardware.h
index f312419..b881e4e 100644
--- a/include/asm-arm/arch-at91/hardware.h
+++ b/include/asm-arm/arch-at91/hardware.h
@@ -20,7 +20,6 @@
#include <asm/arch/at91rm9200.h>
#elif defined(CONFIG_AT91SAM9260)
#include <asm/arch/at91sam9260.h>
-#define AT91_BASE_EMAC AT91SAM9260_BASE_EMAC
#define AT91_BASE_SPI AT91SAM9260_BASE_SPI0
#define AT91_ID_UHP AT91SAM9260_ID_UHP
#define AT91_PMC_UHP AT91SAM926x_PMC_UHP
@@ -31,7 +30,6 @@
#define AT91_PMC_UHP AT91SAM926x_PMC_UHP
#elif defined(CONFIG_AT91SAM9263)
#include <asm/arch/at91sam9263.h>
-#define AT91_BASE_EMAC AT91SAM9263_BASE_EMAC
#define AT91_BASE_SPI AT91SAM9263_BASE_SPI0
#define AT91_ID_UHP AT91SAM9263_ID_UHP
#define AT91_PMC_UHP AT91SAM926x_PMC_UHP
@@ -41,7 +39,6 @@
#define AT91_ID_UHP AT91SAM9RL_ID_UHP
#elif defined(CONFIG_AT91CAP9)
#include <asm/arch/at91cap9.h>
-#define AT91_BASE_EMAC AT91CAP9_BASE_EMAC
#define AT91_BASE_SPI AT91CAP9_BASE_SPI0
#define AT91_ID_UHP AT91CAP9_ID_UHP
#define AT91_PMC_UHP AT91CAP9_PMC_UHP
--
1.5.4.3
^ permalink raw reply related [flat|nested] 15+ messages in thread* [U-Boot] [PATCH] AT91: Replace AT91_BASE_EMAC by the board specific values.
2008-10-21 16:08 ` [U-Boot] [PATCH] AT91: Replace AT91_BASE_EMAC by the board specific values Stelian Pop
@ 2008-11-06 19:28 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 15+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2008-11-06 19:28 UTC (permalink / raw)
To: u-boot
On 18:08 Tue 21 Oct , Stelian Pop wrote:
> AT91_BASE_EMAC is never used outside the board specific files,
> so replace its usage by the board specific AT91xxx_BASE_EMAC.
>
> Signed-off-by: Stelian Pop <stelian@popies.net>
> ---
> board/atmel/at91cap9adk/at91cap9adk.c | 2 +-
> board/atmel/at91sam9260ek/at91sam9260ek.c | 2 +-
> board/atmel/at91sam9263ek/at91sam9263ek.c | 2 +-
> include/asm-arm/arch-at91/hardware.h | 3 ---
> 4 files changed, 3 insertions(+), 6 deletions(-)
applied to u-boot-at91
Best Regards,
J.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH] AT91: Replace (undefined) AT91_ID_US* by the board specific values.
@ 2008-10-21 16:08 ` Stelian Pop
2008-11-06 19:27 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 15+ messages in thread
From: Stelian Pop @ 2008-10-21 16:08 UTC (permalink / raw)
To: u-boot
AT91_ID_US0 / AT91_ID_US1 / AT91_ID_US2 were used but never defined.
Since they are never used outside the board specific files, they can
be replaced by the board specific AT91xxx_ID_US0 / AT91xxx_ID_US1 /
AT91xxx_ID_US2.
Bug spotted by Jesus Alvarez <jalvarez@micromint.com>.
Signed-off-by: Stelian Pop <stelian@popies.net>
---
board/atmel/at91cap9adk/at91cap9adk.c | 6 +++---
board/atmel/at91sam9260ek/at91sam9260ek.c | 6 +++---
board/atmel/at91sam9261ek/at91sam9261ek.c | 6 +++---
board/atmel/at91sam9263ek/at91sam9263ek.c | 6 +++---
board/atmel/at91sam9rlek/at91sam9rlek.c | 6 +++---
5 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/board/atmel/at91cap9adk/at91cap9adk.c b/board/atmel/at91cap9adk/at91cap9adk.c
index 0f39de6..57fe617 100644
--- a/board/atmel/at91cap9adk/at91cap9adk.c
+++ b/board/atmel/at91cap9adk/at91cap9adk.c
@@ -52,19 +52,19 @@ static void at91cap9_serial_hw_init(void)
#ifdef CONFIG_USART0
at91_set_A_periph(AT91_PIN_PA22, 1); /* TXD0 */
at91_set_A_periph(AT91_PIN_PA23, 0); /* RXD0 */
- at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_US0);
+ at91_sys_write(AT91_PMC_PCER, 1 << AT91CAP9_ID_US0);
#endif
#ifdef CONFIG_USART1
at91_set_A_periph(AT91_PIN_PD0, 1); /* TXD1 */
at91_set_A_periph(AT91_PIN_PD1, 0); /* RXD1 */
- at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_US1);
+ at91_sys_write(AT91_PMC_PCER, 1 << AT91CAP9_ID_US1);
#endif
#ifdef CONFIG_USART2
at91_set_A_periph(AT91_PIN_PD2, 1); /* TXD2 */
at91_set_A_periph(AT91_PIN_PD3, 0); /* RXD2 */
- at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_US2);
+ at91_sys_write(AT91_PMC_PCER, 1 << AT91CAP9_ID_US2);
#endif
#ifdef CONFIG_USART3 /* DBGU */
diff --git a/board/atmel/at91sam9260ek/at91sam9260ek.c b/board/atmel/at91sam9260ek/at91sam9260ek.c
index 25a33b2..ca1f11a 100644
--- a/board/atmel/at91sam9260ek/at91sam9260ek.c
+++ b/board/atmel/at91sam9260ek/at91sam9260ek.c
@@ -48,19 +48,19 @@ static void at91sam9260ek_serial_hw_init(void)
#ifdef CONFIG_USART0
at91_set_A_periph(AT91_PIN_PB4, 1); /* TXD0 */
at91_set_A_periph(AT91_PIN_PB5, 0); /* RXD0 */
- at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_US0);
+ at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_US0);
#endif
#ifdef CONFIG_USART1
at91_set_A_periph(AT91_PIN_PB6, 1); /* TXD1 */
at91_set_A_periph(AT91_PIN_PB7, 0); /* RXD1 */
- at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_US1);
+ at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_US1);
#endif
#ifdef CONFIG_USART2
at91_set_A_periph(AT91_PIN_PB8, 1); /* TXD2 */
at91_set_A_periph(AT91_PIN_PB9, 0); /* RXD2 */
- at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_US2);
+ at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_US2);
#endif
#ifdef CONFIG_USART3 /* DBGU */
diff --git a/board/atmel/at91sam9261ek/at91sam9261ek.c b/board/atmel/at91sam9261ek/at91sam9261ek.c
index 647aab5..436f041 100644
--- a/board/atmel/at91sam9261ek/at91sam9261ek.c
+++ b/board/atmel/at91sam9261ek/at91sam9261ek.c
@@ -48,19 +48,19 @@ static void at91sam9261ek_serial_hw_init(void)
#ifdef CONFIG_USART0
at91_set_A_periph(AT91_PIN_PC8, 1); /* TXD0 */
at91_set_A_periph(AT91_PIN_PC9, 0); /* RXD0 */
- at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_US0);
+ at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9261_ID_US0);
#endif
#ifdef CONFIG_USART1
at91_set_A_periph(AT91_PIN_PC12, 1); /* TXD1 */
at91_set_A_periph(AT91_PIN_PC13, 0); /* RXD1 */
- at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_US1);
+ at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9261_ID_US1);
#endif
#ifdef CONFIG_USART2
at91_set_A_periph(AT91_PIN_PC14, 1); /* TXD2 */
at91_set_A_periph(AT91_PIN_PC15, 0); /* RXD2 */
- at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_US2);
+ at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9261_ID_US2);
#endif
#ifdef CONFIG_USART3 /* DBGU */
diff --git a/board/atmel/at91sam9263ek/at91sam9263ek.c b/board/atmel/at91sam9263ek/at91sam9263ek.c
index f5718df..3de6b81 100644
--- a/board/atmel/at91sam9263ek/at91sam9263ek.c
+++ b/board/atmel/at91sam9263ek/at91sam9263ek.c
@@ -51,19 +51,19 @@ static void at91sam9263ek_serial_hw_init(void)
#ifdef CONFIG_USART0
at91_set_A_periph(AT91_PIN_PA26, 1); /* TXD0 */
at91_set_A_periph(AT91_PIN_PA27, 0); /* RXD0 */
- at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_US0);
+ at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9263_ID_US0);
#endif
#ifdef CONFIG_USART1
at91_set_A_periph(AT91_PIN_PD0, 1); /* TXD1 */
at91_set_A_periph(AT91_PIN_PD1, 0); /* RXD1 */
- at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_US1);
+ at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9263_ID_US1);
#endif
#ifdef CONFIG_USART2
at91_set_A_periph(AT91_PIN_PD2, 1); /* TXD2 */
at91_set_A_periph(AT91_PIN_PD3, 0); /* RXD2 */
- at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_US2);
+ at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9263_ID_US2);
#endif
#ifdef CONFIG_USART3 /* DBGU */
diff --git a/board/atmel/at91sam9rlek/at91sam9rlek.c b/board/atmel/at91sam9rlek/at91sam9rlek.c
index 509e7c3..5869ae2 100644
--- a/board/atmel/at91sam9rlek/at91sam9rlek.c
+++ b/board/atmel/at91sam9rlek/at91sam9rlek.c
@@ -48,19 +48,19 @@ static void at91sam9rlek_serial_hw_init(void)
#ifdef CONFIG_USART0
at91_set_A_periph(AT91_PIN_PA6, 1); /* TXD0 */
at91_set_A_periph(AT91_PIN_PA7, 0); /* RXD0 */
- at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_US0);
+ at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9RL_ID_US0);
#endif
#ifdef CONFIG_USART1
at91_set_A_periph(AT91_PIN_PA11, 1); /* TXD1 */
at91_set_A_periph(AT91_PIN_PA12, 0); /* RXD1 */
- at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_US1);
+ at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9RL_ID_US1);
#endif
#ifdef CONFIG_USART2
at91_set_A_periph(AT91_PIN_PA13, 1); /* TXD2 */
at91_set_A_periph(AT91_PIN_PA14, 0); /* RXD2 */
- at91_sys_write(AT91_PMC_PCER, 1 << AT91_ID_US2);
+ at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9RL_ID_US2);
#endif
#ifdef CONFIG_USART3 /* DBGU */
--
1.5.4.3
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH] AT91: Replace (undefined) AT91_ID_US* by the board specific values.
2008-10-21 16:08 ` [U-Boot] [PATCH] AT91: Replace (undefined) AT91_ID_US* " Stelian Pop
@ 2008-11-06 19:27 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 15+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2008-11-06 19:27 UTC (permalink / raw)
To: u-boot
On 18:08 Tue 21 Oct , Stelian Pop wrote:
> AT91_ID_US0 / AT91_ID_US1 / AT91_ID_US2 were used but never defined.
> Since they are never used outside the board specific files, they can
> be replaced by the board specific AT91xxx_ID_US0 / AT91xxx_ID_US1 /
> AT91xxx_ID_US2.
>
> Bug spotted by Jesus Alvarez <jalvarez@micromint.com>.
>
> Signed-off-by: Stelian Pop <stelian@popies.net>
> ---
> board/atmel/at91cap9adk/at91cap9adk.c | 6 +++---
> board/atmel/at91sam9260ek/at91sam9260ek.c | 6 +++---
> board/atmel/at91sam9261ek/at91sam9261ek.c | 6 +++---
> board/atmel/at91sam9263ek/at91sam9263ek.c | 6 +++---
> board/atmel/at91sam9rlek/at91sam9rlek.c | 6 +++---
> 5 files changed, 15 insertions(+), 15 deletions(-)
applied to u-boot-at91
Best Regards,
J.
^ permalink raw reply [flat|nested] 15+ messages in thread