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 polaris

On polaris 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
73c2a9dc 2bd5d086

+10
+10
arch/sh/boards/board-polaris.c
··· 9 9 #include <linux/interrupt.h> 10 10 #include <linux/irq.h> 11 11 #include <linux/platform_device.h> 12 + #include <linux/regulator/fixed.h> 13 + #include <linux/regulator/machine.h> 12 14 #include <linux/smsc911x.h> 13 15 #include <linux/io.h> 14 16 #include <asm/irq.h> ··· 23 21 #define WCR2 (0xFFFFFF66) 24 22 #define AREA5_WAIT_CTRL (0x1C00) 25 23 #define WAIT_STATES_10 (0x7) 24 + 25 + /* Dummy supplies, where voltage doesn't matter */ 26 + static struct regulator_consumer_supply dummy_supplies[] = { 27 + REGULATOR_SUPPLY("vddvario", "smsc911x.0"), 28 + REGULATOR_SUPPLY("vdd33a", "smsc911x.0"), 29 + }; 26 30 27 31 static struct resource smsc911x_resources[] = { 28 32 [0] = { ··· 95 87 u16 wcr, bcr_mask; 96 88 97 89 printk(KERN_INFO "Configuring Polaris external bus\n"); 90 + 91 + regulator_register_fixed(0, dummy_supplies, ARRAY_SIZE(dummy_supplies)); 98 92 99 93 /* Configure area 5 with 2 wait states */ 100 94 wcr = __raw_readw(WCR2);