Lines Matching +full:adc +full:- +full:use +full:- +full:res
1 // SPDX-License-Identifier: GPL-2.0+
5 // Copyright (C) 2006-2009 by Openmoko, Inc.
31 #include <linux/mfd/pcf50633/adc.h>
40 #include <linux/mtd/nand-ecc-sw-hamming.h>
50 #include <asm/mach-types.h>
55 #include <linux/platform_data/i2c-s3c2410.h>
56 #include <linux/platform_data/mtd-nand-s3c2410.h>
57 #include <linux/platform_data/touchscreen-s3c2410.h>
58 #include <linux/platform_data/usb-ohci-s3c2410.h>
59 #include <linux/platform_data/usb-s3c2410_udc.h>
60 #include <linux/platform_data/fb-s3c2410.h>
62 #include "regs-gpio.h"
63 #include "regs-irq.h"
64 #include "gpio-samsung.h"
68 #include "gpio-cfg.h"
131 * We use this to recognize that we can pull 1A from the USB socket.
133 * These constants are the measured pcf50633 ADC levels with the 1A
142 gta02_configure_pmu_for_charger(struct pcf50633 *pcf, void *unused, int res) in gta02_configure_pmu_for_charger() argument
147 if (res < ((ADC_NOM_CHG_DETECT_USB + ADC_NOM_CHG_DETECT_1A) / 2)) { in gta02_configure_pmu_for_charger()
150 * Sanity - stop GPO driving out now that we have a 1A charger in gta02_configure_pmu_for_charger()
181 * If the PCF50633 ADC is disabled we fallback to a in gta02_charger_worker()
362 .name = "physmap-flash",
395 * This name is also hard-coded in the boot loaders, so
400 .name = "neo1973-nand",
408 * data sheet (K5D2G13ACM-D075 MCP Memory).
427 .dev_id = "s3c2410-usbgadget",
475 .name = "gpio-keys",
476 .id = -1,
483 .dev_id = "neo1973-audio",
485 GPIO_LOOKUP("GPIOJ", 2, "amp-shut", GPIO_ACTIVE_HIGH),
492 .name = "neo1973-audio",
493 .id = -1,
497 .dev_id = "s3c2410-sdi",
581 /* Maintainer: Nelson Castillo <arhuaco@freaks-unidos.net> */