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

sh: add fixed voltage regulators to apsh4a3a

On apsh4a3a provide a dummy regulator for the smsc911x driver.

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
920f5500 15719ccc

+10
+10
arch/sh/boards/board-apsh4a3a.c
··· 13 13 #include <linux/platform_device.h> 14 14 #include <linux/io.h> 15 15 #include <linux/mtd/physmap.h> 16 + #include <linux/regulator/fixed.h> 17 + #include <linux/regulator/machine.h> 16 18 #include <linux/smsc911x.h> 17 19 #include <linux/irq.h> 18 20 #include <linux/clk.h> ··· 68 66 .resource = nor_flash_resources, 69 67 }; 70 68 69 + /* Dummy supplies, where voltage doesn't matter */ 70 + static struct regulator_consumer_supply dummy_supplies[] = { 71 + REGULATOR_SUPPLY("vddvario", "smsc911x"), 72 + REGULATOR_SUPPLY("vdd33a", "smsc911x"), 73 + }; 74 + 71 75 static struct resource smsc911x_resources[] = { 72 76 [0] = { 73 77 .name = "smsc911x-memory", ··· 113 105 114 106 static int __init apsh4a3a_devices_setup(void) 115 107 { 108 + regulator_register_fixed(0, dummy_supplies, ARRAY_SIZE(dummy_supplies)); 109 + 116 110 return platform_add_devices(apsh4a3a_devices, 117 111 ARRAY_SIZE(apsh4a3a_devices)); 118 112 }