public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arm, at91: small updates for the smartweb board
@ 2015-09-25 11:17 Heiko Schocher
  2015-09-28  8:51 ` Andreas Bießmann
  0 siblings, 1 reply; 3+ messages in thread
From: Heiko Schocher @ 2015-09-25 11:17 UTC (permalink / raw)
  To: u-boot

- add CONFIG_BOOT_RETRY_TIME to 30
- fex LED colors
- fix button pressed combination
- add
  CONFIG_USB_HOST_ETHER
  CONFIG_USB_ETHER_ASIX
  CONFIG_USB_ETHER_MCS7830
- change U-Boot prompt to "U-Boot> "

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Matthias Michel <matthias.michel@siemens.com>
---
$ ./tools/buildman/buildman -b 20150923 at91
WARNING: no status info for 'dra72_evm'
WARNING: no maintainers for 'dra72_evm'
WARNING: no status info for 'am335x_gp_evm'
WARNING: no maintainers for 'am335x_gp_evm'
WARNING: no status info for 'hikey'
WARNING: no maintainers for 'hikey'
Building 5 commits for 61 boards (8 threads, 1 job per thread)
Cloning repo for thread 0
Cloning repo for thread 1
Cloning repo for thread 2
Cloning repo for thread 3
Cloning repo for thread 4
Cloning repo for thread 5
Cloning repo for thread 6
Cloning repo for thread 7
  305    0    0 /305    axm

 board/siemens/smartweb/smartweb.c | 25 ++++++++++++++-----------
 include/configs/smartweb.h        |  5 +++++
 2 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/board/siemens/smartweb/smartweb.c b/board/siemens/smartweb/smartweb.c
index 2d42488..d82f1b7 100644
--- a/board/siemens/smartweb/smartweb.c
+++ b/board/siemens/smartweb/smartweb.c
@@ -90,7 +90,8 @@ static void smartweb_macb_hw_init(void)
 		pin_to_mask(AT91_PIN_PA17) |
 		pin_to_mask(AT91_PIN_PA25) |
 		pin_to_mask(AT91_PIN_PA26) |
-		pin_to_mask(AT91_PIN_PA28),
+		pin_to_mask(AT91_PIN_PA28) |
+		pin_to_mask(AT91_PIN_PA29),
 		&pioa->pudr);
 
 	at91_phy_reset();
@@ -101,7 +102,8 @@ static void smartweb_macb_hw_init(void)
 		pin_to_mask(AT91_PIN_PA17) |
 		pin_to_mask(AT91_PIN_PA25) |
 		pin_to_mask(AT91_PIN_PA26) |
-		pin_to_mask(AT91_PIN_PA28),
+		pin_to_mask(AT91_PIN_PA28) |
+		pin_to_mask(AT91_PIN_PA29),
 		&pioa->puer);
 
 	/* Initialize EMAC=MACB hardware */
@@ -141,13 +143,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	/* Adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
-
-	smartweb_nand_hw_init();
-#ifdef CONFIG_MACB
-	smartweb_macb_hw_init();
-#endif
 	/* power LED red */
 	at91_set_gpio_output(AT91_PIN_PC6, 0);
 	at91_set_gpio_output(AT91_PIN_PC7, 1);
@@ -163,6 +158,13 @@ int board_init(void)
 	at91_udc_probe(&board_udc_data);
 #endif
 
+	/* Adress of boot parameters */
+	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+
+	smartweb_nand_hw_init();
+#ifdef CONFIG_MACB
+	smartweb_macb_hw_init();
+#endif
 	return 0;
 }
 
@@ -197,6 +199,7 @@ void matrix_init(void)
 
 void spl_board_init(void)
 {
+	/* power LED orange */
 	at91_set_gpio_output(AT91_PIN_PC6, 1);
 	at91_set_gpio_output(AT91_PIN_PC7, 1);
 	/* alarm LED orange */
@@ -212,8 +215,8 @@ void spl_board_init(void)
 
 	/* check if both  button are pressed */
 	if (at91_get_gpio_value(AT91_PIN_PA28) == 0 &&
-	    at91_get_gpio_value(AT91_PIN_PA29) == 0) {
-		debug("Recovery button pressed\n");
+		at91_get_gpio_value(AT91_PIN_PA29) == 0) {
+		smartweb_nand_hw_init();
 		nand_init();
 		spl_nand_erase_one(0, 0);
 	}
diff --git a/include/configs/smartweb.h b/include/configs/smartweb.h
index d189c3f..fbb66d5 100644
--- a/include/configs/smartweb.h
+++ b/include/configs/smartweb.h
@@ -117,6 +117,9 @@
  *
  */
 #define CONFIG_MACB
+#define CONFIG_USB_HOST_ETHER
+#define CONFIG_USB_ETHER_ASIX
+#define CONFIG_USB_ETHER_MCS7830
 #define CONFIG_RMII			/* use reduced MII inteface */
 #define CONFIG_NET_RETRY_COUNT	20      /* # of DHCP/BOOTP retries */
 #define CONFIG_AT91_WANTS_COMMON_PHY
@@ -182,6 +185,8 @@
 /* General Boot Parameter */
 #define CONFIG_BOOTDELAY		3
 #define CONFIG_BOOTCOMMAND		"run flashboot"
+#define CONFIG_BOOT_RETRY_TIME          30
+#define CONFIG_SYS_PROMPT		"U-Boot> "
 #define CONFIG_SYS_CBSIZE		512
 #define CONFIG_SYS_MAXARGS		16
 #define CONFIG_SYS_PBSIZE \
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] arm, at91: small updates for the smartweb board
  2015-09-25 11:17 [U-Boot] [PATCH] arm, at91: small updates for the smartweb board Heiko Schocher
@ 2015-09-28  8:51 ` Andreas Bießmann
  2015-09-28  9:35   ` Heiko Schocher
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Bießmann @ 2015-09-28  8:51 UTC (permalink / raw)
  To: u-boot

Hi Heiko,

> Am 25.09.2015 um 13:17 schrieb Heiko Schocher <hs@denx.de>:
> 
> - add CONFIG_BOOT_RETRY_TIME to 30
> - fex LED colors
> - fix button pressed combination
> - add
>  CONFIG_USB_HOST_ETHER
>  CONFIG_USB_ETHER_ASIX
>  CONFIG_USB_ETHER_MCS7830
> - change U-Boot prompt to "U-Boot> "
> 
> Signed-off-by: Heiko Schocher <hs@denx.de>
> Signed-off-by: Matthias Michel <matthias.michel@siemens.com>
> ---
> $ ./tools/buildman/buildman -b 20150923 at91
> WARNING: no status info for 'dra72_evm'
> WARNING: no maintainers for 'dra72_evm'
> WARNING: no status info for 'am335x_gp_evm'
> WARNING: no maintainers for 'am335x_gp_evm'
> WARNING: no status info for 'hikey'
> WARNING: no maintainers for 'hikey'
> Building 5 commits for 61 boards (8 threads, 1 job per thread)
> Cloning repo for thread 0
> Cloning repo for thread 1
> Cloning repo for thread 2
> Cloning repo for thread 3
> Cloning repo for thread 4
> Cloning repo for thread 5
> Cloning repo for thread 6
> Cloning repo for thread 7
>  305    0    0 /305    axm
> 
> board/siemens/smartweb/smartweb.c | 25 ++++++++++++++-----------
> include/configs/smartweb.h        |  5 +++++
> 2 files changed, 19 insertions(+), 11 deletions(-)
> 
> diff --git a/board/siemens/smartweb/smartweb.c b/board/siemens/smartweb/smartweb.c
> index 2d42488..d82f1b7 100644
> --- a/board/siemens/smartweb/smartweb.c
> +++ b/board/siemens/smartweb/smartweb.c
> @@ -90,7 +90,8 @@ static void smartweb_macb_hw_init(void)
>        pin_to_mask(AT91_PIN_PA17) |
>        pin_to_mask(AT91_PIN_PA25) |
>        pin_to_mask(AT91_PIN_PA26) |
> -        pin_to_mask(AT91_PIN_PA28),
> +        pin_to_mask(AT91_PIN_PA28) |
> +        pin_to_mask(AT91_PIN_PA29),
>        &pioa->pudr);
> 
>    at91_phy_reset();
> @@ -101,7 +102,8 @@ static void smartweb_macb_hw_init(void)
>        pin_to_mask(AT91_PIN_PA17) |
>        pin_to_mask(AT91_PIN_PA25) |
>        pin_to_mask(AT91_PIN_PA26) |
> -        pin_to_mask(AT91_PIN_PA28),
> +        pin_to_mask(AT91_PIN_PA28) |
> +        pin_to_mask(AT91_PIN_PA29),
>        &pioa->puer);
> 
>    /* Initialize EMAC=MACB hardware */
> @@ -141,13 +143,6 @@ int board_early_init_f(void)
> 
> int board_init(void)
> {
> -    /* Adress of boot parameters */
> -    gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
> -
> -    smartweb_nand_hw_init();
> -#ifdef CONFIG_MACB
> -    smartweb_macb_hw_init();
> -#endif
>    /* power LED red */
>    at91_set_gpio_output(AT91_PIN_PC6, 0);
>    at91_set_gpio_output(AT91_PIN_PC7, 1);
> @@ -163,6 +158,13 @@ int board_init(void)
>    at91_udc_probe(&board_udc_data);
> #endif
> 
> +    /* Adress of boot parameters */
> +    gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
> +
> +    smartweb_nand_hw_init();
> +#ifdef CONFIG_MACB
> +    smartweb_macb_hw_init();
> +#endif
>    return 0;
> }
> 
> @@ -197,6 +199,7 @@ void matrix_init(void)
> 
> void spl_board_init(void)
> {
> +    /* power LED orange */
>    at91_set_gpio_output(AT91_PIN_PC6, 1);
>    at91_set_gpio_output(AT91_PIN_PC7, 1);
>    /* alarm LED orange */
> @@ -212,8 +215,8 @@ void spl_board_init(void)
> 
>    /* check if both  button are pressed */
>    if (at91_get_gpio_value(AT91_PIN_PA28) == 0 &&
> -        at91_get_gpio_value(AT91_PIN_PA29) == 0) {
> -        debug("Recovery button pressed\n");
> +        at91_get_gpio_value(AT91_PIN_PA29) == 0) {
> +        smartweb_nand_hw_init();
>        nand_init();
>        spl_nand_erase_one(0, 0);
>    }
> diff --git a/include/configs/smartweb.h b/include/configs/smartweb.h
> index d189c3f..fbb66d5 100644
> --- a/include/configs/smartweb.h
> +++ b/include/configs/smartweb.h
> @@ -117,6 +117,9 @@
>  *
>  */
> #define CONFIG_MACB
> +#define CONFIG_USB_HOST_ETHER
> +#define CONFIG_USB_ETHER_ASIX
> +#define CONFIG_USB_ETHER_MCS7830
> #define CONFIG_RMII            /* use reduced MII inteface */
> #define CONFIG_NET_RETRY_COUNT    20      /* # of DHCP/BOOTP retries */
> #define CONFIG_AT91_WANTS_COMMON_PHY
> @@ -182,6 +185,8 @@
> /* General Boot Parameter */
> #define CONFIG_BOOTDELAY        3
> #define CONFIG_BOOTCOMMAND        "run flashboot"
> +#define CONFIG_BOOT_RETRY_TIME          30
> +#define CONFIG_SYS_PROMPT        "U-Boot> "

could you please use KConfig for at least the SYS_PROMPT setting?

Andreas

> #define CONFIG_SYS_CBSIZE        512
> #define CONFIG_SYS_MAXARGS        16
> #define CONFIG_SYS_PBSIZE \
> -- 
> 2.1.0
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] arm, at91: small updates for the smartweb board
  2015-09-28  8:51 ` Andreas Bießmann
