[U-Boot-Users] [PATCH] Add support for hammerhead AVR32 board
Wolfgang Denk
wd at denx.de
Fri Mar 14 16:54:09 CET 2008
In message <47DA976A.6000309 at miromico.ch> you wrote:
>
> This patch adds support for our new AVR32 based board.
...
> diff -Nur old/u-boot-avr32/cpu/at32ap/at32ap700x/gpio.c new/u-boot-avr32/cpu/at32ap/at32ap700x/gpio.c
> --- old/u-boot-avr32/cpu/at32ap/at32ap700x/gpio.c 2008-03-14 14:40:30.000000000 +0100
> +++ new/u-boot-avr32/cpu/at32ap/at32ap700x/gpio.c 2008-03-14 15:34:43.000000000 +0100
> @@ -142,3 +142,14 @@
> gpio_select_periph_A(GPIO_PIN_PA15, 0); /* DATA3 */
> }
> #endif
> +
> +#ifdef CONFIG_HAMMERHEAD
> +/*
> + * Hammerhead board uses GCLK3 (Periph A on PB29) as 25MHz clock output
> + * for ethernet PHY.
> + */
> +void gpio_enable_gclk3(void)
> +{
> + gpio_select_periph_A(GPIO_PIN_PB29, 0); /* GCLK3 */
^^^^^^^^^^
Indentation not by TAB.
> --- old/u-boot-avr32/net/eth.c 2008-03-14 14:40:32.000000000 +0100
> +++ new/u-boot-avr32/net/eth.c 2008-03-14 16:04:58.000000000 +0100
> @@ -64,6 +64,7 @@
> extern int mcffec_initialize(bd_t*);
> extern int mcdmafec_initialize(bd_t*);
> extern int at91cap9_eth_initialize(bd_t *);
> +extern int board_eth_initialize(bd_t *);
>
> #ifdef CONFIG_API
> extern void (*push_packet)(volatile void *, int);
> @@ -288,6 +289,8 @@
> at91cap9_eth_initialize(bis);
> #endif
>
> + board_eth_initialize(bis);
> +
Hm... did you really check if other boards still build? Did you run
the MAKEALL script?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Quote from a recent meeting: "We are going to continue having these
meetings everyday until I find out why no work is getting done."
More information about the U-Boot
mailing list