Searched refs:sharpsl_pm (Results 1 - 10 of 10) sorted by path

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/arm/common/
H A DMakefile16 obj-$(CONFIG_SHARPSL_PM) += sharpsl_pm.o
H A Dsharpsl_pm.c34 #include <asm/hardware/sharpsl_pm.h>
70 struct sharpsl_pm_status sharpsl_pm; variable in typeref:struct:sharpsl_pm_status
78 int i = sharpsl_pm.machinfo->bat_levels - 1;
79 int bl_status = sharpsl_pm.machinfo->backlight_get_status ? sharpsl_pm.machinfo->backlight_get_status() : 0;
82 if (sharpsl_pm.charge_mode == CHRG_ON)
83 thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_acin_bl : sharpsl_pm.machinfo->bat_levels_acin;
85 thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_noac_bl : sharpsl_pm
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/arm/mach-pxa/
H A DMakefile16 obj-$(CONFIG_PXA_SHARP_C7xx) += corgi.o corgi_ssp.o corgi_lcd.o sharpsl_pm.o corgi_pm.o
17 obj-$(CONFIG_PXA_SHARP_Cxx00) += spitz.o corgi_ssp.o corgi_lcd.o sharpsl_pm.o spitz_pm.o
H A Dcorgi_pm.c58 if (machine_is_corgi() && (sharpsl_pm.flags & SHARPSL_SUSPENDED)) {
134 dev_dbg(sharpsl_pm.dev, "GPLR0 = %x,%x\n", GPLR0, PEDR);
137 if (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN)) {
139 dev_dbg(sharpsl_pm.dev, "ac insert\n");
140 sharpsl_pm.flags |= SHARPSL_DO_OFFLINE_CHRG;
143 dev_dbg(sharpsl_pm.dev, "ac remove\n");
145 sharpsl_pm.machinfo->charge(0);
146 sharpsl_pm.charge_mode = CHRG_OFF;
151 dev_dbg(sharpsl_pm.dev, "Charge full interrupt\n");
162 dev_dbg(sharpsl_pm
[all...]
H A Dsharpsl.h10 #include <asm/hardware/sharpsl_pm.h>
H A Dsharpsl_pm.c140 pxa_gpio_mode(sharpsl_pm.machinfo->gpio_acin | GPIO_IN);
141 pxa_gpio_mode(sharpsl_pm.machinfo->gpio_batfull | GPIO_IN);
142 pxa_gpio_mode(sharpsl_pm.machinfo->gpio_batlock | GPIO_IN);
145 if (request_irq(IRQ_GPIO(sharpsl_pm.machinfo->gpio_acin), sharpsl_ac_isr, IRQF_DISABLED, "AC Input Detect", sharpsl_ac_isr)) {
146 dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", IRQ_GPIO(sharpsl_pm.machinfo->gpio_acin));
148 else set_irq_type(IRQ_GPIO(sharpsl_pm.machinfo->gpio_acin),IRQT_BOTHEDGE);
150 if (request_irq(IRQ_GPIO(sharpsl_pm.machinfo->gpio_batlock), sharpsl_fatal_isr, IRQF_DISABLED, "Battery Cover", sharpsl_fatal_isr)) {
151 dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", IRQ_GPIO(sharpsl_pm
[all...]
H A Dspitz_pm.c58 if (sharpsl_pm.flags & SHARPSL_SUSPENDED) {
91 spitz_last_ac_status = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN);
137 int acin = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN);
142 sharpsl_pm.flags |= SHARPSL_DO_OFFLINE_CHRG;
143 dev_dbg(sharpsl_pm.dev, "AC Inserted\n");
146 dev_dbg(sharpsl_pm.dev, "AC Removed\n");
148 sharpsl_pm.machinfo->charge(0);
149 sharpsl_pm.charge_mode = CHRG_OFF;
165 dev_dbg(sharpsl_pm.dev, "is_resume: %x\n",is_resume);
180 return READ_GPIO_BIT(sharpsl_pm
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/arm/mach-sa1100/
H A Dcollie_pm.c33 #include <asm/hardware/sharpsl_pm.h>
258 sharpsl_pm.machinfo = &collie_pm_machinfo;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/video/backlight/
H A Dcorgi_bl.c22 #include <asm/hardware/sharpsl_pm.h>
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-arm/hardware/
H A Dsharpsl_pm.h94 extern struct sharpsl_pm_status sharpsl_pm;

Completed in 125 milliseconds