/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com/ * Andrew F. Davis * * Based on the TPS65912 driver */ #ifndef __LINUX_MFD_TPS65086_H #define __LINUX_MFD_TPS65086_H #include #include /* List of registers for TPS65086 */ #define TPS65086_DEVICEID 0x01 #define TPS65086_IRQ 0x02 #define TPS65086_IRQ_MASK 0x03 #define TPS65086_PMICSTAT 0x04 #define TPS65086_SHUTDNSRC 0x05 #define TPS65086_BUCK1CTRL 0x20 #define TPS65086_BUCK2CTRL 0x21 #define TPS65086_BUCK3DECAY 0x22 #define TPS65086_BUCK3VID 0x23 #define TPS65086_BUCK3SLPCTRL 0x24 #define TPS65086_BUCK4CTRL 0x25 #define TPS65086_BUCK5CTRL 0x26 #define TPS65086_BUCK6CTRL 0x27 #define TPS65086_LDOA2CTRL 0x28 #define TPS65086_LDOA3CTRL 0x29 #define TPS65086_DISCHCTRL1 0x40 #define TPS65086_DISCHCTRL2 0x41 #define TPS65086_DISCHCTRL3 0x42 #define TPS65086_PG_DELAY1 0x43 #define TPS65086_FORCESHUTDN 0x91 #define TPS65086_BUCK1SLPCTRL 0x92 #define TPS65086_BUCK2SLPCTRL 0x93 #define TPS65086_BUCK4VID 0x94 #define TPS65086_BUCK4SLPVID 0x95 #define TPS65086_BUCK5VID 0x96 #define TPS65086_BUCK5SLPVID 0x97 #define TPS65086_BUCK6VID 0x98 #define TPS65086_BUCK6SLPVID 0x99 #define TPS65086_LDOA2VID 0x9A #define TPS65086_LDOA3VID 0x9B #define TPS65086_BUCK123CTRL 0x9C #define TPS65086_PG_DELAY2 0x9D #define TPS65086_PIN_EN_MASK1 0x9E #define TPS65086_PIN_EN_MASK2 0x9F #define TPS65086_SWVTT_EN 0x9F #define TPS65086_PIN_EN_OVR1 0xA0 #define TPS65086_PIN_EN_OVR2 0xA1 #define TPS65086_GPOCTRL 0xA1 #define TPS65086_PWR_FAULT_MASK1 0xA2 #define TPS65086_PWR_FAULT_MASK2 0xA3 #define TPS65086_GPO1PG_CTRL1 0xA4 #define TPS65086_GPO1PG_CTRL2 0xA5 #define TPS65086_GPO4PG_CTRL1 0xA6 #define TPS65086_GPO4PG_CTRL2 0xA7 #define TPS65086_GPO2PG_CTRL1 0xA8 #define TPS65086_GPO2PG_CTRL2 0xA9 #define TPS65086_GPO3PG_CTRL1 0xAA #define TPS65086_GPO3PG_CTRL2 0xAB #define TPS65086_LDOA1CTRL 0xAE #define TPS65086_PG_STATUS1 0xB0 #define TPS65086_PG_STATUS2 0xB1 #define TPS65086_PWR_FAULT_STATUS1 0xB2 #define TPS65086_PWR_FAULT_STATUS2 0xB3 #define TPS65086_TEMPCRIT 0xB4 #define TPS65086_TEMPHOT 0xB5 #define TPS65086_OC_STATUS 0xB6 /* IRQ Register field definitions */ #define TPS65086_IRQ_DIETEMP_MASK BIT(0) #define TPS65086_IRQ_SHUTDN_MASK BIT(3) #define TPS65086_IRQ_FAULT_MASK BIT(7) /* DEVICEID Register field definitions */ #define TPS65086_DEVICEID_PART_MASK GENMASK(3, 0) #define TPS65086_DEVICEID_OTP_MASK GENMASK(5, 4) #define TPS65086_DEVICEID_REV_MASK GENMASK(7, 6) /* VID Masks */ #define BUCK_VID_MASK GENMASK(7, 1) #define VDOA1_VID_MASK GENMASK(4, 1) #define VDOA23_VID_MASK GENMASK(3, 0) /* Define the TPS65086 IRQ numbers */ enum tps65086_irqs { TPS65086_IRQ_DIETEMP, TPS65086_IRQ_SHUTDN, TPS65086_IRQ_FAULT, }; /** * struct tps65086 - state holder for the tps65086 driver * * Device data may be used to access the TPS65086 chip */ struct tps65086 { struct device *dev; struct regmap *regmap; /* IRQ Data */ int irq; struct regmap_irq_chip_data *irq_data; }; #endif /* __LINUX_MFD_TPS65086_H */ 3.19.y'>linux-3.19.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2025-01-20Merge tag 'for-6.14/io_uring-20250119' of git://git.kernel.dk/linuxLinus Torvalds
2025-01-10block: add a queue_limits_commit_update_frozen helperChristoph Hellwig
2024-12-23block: modify bio_integrity_map_user to accept iov_iter as argumentAnuj Gupta
2024-10-30blk-integrity: remove seed for user mapped buffersKeith Busch
2024-10-02block: fix blk_rq_map_integrity_sg kernel-docKeith Busch
2024-09-13blk-integrity: improved sg segment mappingKeith Busch
2024-09-13block: unexport blk_rq_count_integrity_sgKeith Busch
2024-09-13block: provide a request helper for user integrity segmentsKeith Busch
2024-09-13blk-integrity: consider entire bio list for mergingKeith Busch
2024-09-13blk-integrity: properly account for segmentsKeith Busch
2024-06-17block: cleanup flag_{show,store}Kanchan Joshi
2024-06-14block: move integrity information into queue_limitsChristoph Hellwig
2024-06-14block: invert the BLK_INTEGRITY_{GENERATE,VERIFY} flagsChristoph Hellwig
2024-06-14block: bypass the STABLE_WRITES flag for protection informationChristoph Hellwig
2024-06-14block: don't require stable pages for non-PI metadataChristoph Hellwig
2024-06-14block: use kstrtoul in flag_storeChristoph Hellwig
2024-06-14block: factor out flag_{store,show} helper for integrityChristoph Hellwig
2024-06-14block: remove the blk_flush_integrity call in blk_integrity_unregisterChristoph Hellwig
2024-06-14block: remove the blk_integrity_profile structureChristoph Hellwig
2024-02-12block: support PI at non-zero offset within metadataKanchan Joshi
2023-04-26blk-integrity: register sysfs attributes on struct deviceThomas Weißschuh
2023-04-26blk-integrity: convert to struct device_attributeThomas Weißschuh
2023-04-26blk-integrity: use sysfs_emitThomas Weißschuh
2023-02-09block: make kobj_type structures constantThomas Weißschuh
2021-11-29blk-crypto: remove blk_crypto_unregister()Eric Biggers
2021-10-21blk-crypto: rename blk_keyslot_manager to blk_crypto_profileEric Biggers
2021-10-18block: move integrity handling out of <linux/blkdev.h>Christoph Hellwig
2021-09-14block: flush the integrity workqueue in blk_integrity_unregisterLihong Kou
2021-09-14block: check if a profile is actually registered in blk_integrity_unregisterChristoph Hellwig
2021-08-23block: return errors from blk_integrity_addLuis Chamberlain
2020-10-06block: remove the unused blk_integrity_merge_bio exportChristoph Hellwig
2020-10-06block: remove the unused blk_integrity_merge_rq exportChristoph Hellwig
2020-09-24bdi: replace BDI_CAP_STABLE_WRITES with a queue and a sb flagChristoph Hellwig
2020-05-14block: Make blk-integrity preclude hardware inline encryptionSatya Tangirala
2019-09-17block: centralize PI remapping logic to the block layerMax Gurtovoy
2019-07-15docs: block: convert to ReSTMauro Carvalho Chehab
2019-05-07Merge tag 'for-5.2/block-20190507' of git://git.kernel.dk/linux-blockLinus Torvalds
2019-04-30block: switch all files cleared marked as GPLv2 to SPDX tagsChristoph Hellwig
2019-04-25block: Replace all ktype default_attrs with groupsKimberly Brown
2018-09-24block: merge BIOVEC_SEG_BOUNDARY into biovec_phys_mergeableChristoph Hellwig
2018-09-24block: simplify BIOVEC_PHYS_MERGEABLEChristoph Hellwig
2018-05-24block drivers/block: Use octal not symbolic permissionsJoe Perches