@ 2015-09-28  9:35   ` Heiko Schocher
  0 siblings, 0 replies; 3+ messages in thread
From: Heiko Schocher @ 2015-09-28  9:35 UTC (permalink / raw)
  To: u-boot

Hello Andreas,

Am 28.09.2015 um 10:51 schrieb Andreas Bie?mann:
> Hi Heiko,
>
>> Am 25.09.2015 um 13:17 schrieb Heiko Schocher <hs@denx.de>:
>>
>> - add CONFIG_BOOT_RETRY_TIME to 30
>> - fex LED colors
>> - fix button pressed combination
>> - add
>>   CONFIG_USB_HOST_ETHER
>>   CONFIG_USB_ETHER_ASIX
>>   CONFIG_USB_ETHER_MCS7830
>> - change U-Boot prompt to "U-Boot> "
>>
>> Signed-off-by: Heiko Schocher <hs@denx.de>
>> Signed-off-by: Matthias Michel <matthias.michel@siemens.com>
>> ---
>> $ ./tools/buildman/buildman -b 20150923 at91
>> WARNING: no status info for 'dra72_evm'
>> WARNING: no maintainers for 'dra72_evm'
>> WARNING: no status info for 'am335x_gp_evm'
>> WARNING: no maintainers for 'am335x_gp_evm'
>> WARNING: no status info for 'hikey'
>> WARNING: no maintainers for 'hikey'
>> Building 5 commits for 61 boards (8 threads, 1 job per thread)
>> Cloning repo for thread 0
>> Cloning repo for thread 1
>> Cloning repo for thread 2
>> Cloning repo for thread 3
>> Cloning repo for thread 4
>> Cloning repo for thread 5
>> Cloning repo for thread 6
>> Cloning repo for thread 7
>>   305    0    0 /305    axm
>>
>> board/siemens/smartweb/smartweb.c | 25 ++++++++++++++-----------
>> include/configs/smartweb.h        |  5 +++++
>> 2 files changed, 19 insertions(+), 11 deletions(-)
>>
>> diff --git a/board/siemens/smartweb/smartweb.c b/board/siemens/smartweb/smartweb.c
>> index 2d42488..d82f1b7 100644
>> --- a/board/siemens/smartweb/smartweb.c
>> +++ b/board/siemens/smartweb/smartweb.c
>> @@ -90,7 +90,8 @@ static void smartweb_macb_hw_init(void)
>>         pin_to_mask(AT91_PIN_PA17) |
>>         pin_to_mask(AT91_PIN_PA25) |
>>         pin_to_mask(AT91_PIN_PA26) |
>> -        pin_to_mask(AT91_PIN_PA28),
>> +        pin_to_mask(AT91_PIN_PA28) |
>> +        pin_to_mask(AT91_PIN_PA29),
>>         &pioa->pudr);
>>
>>     at91_phy_reset();
>> @@ -101,7 +102,8 @@ static void smartweb_macb_hw_init(void)
>>         pin_to_mask(AT91_PIN_PA17) |
>>         pin_to_mask(AT91_PIN_PA25) |
>>         pin_to_mask(AT91_PIN_PA26) |
>> -        pin_to_mask(AT91_PIN_PA28),
>> +        pin_to_mask(AT91_PIN_PA28) |
>> +        pin_to_mask(AT91_PIN_PA29),
>>         &pioa->puer);
>>
>>     /* Initialize EMAC=MACB hardware */
>> @@ -141,13 +143,6 @@ int board_early_init_f(void)
>>
>> int board_init(void)
>> {
>> -    /* Adress of boot parameters */
>> -    gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
>> -
>> -    smartweb_nand_hw_init();
>> -#ifdef CONFIG_MACB
>> -    smartweb_macb_hw_init();
>> -#endif
>>     /* power LED red */
>>     at91_set_gpio_output(AT91_PIN_PC6, 0);
>>     at91_set_gpio_output(AT91_PIN_PC7, 1);
>> @@ -163,6 +158,13 @@ int board_init(void)
>>     at91_udc_probe(&board_udc_data);
>> #endif
>>
>> +    /* Adress of boot parameters */
>> +    gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
>> +
>> +    smartweb_nand_hw_init();
>> +#ifdef CONFIG_MACB
>> +    smartweb_macb_hw_init();
>> +#endif
>>     return 0;
>> }
>>
>> @@ -197,6 +199,7 @@ void matrix_init(void)
>>
>> void spl_board_init(void)
>> {
>> +    /* power LED orange */
>>     at91_set_gpio_output(AT91_PIN_PC6, 1);
>>     at91_set_gpio_output(AT91_PIN_PC7, 1);
>>     /* alarm LED orange */
>> @@ -212,8 +215,8 @@ void spl_board_init(void)
>>
>>     /* check if both  button are pressed */
>>     if (at91_get_gpio_value(AT91_PIN_PA28) == 0 &&
>> -        at91_get_gpio_value(AT91_PIN_PA29) == 0) {
>> -        debug("Recovery button pressed\n");
>> +        at91_get_gpio_value(AT91_PIN_PA29) == 0) {
>> +        smartweb_nand_hw_init();
>>         nand_init();
>>         spl_nand_erase_one(0, 0);
>>     }
>> diff --git a/include/configs/smartweb.h b/include/configs/smartweb.h
>> index d189c3f..fbb66d5 100644
>> --- a/include/configs/smartweb.h
>> +++ b/include/configs/smartweb.h
>> @@ -117,6 +117,9 @@
>>   *
>>   */
>> #define CONFIG_MACB
>> +#define CONFIG_USB_HOST_ETHER
>> +#define CONFIG_USB_ETHER_ASIX
>> +#define CONFIG_USB_ETHER_MCS7830
>> #define CONFIG_RMII            /* use reduced MII inteface */
>> #define CONFIG_NET_RETRY_COUNT    20      /* # of DHCP/BOOTP retries */
>> #define CONFIG_AT91_WANTS_COMMON_PHY
>> @@ -182,6 +185,8 @@
>> /* General Boot Parameter */
>> #define CONFIG_BOOTDELAY        3
>> #define CONFIG_BOOTCOMMAND        "run flashboot"
>> +#define CONFIG_BOOT_RETRY_TIME          30
>> +#define CONFIG_SYS_PROMPT        "U-Boot> "
>
> could you please use KConfig for at least the SYS_PROMPT setting?

fixed. Removed this line from the patch, as SYS_PROMPT is already
correct in the smartweb_defconfig.

bye,
Heiko
>
> Andreas
>
>> #define CONFIG_SYS_CBSIZE        512
>> #define CONFIG_SYS_MAXARGS        16
>> #define CONFIG_SYS_PBSIZE \
>> --
>> 2.1.0
>>
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot
>

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-28  9:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-25 11:17 [U-Boot] [PATCH] arm, at91: small updates for the smartweb board Heiko Schocher
2015-09-28  8:51 ` Andreas Bießmann
2015-09-28  9:35   ` Heiko Schocher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox