This converts the Wolfson Micro WM831x DCDC converter to use a GPIO descriptor for the GPIO driving the DVS pin. There is just one (non-DT) machine in the kernel using this, and that is the Wolfson Micro (now Cirrus) Cragganmore 6410 so we patch this board to pass a descriptor table and fix up the driver accordingly.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -52,7 +52,6 @@ struct wm831x_battery_pdata { · 51 unmodified lines | |||
| 52 | * I2C or SPI buses. | 52 | * I2C or SPI buses. |
| 53 | */ | 53 | */ |
| 54 | struct wm831x_buckv_pdata { | 54 | struct wm831x_buckv_pdata { |
| 55 | int dvs_gpio; /** CPU GPIO to use for DVS switching */ | ||
| 56 | int dvs_control_src; /** Hardware DVS source to use (1 or 2) */ | 55 | int dvs_control_src; /** Hardware DVS source to use (1 or 2) */ |
| 57 | int dvs_init_state; /** DVS state to expect on startup */ | 56 | int dvs_init_state; /** DVS state to expect on startup */ |
| 58 | int dvs_state_gpio; /** CPU GPIO to use for monitoring status */ | 57 | int dvs_state_gpio; /** CPU GPIO to use for monitoring status */ |