Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: 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>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Guennadi Liakhovetski and committed by
Paul Mundt
89d71486 d4c191df

+13
+13
arch/sh/boards/Kconfig
··· 55 55 depends on CPU_SUBTYPE_SH7724 56 56 select ARCH_REQUIRE_GPIOLIB 57 57 select SND_SOC_AK4642 if SND_SIMPLE_CARD 58 + select REGULATOR_FIXED_VOLTAGE if REGULATOR 58 59 help 59 60 Select 7724 SolutionEngine if configuring for a Hitachi SH7724 60 61 evaluation board. ··· 137 136 bool "Renesas Starter Kit" 138 137 depends on CPU_SUBTYPE_SH7201 || CPU_SUBTYPE_SH7203 || \ 139 138 CPU_SUBTYPE_SH7264 || CPU_SUBTYPE_SH7269 139 + select REGULATOR_FIXED_VOLTAGE if REGULATOR 140 140 help 141 141 Select this option if configuring for any of the RSK+ MCU 142 142 evaluation platforms. ··· 157 155 select NO_IOPORT if !PCI 158 156 select ARCH_WANT_OPTIONAL_GPIOLIB 159 157 select HAVE_SRAM_POOL 158 + select REGULATOR_FIXED_VOLTAGE if REGULATOR 160 159 help 161 160 Select SDK7786 if configuring for a Renesas Technology Europe 162 161 SH7786-65nm board. ··· 172 169 bool "SH7757LCR" 173 170 depends on CPU_SUBTYPE_SH7757 174 171 select ARCH_REQUIRE_GPIOLIB 172 + select REGULATOR_FIXED_VOLTAGE if REGULATOR 175 173 176 174 config SH_SH7785LCR 177 175 bool "SH7785LCR" ··· 206 202 bool "Migo-R" 207 203 depends on CPU_SUBTYPE_SH7722 208 204 select ARCH_REQUIRE_GPIOLIB 205 + select REGULATOR_FIXED_VOLTAGE if REGULATOR 209 206 help 210 207 Select Migo-R if configuring for the SH7722 Migo-R platform 211 208 by Renesas System Solutions Asia Pte. Ltd. ··· 215 210 bool "AP-325RXA" 216 211 depends on CPU_SUBTYPE_SH7723 217 212 select ARCH_REQUIRE_GPIOLIB 213 + select REGULATOR_FIXED_VOLTAGE if REGULATOR 218 214 help 219 215 Renesas "AP-325RXA" support. 220 216 Compatible with ALGO SYSTEM CO.,LTD. "AP-320A" ··· 224 218 bool "KFR2R09" 225 219 depends on CPU_SUBTYPE_SH7724 226 220 select ARCH_REQUIRE_GPIOLIB 221 + select REGULATOR_FIXED_VOLTAGE if REGULATOR 227 222 help 228 223 "Kit For R2R for 2009" support. 229 224 ··· 233 226 depends on CPU_SUBTYPE_SH7724 234 227 select ARCH_REQUIRE_GPIOLIB 235 228 select SND_SOC_DA7210 if SND_SIMPLE_CARD 229 + select REGULATOR_FIXED_VOLTAGE if REGULATOR 236 230 help 237 231 Renesas "R0P7724LC0011/21RL (EcoVec)" support. 238 232 ··· 308 300 bool "Magic Panel R2" 309 301 depends on CPU_SUBTYPE_SH7720 310 302 select ARCH_REQUIRE_GPIOLIB 303 + select REGULATOR_FIXED_VOLTAGE if REGULATOR 311 304 help 312 305 Select Magic Panel R2 if configuring for Magic Panel R2. 313 306 ··· 320 311 config SH_POLARIS 321 312 bool "SMSC Polaris" 322 313 select CPU_HAS_IPR_IRQ 314 + select REGULATOR_FIXED_VOLTAGE if REGULATOR 323 315 depends on CPU_SUBTYPE_SH7709 324 316 help 325 317 Select if configuring for an SMSC Polaris development board ··· 328 318 config SH_SH2007 329 319 bool "SH-2007 board" 330 320 select NO_IOPORT 321 + select REGULATOR_FIXED_VOLTAGE if REGULATOR 331 322 depends on CPU_SUBTYPE_SH7780 332 323 help 333 324 SH-2007 is a single-board computer based around SH7780 chip ··· 340 329 config SH_APSH4A3A 341 330 bool "AP-SH4A-3A" 342 331 select SH_ALPHA_BOARD 332 + select REGULATOR_FIXED_VOLTAGE if REGULATOR 343 333 depends on CPU_SUBTYPE_SH7785 344 334 help 345 335 Select AP-SH4A-3A if configuring for an ALPHAPROJECT AP-SH4A-3A. ··· 349 337 bool "AP-SH4AD-0A" 350 338 select SH_ALPHA_BOARD 351 339 select SYS_SUPPORTS_PCI 340 + select REGULATOR_FIXED_VOLTAGE if REGULATOR 352 341 depends on CPU_SUBTYPE_SH7786 353 342 help 354 343 Select AP-SH4AD-0A if configuring for an ALPHAPROJECT AP-SH4AD-0A.