]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/avr32/include/asm/arch-at32ap700x/gpio.h
avr32: fixup definitions to ATMEL_BASE_xxx
[karo-tx-uboot.git] / arch / avr32 / include / asm / arch-at32ap700x / gpio.h
index b0254f2d7f7c4181ed6e8f6e4d3c1416c3697890..4322eac1c74eb1aa3724c1eded09d5416f848949 100644 (file)
@@ -45,15 +45,15 @@ static inline void *pio_pin_to_port(unsigned int pin)
 {
        switch (pin >> 5) {
        case 0:
-               return (void *)PIOA_BASE;
+               return (void *)ATMEL_BASE_PIOA;
        case 1:
-               return (void *)PIOB_BASE;
+               return (void *)ATMEL_BASE_PIOB;
        case 2:
-               return (void *)PIOC_BASE;
+               return (void *)ATMEL_BASE_PIOC;
        case 3:
-               return (void *)PIOD_BASE;
+               return (void *)ATMEL_BASE_PIOD;
        case 4:
-               return (void *)PIOE_BASE;
+               return (void *)ATMEL_BASE_PIOE;
        default:
                return NULL;
        }