Lines Matching +full:battery +full:- +full:detect +full:- +full:gpios

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * twl4030.h - header for TWL4030 PM and audio CODEC device
5 * Copyright (C) 2005-2006 Texas Instruments, Inc.
89 * Offset from TWL6030_IRQ_BASE / pdata->irq_base
167 * Read and write several 8-bit registers at once.
173 * Read and write single 8-bit registers
206 /* Card detect Configuration for MMC1 Controller on OMAP4 */
217 /* MMC1 Controller on OMAP4 uses Phoenix irq for Card detect */
224 return -EIO; in twl6030_mmc_card_detect()
227 /*----------------------------------------------------------------------*/
233 * a driver-private file, unless some of the registers in a block
242 /*----------------------------------------------------------------------*/
291 /* Up to 18 signals are available as GPIOs, when their
296 /*----------------------------------------------------------------------*/
309 /*I2C1 and I2C4(SR) SDA/SCL pull-up control bits */
318 /*----------------------------------------------------------------------*/
333 /*----------------------------------------------------------------------*/
348 /*----------------------------------------------------------------------*/
351 * Battery charger register offsets (use TWL4030_MODULE_INTERRUPTS)
369 /*----------------------------------------------------------------------*/
384 /*----------------------------------------------------------------------*/
401 /*----------------------------------------------------------------------*/
404 * Battery Charger Controller
416 /*----------------------------------------------------------------------*/
462 /*----------------------------------------------------------------------*/
466 /* The TWL4030/5030 splits its power-management resources (the various
467 * regulators, clock and reset lines) into 3 processor groups - P1, P2 and
468 * P3. These groups can then be configured to transition between sleep, wait-on
563 /*----------------------------------------------------------------------*/
572 int bb_uvolt; /* voltage to charge backup battery */
573 int bb_uamp; /* current for backup battery charging */
576 /* TWL4030_GPIO_MAX (18) GPIOs, with interrupts */
578 /* package the two LED signals as output-only GPIOs? */
581 /* gpio-n should control VMMC(n+1) if BIT(n) in mmc_cd is set */
584 /* if BIT(N) is set, or VMMC(n+1) is linked, debounce GPIO-N */
587 /* For gpio-N, bit (1 << N) in "pullups" is set if that pullup
605 /* Boards have unique mappings of {row, col} --> keycode.
666 #define TWL4030_RESCONFIG_UNDEF ((u8)-1)
692 int audpwron_gpio; /* audio power-on gpio */
758 /* chip-specific feature flags, for twl_regulator_driver_data.features */
759 #define TWL4030_VAUX2 BIT(0) /* pre-5030 voltage ranges */
770 /*----------------------------------------------------------------------*/
786 /*----------------------------------------------------------------------*/
788 /* Linux-specific regulator identifiers ... for now, we only support
795 /* EXTERNAL dc-to-dc buck converters */
808 #define TWL4030_REG_VAUX2_4030 10 /* (twl4030-specific) */
822 /* EXTERNAL dc-to-dc buck convertor controllable via SR */
827 /* Non SR compliant dc-to-dc buck convertors */