mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 14:26:42 +07:00
ARM: mach-shmobile: select the fixed regulator driver on several boards
On systems, using regulators to supply power to devices, if the REGULATOR Kconfig option is disabled, regulator API stubs will be used, which often suffices to bring a default configuration up. If REGULATOR is enabled but respective regulator drivers are inactive, the real regulator API calls will be used, which in the absence of drivers will fail to provide services. This patch prevents such a problem on sh-mobile boards by forcing REGULATOR_FIXED_VOLTAGE on if REGULATOR is selected. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Magnus Damm <damm@opensource.se> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
This commit is contained in:
parent
21503a86db
commit
34767f8dcc
@ -58,6 +58,7 @@ config MACH_G4EVM
|
|||||||
bool "G4EVM board"
|
bool "G4EVM board"
|
||||||
depends on ARCH_SH7377
|
depends on ARCH_SH7377
|
||||||
select ARCH_REQUIRE_GPIOLIB
|
select ARCH_REQUIRE_GPIOLIB
|
||||||
|
select REGULATOR_FIXED_VOLTAGE if REGULATOR
|
||||||
|
|
||||||
config MACH_AP4EVB
|
config MACH_AP4EVB
|
||||||
bool "AP4EVB board"
|
bool "AP4EVB board"
|
||||||
@ -65,6 +66,7 @@ config MACH_AP4EVB
|
|||||||
select ARCH_REQUIRE_GPIOLIB
|
select ARCH_REQUIRE_GPIOLIB
|
||||||
select SH_LCD_MIPI_DSI
|
select SH_LCD_MIPI_DSI
|
||||||
select SND_SOC_AK4642 if SND_SIMPLE_CARD
|
select SND_SOC_AK4642 if SND_SIMPLE_CARD
|
||||||
|
select REGULATOR_FIXED_VOLTAGE if REGULATOR
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "AP4EVB LCD panel selection"
|
prompt "AP4EVB LCD panel selection"
|
||||||
@ -83,6 +85,7 @@ config MACH_AG5EVM
|
|||||||
bool "AG5EVM board"
|
bool "AG5EVM board"
|
||||||
select ARCH_REQUIRE_GPIOLIB
|
select ARCH_REQUIRE_GPIOLIB
|
||||||
select SH_LCD_MIPI_DSI
|
select SH_LCD_MIPI_DSI
|
||||||
|
select REGULATOR_FIXED_VOLTAGE if REGULATOR
|
||||||
depends on ARCH_SH73A0
|
depends on ARCH_SH73A0
|
||||||
|
|
||||||
config MACH_MACKEREL
|
config MACH_MACKEREL
|
||||||
@ -90,15 +93,18 @@ config MACH_MACKEREL
|
|||||||
depends on ARCH_SH7372
|
depends on ARCH_SH7372
|
||||||
select ARCH_REQUIRE_GPIOLIB
|
select ARCH_REQUIRE_GPIOLIB
|
||||||
select SND_SOC_AK4642 if SND_SIMPLE_CARD
|
select SND_SOC_AK4642 if SND_SIMPLE_CARD
|
||||||
|
select REGULATOR_FIXED_VOLTAGE if REGULATOR
|
||||||
|
|
||||||
config MACH_KOTA2
|
config MACH_KOTA2
|
||||||
bool "KOTA2 board"
|
bool "KOTA2 board"
|
||||||
select ARCH_REQUIRE_GPIOLIB
|
select ARCH_REQUIRE_GPIOLIB
|
||||||
|
select REGULATOR_FIXED_VOLTAGE if REGULATOR
|
||||||
depends on ARCH_SH73A0
|
depends on ARCH_SH73A0
|
||||||
|
|
||||||
config MACH_BONITO
|
config MACH_BONITO
|
||||||
bool "bonito board"
|
bool "bonito board"
|
||||||
select ARCH_REQUIRE_GPIOLIB
|
select ARCH_REQUIRE_GPIOLIB
|
||||||
|
select REGULATOR_FIXED_VOLTAGE if REGULATOR
|
||||||
depends on ARCH_R8A7740
|
depends on ARCH_R8A7740
|
||||||
|
|
||||||
config MACH_ARMADILLO800EVA
|
config MACH_ARMADILLO800EVA
|
||||||
@ -106,22 +112,26 @@ config MACH_ARMADILLO800EVA
|
|||||||
depends on ARCH_R8A7740
|
depends on ARCH_R8A7740
|
||||||
select ARCH_REQUIRE_GPIOLIB
|
select ARCH_REQUIRE_GPIOLIB
|
||||||
select USE_OF
|
select USE_OF
|
||||||
|
select REGULATOR_FIXED_VOLTAGE if REGULATOR
|
||||||
|
|
||||||
config MACH_MARZEN
|
config MACH_MARZEN
|
||||||
bool "MARZEN board"
|
bool "MARZEN board"
|
||||||
depends on ARCH_R8A7779
|
depends on ARCH_R8A7779
|
||||||
select ARCH_REQUIRE_GPIOLIB
|
select ARCH_REQUIRE_GPIOLIB
|
||||||
|
select REGULATOR_FIXED_VOLTAGE if REGULATOR
|
||||||
|
|
||||||
config MACH_KZM9D
|
config MACH_KZM9D
|
||||||
bool "KZM9D board"
|
bool "KZM9D board"
|
||||||
depends on ARCH_EMEV2
|
depends on ARCH_EMEV2
|
||||||
select USE_OF
|
select USE_OF
|
||||||
|
select REGULATOR_FIXED_VOLTAGE if REGULATOR
|
||||||
|
|
||||||
config MACH_KZM9G
|
config MACH_KZM9G
|
||||||
bool "KZM-A9-GT board"
|
bool "KZM-A9-GT board"
|
||||||
depends on ARCH_SH73A0
|
depends on ARCH_SH73A0
|
||||||
select ARCH_REQUIRE_GPIOLIB
|
select ARCH_REQUIRE_GPIOLIB
|
||||||
select USE_OF
|
select USE_OF
|
||||||
|
select REGULATOR_FIXED_VOLTAGE if REGULATOR
|
||||||
|
|
||||||
comment "SH-Mobile System Configuration"
|
comment "SH-Mobile System Configuration"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user