Jens Scharsig wrote:
> * convert all files cpu/../at91 to use at91_gpio driver syntax 
> * change AT91_PINP([A-F])(\d+) to AT91_PORTPIN(\1, \2),   
>   this makes all 160 AT91_PINPxxx defines obsolete 
> * AT91_PINPxxx defines can be remove if all boards converted 
>   to new SoC access
> 
> Signed-off-by: Jens Scharsig <js_at...@scharsoft.de>
> ---
>  cpu/arm926ejs/at91/at91cap9_devices.c       |  100 +++++++++++++-------------
>  cpu/arm926ejs/at91/at91sam9260_devices.c    |  100 +++++++++++++-------------
>  cpu/arm926ejs/at91/at91sam9261_devices.c    |   60 ++++++++--------
>  cpu/arm926ejs/at91/at91sam9263_devices.c    |  104 +++++++++++++-------------
>  cpu/arm926ejs/at91/at91sam9m10g45_devices.c |   96 ++++++++++++------------
>  cpu/arm926ejs/at91/at91sam9rl_devices.c     |   38 +++++-----
>  6 files changed, 249 insertions(+), 249 deletions(-)
> 
> diff --git a/cpu/arm926ejs/at91/at91cap9_devices.c 
> b/cpu/arm926ejs/at91/at91cap9_devices.c
> index 39e405f..c41e139 100644
> --- a/cpu/arm926ejs/at91/at91cap9_devices.c
> +++ b/cpu/arm926ejs/at91/at91cap9_devices.c
> @@ -34,29 +34,29 @@
>  
>  void at91_serial0_hw_init(void)
>  {
> -     at91_set_A_periph(AT91_PIN_PA22, 1);            /* TXD0 */
> -     at91_set_A_periph(AT91_PIN_PA23, 0);            /* RXD0 */
> +     at91_set_a_periph(AT91_PORTPIN(A, 22), 1);              /* TXD0 */
> +     at91_set_a_periph(AT91_PORTPIN(A, 23), 0);              /* RXD0 */

See comments about AT91_PORTPIN and converting the gpio functions to
pass in the port and the pin as parameters

The other changes are straight forward.
Tom
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to