Searched refs:wm8350 (Results 1 - 25 of 27) sorted by relevance

12

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/power/
H A Dwm8350_power.c2 * Battery driver for wm8350 PMIC
19 #include <linux/mfd/wm8350/supply.h>
20 #include <linux/mfd/wm8350/core.h>
21 #include <linux/mfd/wm8350/comparator.h>
23 static int wm8350_read_battery_uvolts(struct wm8350 *wm8350) argument
25 return wm8350_read_auxadc(wm8350, WM8350_AUXADC_BATT, 0, 0)
29 static int wm8350_read_line_uvolts(struct wm8350 *wm8350) argument
31 return wm8350_read_auxadc(wm8350, WM8350_AUXADC_LIN
35 wm8350_read_usb_uvolts(struct wm8350 *wm8350) argument
45 wm8350_charge_time_min(struct wm8350 *wm8350, int min) argument
53 wm8350_get_supplies(struct wm8350 *wm8350) argument
89 wm8350_charger_config(struct wm8350 *wm8350, struct wm8350_charger_policy *policy) argument
139 wm8350_batt_status(struct wm8350 *wm8350) argument
162 struct wm8350 *wm8350 = dev_get_drvdata(dev); local
189 struct wm8350 *wm8350 = data; local
253 struct wm8350 *wm8350 = dev_get_drvdata(psy->dev->parent); local
283 struct wm8350 *wm8350 = dev_get_drvdata(psy->dev->parent); local
310 wm8350_bat_check_health(struct wm8350 *wm8350) argument
327 wm8350_bat_get_charge_type(struct wm8350 *wm8350) argument
349 struct wm8350 *wm8350 = dev_get_drvdata(psy->dev->parent); local
389 wm8350_init_charger(struct wm8350 *wm8350) argument
429 free_charger_irq(struct wm8350 *wm8350) argument
447 struct wm8350 *wm8350 = platform_get_drvdata(pdev); local
506 struct wm8350 *wm8350 = platform_get_drvdata(pdev); local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mfd/
H A Dwm8350-core.c2 * wm8350-core.c -- Device access for Wolfson WM8350
25 #include <linux/mfd/wm8350/core.h>
26 #include <linux/mfd/wm8350/audio.h>
27 #include <linux/mfd/wm8350/comparator.h>
28 #include <linux/mfd/wm8350/gpio.h>
29 #include <linux/mfd/wm8350/pmic.h>
30 #include <linux/mfd/wm8350/rtc.h>
31 #include <linux/mfd/wm8350/supply.h>
32 #include <linux/mfd/wm8350/wdt.h>
70 static int wm8350_phys_read(struct wm8350 *wm835 argument
92 wm8350_read(struct wm8350 *wm8350, u8 reg, int num_regs, u16 *dest) argument
132 is_reg_locked(struct wm8350 *wm8350, u8 reg) argument
146 wm8350_write(struct wm8350 *wm8350, u8 reg, int num_regs, u16 *src) argument
191 wm8350_clear_bits(struct wm8350 *wm8350, u16 reg, u16 mask) argument
213 wm8350_set_bits(struct wm8350 *wm8350, u16 reg, u16 mask) argument
235 wm8350_reg_read(struct wm8350 *wm8350, int reg) argument
250 wm8350_reg_write(struct wm8350 *wm8350, int reg, u16 val) argument
264 wm8350_block_read(struct wm8350 *wm8350, int start_reg, int regs, u16 *dest) argument
279 wm8350_block_write(struct wm8350 *wm8350, int start_reg, int regs, u16 *src) argument
301 wm8350_reg_lock(struct wm8350 *wm8350) argument
325 wm8350_reg_unlock(struct wm8350 *wm8350) argument
340 wm8350_read_auxadc(struct wm8350 *wm8350, int channel, int scale, int vref) argument
395 struct wm8350 *wm8350 = irq_data; local
405 wm8350_create_cache(struct wm8350 *wm8350, int type, int mode) argument
547 wm8350_client_dev_register(struct wm8350 *wm8350, const char *name, struct platform_device **pdev) argument
569 wm8350_device_init(struct wm8350 *wm8350, int irq, struct wm8350_platform_data *pdata) argument
749 wm8350_device_exit(struct wm8350 *wm8350) argument
[all...]
H A Dwm8350-i2c.c2 * wm8350-i2c.c -- Generic I2C driver for Wolfson WM8350 PMIC
21 #include <linux/mfd/wm8350/core.h>
24 static int wm8350_i2c_read_device(struct wm8350 *wm8350, char reg, argument
29 ret = i2c_master_send(wm8350->i2c_client, &reg, 1);
32 ret = i2c_master_recv(wm8350->i2c_client, dest, bytes);
40 static int wm8350_i2c_write_device(struct wm8350 *wm8350, char reg, argument
52 ret = i2c_master_send(wm8350->i2c_client, msg, bytes + 1);
63 struct wm8350 *wm835 local
89 struct wm8350 *wm8350 = i2c_get_clientdata(i2c); local
[all...]
H A Dwm8350-gpio.c2 * wm8350-core.c -- Device access for Wolfson WM8350
19 #include <linux/mfd/wm8350/core.h>
20 #include <linux/mfd/wm8350/gpio.h>
21 #include <linux/mfd/wm8350/pmic.h>
23 static int gpio_set_dir(struct wm8350 *wm8350, int gpio, int dir) argument
27 wm8350_reg_unlock(wm8350);
29 ret = wm8350_clear_bits(wm8350,
33 ret = wm8350_set_bits(wm8350,
36 wm8350_reg_lock(wm8350);
40 gpio_set_debounce(struct wm8350 *wm8350, int gpio, int db) argument
50 gpio_set_func(struct wm8350 *wm8350, int gpio, int func) argument
143 gpio_set_pull_up(struct wm8350 *wm8350, int gpio, int up) argument
155 gpio_set_pull_down(struct wm8350 *wm8350, int gpio, int down) argument
167 gpio_set_polarity(struct wm8350 *wm8350, int gpio, int pol) argument
179 gpio_set_invert(struct wm8350 *wm8350, int gpio, int invert) argument
188 wm8350_gpio_config(struct wm8350 *wm8350, int gpio, int dir, int func, int pol, int pull, int invert, int debounce) argument
[all...]
H A Dwm8350-irq.c2 * wm8350-irq.c -- IRQ support for Wolfson WM8350
23 #include <linux/mfd/wm8350/core.h>
24 #include <linux/mfd/wm8350/audio.h>
25 #include <linux/mfd/wm8350/comparator.h>
26 #include <linux/mfd/wm8350/gpio.h>
27 #include <linux/mfd/wm8350/pmic.h>
28 #include <linux/mfd/wm8350/rtc.h>
29 #include <linux/mfd/wm8350/supply.h>
30 #include <linux/mfd/wm8350/wdt.h>
367 static inline struct wm8350_irq_data *irq_to_wm8350_irq(struct wm8350 *wm835 argument
384 struct wm8350 *wm8350 = irq_data; local
422 struct wm8350 *wm8350 = get_irq_chip_data(irq); local
429 struct wm8350 *wm8350 = get_irq_chip_data(irq); local
447 struct wm8350 *wm8350 = get_irq_chip_data(irq); local
455 struct wm8350 *wm8350 = get_irq_chip_data(irq); local
469 wm8350_irq_init(struct wm8350 *wm8350, int irq, struct wm8350_platform_data *pdata) argument
544 wm8350_irq_exit(struct wm8350 *wm8350) argument
[all...]
H A DMakefile27 wm8350-objs := wm8350-core.o wm8350-regmap.o wm8350-gpio.o
28 wm8350-objs += wm8350-irq.o
29 obj-$(CONFIG_MFD_WM8350) += wm8350.o
30 obj-$(CONFIG_MFD_WM8350_I2C) += wm8350-i2c.o
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/watchdog/
H A Dwm8350_wdt.c2 * Watchdog driver for the wm8350
20 #include <linux/mfd/wm8350/core.h>
42 static struct wm8350 *get_wm8350(void)
47 static int wm8350_wdt_set_timeout(struct wm8350 *wm8350, u16 value) argument
53 wm8350_reg_unlock(wm8350);
55 reg = wm8350_reg_read(wm8350, WM8350_SYSTEM_CONTROL_2);
58 ret = wm8350_reg_write(wm8350, WM8350_SYSTEM_CONTROL_2, reg);
60 wm8350_reg_lock(wm8350);
66 static int wm8350_wdt_start(struct wm8350 *wm835 argument
85 wm8350_wdt_stop(struct wm8350 *wm8350) argument
103 wm8350_wdt_kick(struct wm8350 *wm8350) argument
120 struct wm8350 *wm8350 = get_wm8350(); local
138 struct wm8350 *wm8350 = get_wm8350(); local
156 struct wm8350 *wm8350 = get_wm8350(); local
188 struct wm8350 *wm8350 = get_wm8350(); local
284 struct wm8350 *wm8350 = platform_get_drvdata(pdev); local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/gpio/
H A Dwm8350-gpiolib.c23 #include <linux/mfd/wm8350/core.h>
24 #include <linux/mfd/wm8350/gpio.h>
27 struct wm8350 *wm8350; member in struct:wm8350_gpio_data
39 struct wm8350 *wm8350 = wm8350_gpio->wm8350; local
41 return wm8350_set_bits(wm8350, WM8350_GPIO_CONFIGURATION_I_O,
48 struct wm8350 *wm8350 local
64 struct wm8350 *wm8350 = wm8350_gpio->wm8350; local
76 struct wm8350 *wm8350 = wm8350_gpio->wm8350; local
93 struct wm8350 *wm8350 = wm8350_gpio->wm8350; local
114 struct wm8350 *wm8350 = dev_get_drvdata(pdev->dev.parent); local
[all...]
H A DMakefile34 obj-$(CONFIG_GPIO_WM8350) += wm8350-gpiolib.o
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/rtc/
H A Drtc-wm8350.c24 #include <linux/mfd/wm8350/rtc.h>
25 #include <linux/mfd/wm8350/core.h>
33 #define to_wm8350_from_rtc_dev(d) container_of(d, struct wm8350, rtc.pdev.dev)
40 struct wm8350 *wm8350 = dev_get_drvdata(dev); local
49 ret = wm8350_block_read(wm8350, WM8350_RTC_SECONDS_MINUTES,
53 ret = wm8350_block_read(wm8350, WM8350_RTC_SECONDS_MINUTES,
99 struct wm8350 *wm8350 = dev_get_drvdata(dev); local
117 ret = wm8350_set_bits(wm8350, WM8350_RTC_TIME_CONTRO
148 struct wm8350 *wm8350 = dev_get_drvdata(dev); local
192 wm8350_rtc_stop_alarm(struct wm8350 *wm8350) argument
216 wm8350_rtc_start_alarm(struct wm8350 *wm8350) argument
242 struct wm8350 *wm8350 = dev_get_drvdata(dev); local
252 struct wm8350 *wm8350 = dev_get_drvdata(dev); local
308 struct wm8350 *wm8350 = dev_get_drvdata(dev); local
327 struct wm8350 *wm8350 = data; local
346 struct wm8350 *wm8350 = data; local
367 struct wm8350 *wm8350 = dev_get_drvdata(&pdev->dev); local
387 struct wm8350 *wm8350 = dev_get_drvdata(&pdev->dev); local
407 struct wm8350 *wm8350 = platform_get_drvdata(pdev); local
485 struct wm8350 *wm8350 = platform_get_drvdata(pdev); local
[all...]
H A DMakefile99 obj-$(CONFIG_RTC_DRV_WM8350) += rtc-wm8350.o
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/regulator/
H A Dwm8350-regulator.c2 * wm8350.c -- Voltage and current regulation for the Wolfson WM8350 PMIC
21 #include <linux/mfd/wm8350/core.h>
22 #include <linux/mfd/wm8350/pmic.h>
141 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
152 val = wm8350_reg_read(wm8350, WM8350_CURRENT_SINK_DRIVER_A) &
154 wm8350_reg_write(wm8350, WM8350_CURRENT_SINK_DRIVER_A,
158 val = wm8350_reg_read(wm8350, WM8350_CURRENT_SINK_DRIVER_B) &
160 wm8350_reg_write(wm8350, WM8350_CURRENT_SINK_DRIVER_B,
172 struct wm8350 *wm835 local
195 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
239 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
279 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
295 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
338 wm8350_isink_set_flash(struct wm8350 *wm8350, int isink, u16 mode, u16 trigger, u16 duration, u16 on_ramp, u16 off_ramp, u16 drive) argument
365 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
408 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
446 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
489 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
529 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
569 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
594 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
620 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
662 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
700 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
729 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
759 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
808 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
842 wm8350_dcdc_set_slot(struct wm8350 *wm8350, int dcdc, u16 start, u16 stop, u16 fault) argument
890 wm8350_ldo_set_slot(struct wm8350 *wm8350, int ldo, u16 start, u16 stop) argument
925 wm8350_dcdc25_set_mode(struct wm8350 *wm8350, int dcdc, u16 mode, u16 ilim, u16 ramp, u16 feedback) argument
964 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
978 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
993 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
1007 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
1019 force_continuous_enable(struct wm8350 *wm8350, int dcdc, int enable) argument
1051 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
1094 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
1202 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
1215 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
1382 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
1400 struct wm8350 *wm8350 = dev_get_drvdata(&pdev->dev); local
1454 struct wm8350 *wm8350 = rdev_get_drvdata(rdev); local
1463 wm8350_register_regulator(struct wm8350 *wm8350, int reg, struct regulator_init_data *initdata) argument
1522 wm8350_register_led(struct wm8350 *wm8350, int lednum, int dcdc, int isink, struct wm8350_led_platform_data *pdata) argument
[all...]
H A DMakefile24 obj-$(CONFIG_REGULATOR_WM8350) += wm8350-regulator.o
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/hwmon/
H A Dwm8350-hwmon.c2 * drivers/hwmon/wm8350-hwmon.c - Wolfson Microelectronics WM8350 PMIC
28 #include <linux/mfd/wm8350/core.h>
29 #include <linux/mfd/wm8350/comparator.h>
34 return sprintf(buf, "wm8350\n");
47 struct wm8350 *wm8350 = dev_get_drvdata(dev); local
51 val = wm8350_read_auxadc(wm8350, channel, 0, 0) * WM8350_AUX_COEFF;
96 struct wm8350 *wm8350 = platform_get_drvdata(pdev); local
103 wm8350
119 struct wm8350 *wm8350 = platform_get_drvdata(pdev); local
[all...]
H A DMakefile110 obj-$(CONFIG_SENSORS_WM8350) += wm8350-hwmon.o
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/soc/codecs/
H A Dwm8350.c2 * wm8350.c -- WM8350 ALSA SoC audio driver
20 #include <linux/mfd/wm8350/audio.h>
21 #include <linux/mfd/wm8350/core.h>
31 #include "wm8350.h"
76 struct wm8350 *wm8350 = codec->control_data; local
77 return wm8350->reg_cache[reg];
83 struct wm8350 *wm8350 = codec->control_data; local
84 return wm8350_reg_read(wm8350, re
90 struct wm8350 *wm8350 = codec->control_data; local
101 struct wm8350 *wm8350 = codec->control_data; local
167 struct wm8350 *wm8350 = codec->control_data; local
813 struct wm8350 *wm8350 = codec->control_data; local
998 struct wm8350 *wm8350 = codec->control_data; local
1037 struct wm8350 *wm8350 = codec->control_data; local
1111 struct wm8350 *wm8350 = codec->control_data; local
1163 struct wm8350 *wm8350 = codec->control_data; local
1346 struct wm8350 *wm8350 = priv->codec.control_data; local
1401 struct wm8350 *wm8350 = codec->control_data; local
1441 struct wm8350 *wm8350 = priv->codec.control_data; local
1473 struct wm8350 *wm8350 = codec->control_data; local
1498 struct wm8350 *wm8350; local
1579 struct wm8350 *wm8350 = codec->control_data; local
1659 struct wm8350 *wm8350 = platform_get_drvdata(pdev); local
1729 struct wm8350 *wm8350 = platform_get_drvdata(pdev); local
[all...]
H A Dwm8350.h2 * wm8350.h - WM8903 audio codec interface
16 #include <linux/mfd/wm8350/audio.h>
H A DMakefile29 snd-soc-wm8350-objs := wm8350.o
98 obj-$(CONFIG_SND_SOC_WM8350) += snd-soc-wm8350.o
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/mfd/wm8350/
H A Dcore.h21 #include <linux/mfd/wm8350/audio.h>
22 #include <linux/mfd/wm8350/gpio.h>
23 #include <linux/mfd/wm8350/pmic.h>
24 #include <linux/mfd/wm8350/rtc.h>
25 #include <linux/mfd/wm8350/supply.h>
26 #include <linux/mfd/wm8350/wdt.h>
575 /* wm8350 chip revisions */
604 struct wm8350;
611 struct wm8350 { struct
619 int (*read_dev)(struct wm8350 *wm835
682 wm8350_register_irq(struct wm8350 *wm8350, int irq, irq_handler_t handler, unsigned long flags, const char *name, void *data) argument
694 wm8350_free_irq(struct wm8350 *wm8350, int irq, void *data) argument
699 wm8350_mask_irq(struct wm8350 *wm8350, int irq) argument
704 wm8350_unmask_irq(struct wm8350 *wm8350, int irq) argument
[all...]
H A Dcomparator.h167 struct wm8350;
172 int wm8350_read_auxadc(struct wm8350 *wm8350, int channel, int scale,
H A Dpmic.h703 struct wm8350;
756 int wm8350_register_regulator(struct wm8350 *wm8350, int reg,
758 int wm8350_register_led(struct wm8350 *wm8350, int lednum, int dcdc, int isink,
764 int wm8350_dcdc_set_slot(struct wm8350 *wm8350, int dcdc, u16 start,
766 int wm8350_dcdc25_set_mode(struct wm8350 *wm8350, int dcdc, u16 mode,
772 int wm8350_ldo_set_slot(struct wm8350 *wm835
[all...]
H A Dgpio.h347 struct wm8350;
349 int wm8350_gpio_config(struct wm8350 *wm8350, int gpio, int dir, int func,
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/mach-mx3/
H A Dmach-mx31ads.c35 #include <linux/mfd/wm8350/audio.h>
36 #include <linux/mfd/wm8350/core.h>
37 #include <linux/mfd/wm8350/pmic.h>
382 .name = "wm8350:white",
407 static int mx31_wm8350_init(struct wm8350 *wm8350) argument
409 wm8350_gpio_config(wm8350, 0, WM8350_GPIO_DIR_IN,
414 wm8350_gpio_config(wm8350, 3, WM8350_GPIO_DIR_IN,
419 wm8350_gpio_config(wm8350, 4, WM8350_GPIO_DIR_IN,
424 wm8350_gpio_config(wm8350,
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/mach-s3c64xx/
H A Dmach-smdk6410.c33 #include <linux/mfd/wm8350/core.h>
34 #include <linux/mfd/wm8350/pmic.h>
488 static int __init smdk6410_wm8350_init(struct wm8350 *wm8350) argument
497 wm8350_register_regulator(wm8350,
623 { I2C_BOARD_INFO("wm8350", 0x1a),
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/leds/
H A DMakefile32 obj-$(CONFIG_LEDS_WM8350) += leds-wm8350.o

Completed in 276 milliseconds

12