[U-Boot] [PATCH v2] dm: gpio: MPC85XX GPIO platform data support
Simon Glass
sjg at chromium.org
Mon Jul 4 01:25:53 CEST 2016
On 16 June 2016 at 21:50, Simon Glass <sjg at chromium.org> wrote:
> On 13 June 2016 at 16:17, Hamish Martin
> <hamish.martin at alliedtelesis.co.nz> wrote:
>> Define a platform data structure for the MPC85XX GPIO driver to allow
>> use of the driver without device tree. Users should define the GPIO
>> blocks for their platform like this:
>> struct mpc85xx_gpio_plat gpio_blocks[] = {
>> {
>> .addr = 0x130000,
>> .ngpios = 32,
>> },
>> {
>> .addr = 0x131000,
>> .ngpios = 32,
>> },
>> };
>>
>> U_BOOT_DEVICES(my_platform_gpios) = {
>> { "gpio_mpc85xx", &gpio_blocks[0] },
>> { "gpio_mpc85xx", &gpio_blocks[1] },
>> };
>>
>> This is intended to build upon the recent submission of the base
>> MPC85XX driver from Mario Six. We need to use that new driver
>> without dts support and this patch gives us that flexibility.
>> This has been tested on a Freescale T2080 CPU, although only the first
>> GPIO block.
>>
>> Signed-off-by: Hamish Martin <hamish.martin at alliedtelesis.co.nz>
>> Reviewed-by: Mario Six <mario.six at gdsys.cc>
>> Tested-by: Mario Six <mario.six at gdsys.cc>
>> ---
>> Changes for v2:
>> - Fix compile errors noted by Mario Six
>> - Added Mario's review and test tags
>>
>>
>> ---
>> arch/powerpc/include/asm/arch-mpc85xx/gpio.h | 6 +++++
>> drivers/gpio/mpc85xx_gpio.c | 37 ++++++++++++++++++++++------
>> 2 files changed, 36 insertions(+), 7 deletions(-)
>
> Acked-by: Simon Glass <sjg at chromium.org>
Applied to u-boot-dm/next, thanks!
More information about the U-Boot
mailing list