mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
rk2928:support pmic tp65910 gpio function
This commit is contained in:
@@ -605,7 +605,7 @@ void __sramfunc board_pmu_tps65910_resume(void)
|
||||
static struct tps65910_board tps65910_data = {
|
||||
.irq = (unsigned)TPS65910_HOST_IRQ,
|
||||
.irq_base = NR_GIC_IRQS + NR_GPIO_IRQS,
|
||||
// .gpio_base = TPS65910_GPIO_EXPANDER_BASE,
|
||||
.gpio_base = TPS65910_GPIO_EXPANDER_BASE,
|
||||
|
||||
.pre_init = tps65910_pre_init,
|
||||
.post_init = tps65910_post_init,
|
||||
|
||||
10
arch/arm/mach-rk2928/include/mach/gpio.h
Normal file → Executable file
10
arch/arm/mach-rk2928/include/mach/gpio.h
Normal file → Executable file
@@ -55,8 +55,18 @@
|
||||
#define WM8994_GPIO_EXPANDER_BASE (GPIO_EXPANDER_BASE+WM831X_TOTOL_GPIO_NUM)
|
||||
#else
|
||||
#define CONFIG_GPIO_WM8994_NUM 0
|
||||
#define WM8994_GPIO_EXPANDER_BASE (GPIO_EXPANDER_BASE+WM831X_TOTOL_GPIO_NUM)
|
||||
#endif
|
||||
|
||||
#if defined (CONFIG_GPIO_TPS65910)
|
||||
#define CONFIG_GPIO_TPS65910_NUM 9
|
||||
#define TPS65910_GPIO_EXPANDER_BASE (WM8994_GPIO_EXPANDER_BASE+CONFIG_GPIO_WM8994_NUM)
|
||||
#else
|
||||
#define CONFIG_GPIO_TPS65910_NUM 0
|
||||
#define TPS65910_GPIO_EXPANDER_BASE (WM8994_GPIO_EXPANDER_BASE+CONFIG_GPIO_WM8994_NUM)
|
||||
#endif
|
||||
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>GPIO<49><4F>PIN<49><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF>CONFIG_SPI_FPGA_GPIO_NUM<55><4D>ʾFPGA<47><41>PIN<49><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
#define ARCH_NR_GPIOS (PIN_BASE + RK2928_TOTOL_GPIO_NUM + TCA6424_TOTOL_GPIO_NUM + WM831X_TOTOL_GPIO_NUM + CONFIG_SPI_FPGA_GPIO_NUM + CONFIG_GPIO_WM8994_NUM)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user