mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
Merge branch 'master' of git://git.denx.de/u-boot-arm
This commit is contained in:
commit
90b51c33f3
70 changed files with 4112 additions and 54 deletions
|
@ -34,6 +34,7 @@ static struct at91_port *at91_pio_get_port(unsigned port)
|
|||
#endif
|
||||
#endif
|
||||
default:
|
||||
printf("Error: at91_gpio: Fail to get PIO base!\n");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -200,7 +201,7 @@ int at91_set_pio_output(unsigned port, u32 pin, int value)
|
|||
struct at91_port *at91_port = at91_pio_get_port(port);
|
||||
u32 mask;
|
||||
|
||||
if ((port < ATMEL_PIO_PORTS) && (pin < 32)) {
|
||||
if (at91_port && (port < ATMEL_PIO_PORTS) && (pin < 32)) {
|
||||
mask = 1 << pin;
|
||||
writel(mask, &at91_port->idr);
|
||||
writel(mask, &at91_port->pudr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue