Changeset 1828
- Timestamp:
- 04/25/07 11:15:33 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/kernel/patches/gta01-pcf50606.patch
r1715 r1828 1 1 This is the PCF50606 power management unit driver for FIC GTA01 2 2 3 Index: linux-2.6.20. 4/drivers/i2c/chips/pcf50606.c3 Index: linux-2.6.20.7-moko/drivers/i2c/chips/pcf50606.c 4 4 =================================================================== 5 --- /dev/null 1970-01-01 00:00:00.000000000 +00006 +++ linux-2.6.20. 4/drivers/i2c/chips/pcf50606.c 2007-04-02 19:12:27.000000000 +02007 @@ -0,0 +1,192 1@@5 --- /dev/null 6 +++ linux-2.6.20.7-moko/drivers/i2c/chips/pcf50606.c 7 @@ -0,0 +1,1923 @@ 8 8 +/* Philips PCF50606 Power Management Unit (PMU) driver 9 9 + * … … 863 863 + return -EIO; 864 864 + 865 + /* FIXME: consult platform-specific table to make sure we don't 866 + * set a too high voltage on any regulator! */ 867 + 868 + DEBUGP("setting %s(%d) to %lu mvolts\n", attr->attr.name, reg_id, 869 + mvolts); 865 + DEBUGP("attempting to set %s(%d) to %lu mvolts\n", attr->attr.name, 866 + reg_id, mvolts); 870 867 + 871 868 + if (mvolts == 0) { 872 869 + pcf50606_onoff_set(pcf, reg_id, 0); 873 870 + } else { 874 + pcf50606_voltage_set(pcf, reg_id, mvolts); 871 + if (pcf50606_voltage_set(pcf, reg_id, mvolts) < 0) { 872 + dev_warn(dev, "refusing to set %s(%d) to %lu mvolts " 873 + "(max=%u)\n", attr->attr.name, reg_id, mvolts, 874 + pcf->pdata->rails[reg_id].voltage.max); 875 + return -EINVAL; 876 + } 875 877 + pcf50606_onoff_set(pcf, reg_id, 1); 876 878 + } … … 1927 1929 +module_init(pcf50606_init); 1928 1930 +module_exit(pcf50606_exit); 1929 Index: linux-2.6.20. 4/drivers/i2c/chips/pcf50606.h1931 Index: linux-2.6.20.7-moko/drivers/i2c/chips/pcf50606.h 1930 1932 =================================================================== 1931 --- /dev/null 1970-01-01 00:00:00.000000000 +00001932 +++ linux-2.6.20. 4/drivers/i2c/chips/pcf50606.h 2007-04-01 12:46:15.000000000 +02001933 --- /dev/null 1934 +++ linux-2.6.20.7-moko/drivers/i2c/chips/pcf50606.h 1933 1935 @@ -0,0 +1,302 @@ 1934 1936 +#ifndef _PCF50606_H … … 2234 2236 +#endif /* _PCF50606_H */ 2235 2237 + 2236 Index: linux-2.6.20. 4/drivers/i2c/chips/Kconfig2238 Index: linux-2.6.20.7-moko/drivers/i2c/chips/Kconfig 2237 2239 =================================================================== 2238 --- linux-2.6.20. 4.orig/drivers/i2c/chips/Kconfig 2007-03-23 20:52:51.000000000 +01002239 +++ linux-2.6.20. 4/drivers/i2c/chips/Kconfig 2007-03-26 19:01:17.000000000 +02002240 --- linux-2.6.20.7-moko.orig/drivers/i2c/chips/Kconfig 2241 +++ linux-2.6.20.7-moko/drivers/i2c/chips/Kconfig 2240 2242 @@ -36,6 +36,17 @@ 2241 2243 This driver can also be built as a module. If so, the module … … 2256 2258 tristate "Philips PCF8574 and PCF8574A" 2257 2259 depends on I2C && EXPERIMENTAL 2258 Index: linux-2.6.20. 4/drivers/i2c/chips/Makefile2260 Index: linux-2.6.20.7-moko/drivers/i2c/chips/Makefile 2259 2261 =================================================================== 2260 --- linux-2.6.20. 4.orig/drivers/i2c/chips/Makefile 2007-03-23 20:52:51.000000000 +01002261 +++ linux-2.6.20. 4/drivers/i2c/chips/Makefile 2007-03-26 19:01:17.000000000 +02002262 --- linux-2.6.20.7-moko.orig/drivers/i2c/chips/Makefile 2263 +++ linux-2.6.20.7-moko/drivers/i2c/chips/Makefile 2262 2264 @@ -8,6 +8,7 @@ 2263 2265 obj-$(CONFIG_SENSORS_MAX6875) += max6875.o … … 2268 2270 obj-$(CONFIG_SENSORS_PCF8591) += pcf8591.o 2269 2271 obj-$(CONFIG_ISP1301_OMAP) += isp1301_omap.o 2270 Index: linux-2.6.20. 4/include/linux/i2c-id.h2272 Index: linux-2.6.20.7-moko/include/linux/i2c-id.h 2271 2273 =================================================================== 2272 --- linux-2.6.20. 4.orig/include/linux/i2c-id.h 2007-03-26 19:01:17.000000000 +02002273 +++ linux-2.6.20. 4/include/linux/i2c-id.h 2007-03-26 19:01:17.000000000 +02002274 --- linux-2.6.20.7-moko.orig/include/linux/i2c-id.h 2275 +++ linux-2.6.20.7-moko/include/linux/i2c-id.h 2274 2276 @@ -159,6 +159,7 @@ 2275 2277 #define I2C_DRIVERID_FSCHER 1046 … … 2280 2282 /* 2281 2283 * ---- Adapter types ---------------------------------------------------- 2282 Index: linux-2.6.20. 4/include/linux/pcf50606.h2284 Index: linux-2.6.20.7-moko/include/linux/pcf50606.h 2283 2285 =================================================================== 2284 --- /dev/null 1970-01-01 00:00:00.000000000 +00002285 +++ linux-2.6.20. 4/include/linux/pcf50606.h 2007-04-01 13:01:16.000000000 +02002286 --- /dev/null 2287 +++ linux-2.6.20.7-moko/include/linux/pcf50606.h 2286 2288 @@ -0,0 +1,101 @@ 2287 2289 +#ifndef _LINUX_PCF50606_H
Note: See TracChangeset
for help on using the changeset viewer.
