Line 78... |
Line 78... |
struct gpio_device *gpio = &(gpios[i]);
|
struct gpio_device *gpio = &(gpios[i]);
|
|
|
if ( gpio->baseaddr == 0 )
|
if ( gpio->baseaddr == 0 )
|
continue;
|
continue;
|
|
|
printf( "\nGPIO %u at 0x%08X:\n", i, gpio->baseaddr );
|
PRINTF( "\nGPIO %u at 0x%08X:\n", i, gpio->baseaddr );
|
printf( "RGPIO_IN : 0x%08lX\n", gpio->curr.in );
|
PRINTF( "RGPIO_IN : 0x%08lX\n", gpio->curr.in );
|
printf( "RGPIO_OUT : 0x%08lX\n", gpio->curr.out );
|
PRINTF( "RGPIO_OUT : 0x%08lX\n", gpio->curr.out );
|
printf( "RGPIO_OE : 0x%08lX\n", gpio->curr.oe );
|
PRINTF( "RGPIO_OE : 0x%08lX\n", gpio->curr.oe );
|
printf( "RGPIO_INTE : 0x%08lX\n", gpio->curr.inte );
|
PRINTF( "RGPIO_INTE : 0x%08lX\n", gpio->curr.inte );
|
printf( "RGPIO_PTRIG : 0x%08lX\n", gpio->curr.ptrig );
|
PRINTF( "RGPIO_PTRIG : 0x%08lX\n", gpio->curr.ptrig );
|
printf( "RGPIO_AUX : 0x%08lX\n", gpio->curr.aux );
|
PRINTF( "RGPIO_AUX : 0x%08lX\n", gpio->curr.aux );
|
printf( "RGPIO_CTRL : 0x%08lX\n", gpio->curr.ctrl );
|
PRINTF( "RGPIO_CTRL : 0x%08lX\n", gpio->curr.ctrl );
|
printf( "RGPIO_INTS : 0x%08lX\n", gpio->curr.ints );
|
PRINTF( "RGPIO_INTS : 0x%08lX\n", gpio->curr.ints );
|
}
|
}
|
}
|
}
|
|
|
|
|
/* Convert a memory address to a device struct and relative address.
|
/* Convert a memory address to a device struct and relative address.
|