sunxi: axp: Add driver-model support to the axp_gpio code
Add driver-model support to the axp_gpio code, note that this needs a small tweak to the driver-model version of sunxi_name_to_gpio to deal with the vbus detect and enable pins which are not standard numbered gpios. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Ian Campbell <ijc@hellion.org.uk>
This commit is contained in:
@@ -203,8 +203,10 @@ enum sunxi_gpio_number {
|
||||
#define SUNXI_GPIO_PULL_DOWN 2
|
||||
|
||||
/* Virtual AXP0 GPIOs */
|
||||
#define SUNXI_GPIO_AXP0_VBUS_DETECT 8
|
||||
#define SUNXI_GPIO_AXP0_VBUS_ENABLE 9
|
||||
#define SUNXI_GPIO_AXP0_PREFIX "AXP0-"
|
||||
#define SUNXI_GPIO_AXP0_VBUS_DETECT 4
|
||||
#define SUNXI_GPIO_AXP0_VBUS_ENABLE 5
|
||||
#define SUNXI_GPIO_AXP0_GPIO_COUNT 6
|
||||
|
||||
void sunxi_gpio_set_cfgbank(struct sunxi_gpio *pio, int bank_offset, u32 val);
|
||||
void sunxi_gpio_set_cfgpin(u32 pin, u32 val);
|
||||
|
||||
Reference in New Issue
Block a user