rpi3: gpio: Simplify GPIO setup
There is really no reason to use and pass around a struct when its only
member is the (fixed) base address.

Remove the struct and just use the base address on its own inside the
GPIO driver. Then set the base address automatically.

This simplifies GPIO setup for users, which now don't need to deal with
zeroing a struct and setting the base address anymore.

Change-Id: I3060f7859e3f8ef9a24cc8fb38307b5da943f127
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
1 parent f9ea3a6 commit 0d92745e101b95a19c34dd6e2d1eccc2d9fcb629
@Andre Przywara Andre Przywara authored on 11 Mar 2020
Showing 3 changed files
View
drivers/rpi3/gpio/rpi3_gpio.c
View
include/drivers/rpi3/gpio/rpi3_gpio.h
View
plat/rpi/rpi3/rpi3_bl2_setup.c