From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Date: Sat, 30 Jan 2010 19:10:10 -0600 Subject: [U-Boot] [PATCH 4/9 V3] convert all at91 files to use at91_gpio driver syntax In-Reply-To: <4B5AD77F.7030807@scharsoft.de> References: <4B5AD77F.7030807@scharsoft.de> Message-ID: <4B64D872.6070703@windriver.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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