PATH:
usr
/
src
/
linux-headers-5.4.0-215
/
include
/
linux
/
mfd
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SMSC ECE1099 * * Copyright 2012 Texas Instruments Inc. * * Author: Sourav Poddar <sourav.poddar@ti.com> */ #ifndef __LINUX_MFD_SMSC_H #define __LINUX_MFD_SMSC_H #include <linux/regmap.h> #define SMSC_ID_ECE1099 1 #define SMSC_NUM_CLIENTS 2 #define SMSC_BASE_ADDR 0x38 #define OMAP_GPIO_SMSC_IRQ 151 #define SMSC_MAXGPIO 32 #define SMSC_BANK(offs) ((offs) >> 3) #define SMSC_BIT(offs) (1u << ((offs) & 0x7)) struct smsc { struct device *dev; struct i2c_client *i2c_clients[SMSC_NUM_CLIENTS]; struct regmap *regmap; int clk; /* Stored chip id */ int id; }; struct smsc_gpio; struct smsc_keypad; static inline int smsc_read(struct device *child, unsigned int reg, unsigned int *dest) { struct smsc *smsc = dev_get_drvdata(child->parent); return regmap_read(smsc->regmap, reg, dest); } static inline int smsc_write(struct device *child, unsigned int reg, unsigned int value) { struct smsc *smsc = dev_get_drvdata(child->parent); return regmap_write(smsc->regmap, reg, value); } /* Registers for SMSC */ #define SMSC_RESET 0xF5 #define SMSC_GRP_INT 0xF9 #define SMSC_CLK_CTRL 0xFA #define SMSC_WKUP_CTRL 0xFB #define SMSC_DEV_ID 0xFC #define SMSC_DEV_REV 0xFD #define SMSC_VEN_ID_L 0xFE #define SMSC_VEN_ID_H 0xFF /* CLK VALUE */ #define SMSC_CLK_VALUE 0x13 /* Registers for function GPIO INPUT */ #define SMSC_GPIO_DATA_IN_START 0x00 /* Registers for function GPIO OUPUT */ #define SMSC_GPIO_DATA_OUT_START 0x05 /* Definitions for SMSC GPIO CONFIGURATION REGISTER*/ #define SMSC_GPIO_INPUT_LOW 0x01 #define SMSC_GPIO_INPUT_RISING 0x09 #define SMSC_GPIO_INPUT_FALLING 0x11 #define SMSC_GPIO_INPUT_BOTH_EDGE 0x19 #define SMSC_GPIO_OUTPUT_PP 0x21 #define SMSC_GPIO_OUTPUT_OP 0x31 #define GRP_INT_STAT 0xf9 #define SMSC_GPI_INT 0x0f #define SMSC_CFG_START 0x0A /* Registers for SMSC GPIO INTERRUPT STATUS REGISTER*/ #define SMSC_GPIO_INT_STAT_START 0x32 /* Registers for SMSC GPIO INTERRUPT MASK REGISTER*/ #define SMSC_GPIO_INT_MASK_START 0x37 /* Registers for SMSC function KEYPAD*/ #define SMSC_KP_OUT 0x40 #define SMSC_KP_IN 0x41 #define SMSC_KP_INT_STAT 0x42 #define SMSC_KP_INT_MASK 0x43 /* Definitions for keypad */ #define SMSC_KP_KSO 0x70 #define SMSC_KP_KSI 0x51 #define SMSC_KSO_ALL_LOW 0x20 #define SMSC_KP_SET_LOW_PWR 0x0B #define SMSC_KP_SET_HIGH 0xFF #define SMSC_KSO_EVAL 0x00 #endif /* __LINUX_MFD_SMSC_H */
[+]
..
[-] ac100.h
[edit]
[-] hi655x-pmic.h
[edit]
[-] smsc.h
[edit]
[-] max8998-private.h
[edit]
[-] rt5033.h
[edit]
[-] tps65912.h
[edit]
[+]
wm831x
[-] 88pm860x.h
[edit]
[-] tps6507x.h
[edit]
[-] 88pm80x.h
[edit]
[-] rt5033-private.h
[edit]
[-] tps65086.h
[edit]
[-] tc6393xb.h
[edit]
[-] menelaus.h
[edit]
[-] sta2x11-mfd.h
[edit]
[-] max8907.h
[edit]
[-] retu.h
[edit]
[-] twl6040.h
[edit]
[-] janz.h
[edit]
[-] tps6586x.h
[edit]
[-] max8997-private.h
[edit]
[-] si476x-platform.h
[edit]
[-] lm3533.h
[edit]
[-] rk808.h
[edit]
[-] max14577-private.h
[edit]
[-] intel_soc_pmic.h
[edit]
[-] lochnagar2_regs.h
[edit]
[-] kempld.h
[edit]
[-] mxs-lradc.h
[edit]
[-] stw481x.h
[edit]
[-] tps6105x.h
[edit]
[-] tc6387xb.h
[edit]
[-] wm97xx.h
[edit]
[+]
da9062
[-] imx25-tsadc.h
[edit]
[+]
da9150
[-] max77686.h
[edit]
[-] rdc321x.h
[edit]
[-] htc-pasic3.h
[edit]
[-] hi6421-pmic.h
[edit]
[-] lp3943.h
[edit]
[-] wl1273-core.h
[edit]
[+]
da9055
[-] dln2.h
[edit]
[-] max77693-private.h
[edit]
[-] max77693-common.h
[edit]
[-] sun4i-gpadc.h
[edit]
[-] lpc_ich.h
[edit]
[-] ingenic-tcu.h
[edit]
[-] mc13xxx.h
[edit]
[-] ti-lmu.h
[edit]
[+]
arizona
[-] max77620.h
[edit]
[-] db8500-prcmu.h
[edit]
[-] twl.h
[edit]
[-] abx500.h
[edit]
[-] ds1wm.h
[edit]
[-] max77693.h
[edit]
[-] stmpe.h
[edit]
[-] altera-sysmgr.h
[edit]
[-] dbx500-prcmu.h
[edit]
[-] altera-a10sr.h
[edit]
[+]
pcf50633
[-] ezx-pcap.h
[edit]
[-] wm8400.h
[edit]
[-] sky81452.h
[edit]
[-] rc5t583.h
[edit]
[-] davinci_voicecodec.h
[edit]
[-] tps65910.h
[edit]
[-] bcm2835-pm.h
[edit]
[-] intel_msic.h
[edit]
[-] stm32-lptimer.h
[edit]
[-] tps65218.h
[edit]
[-] max8998.h
[edit]
[-] rohm-bd70528.h
[edit]
[-] intel_soc_pmic_bxtwc.h
[edit]
[-] max8925.h
[edit]
[-] ucb1x00.h
[edit]
[-] mc13783.h
[edit]
[-] axp20x.h
[edit]
[-] t7l66xb.h
[edit]
[-] as3711.h
[edit]
[-] ipaq-micro.h
[edit]
[-] stm32-timers.h
[edit]
[-] lp8788-isink.h
[edit]
[-] max77686-private.h
[edit]
[-] lp87565.h
[edit]
[-] syscon.h
[edit]
[-] si476x-reports.h
[edit]
[-] cros_ec.h
[edit]
[-] tps80031.h
[edit]
[-] lochnagar.h
[edit]
[-] qcom_rpm.h
[edit]
[+]
syscon
[-] dm355evm_msp.h
[edit]
[-] stmfx.h
[edit]
[+]
da9063
[-] ab3100.h
[edit]
[-] lp8788.h
[edit]
[-] viperboard.h
[edit]
[-] si476x-core.h
[edit]
[+]
wm8350
[-] tps65090.h
[edit]
[-] max8997.h
[edit]
[-] palmas.h
[edit]
[-] asic3.h
[edit]
[-] rn5t618.h
[edit]
[-] rohm-bd718x7.h
[edit]
[-] tps65010.h
[edit]
[-] as3722.h
[edit]
[-] atmel-hlcdc.h
[edit]
[-] core.h
[edit]
[-] wm8400-audio.h
[edit]
[-] ahc1ec0.h
[edit]
[-] max77650.h
[edit]
[-] adp5520.h
[edit]
[-] ti-lmu-register.h
[edit]
[-] twl4030-audio.h
[edit]
[-] mc13892.h
[edit]
[-] max14577.h
[edit]
[+]
madera
[-] wm8400-private.h
[edit]
[-] tc3589x.h
[edit]
[-] da8xx-cfgchip.h
[edit]
[-] rave-sp.h
[edit]
[-] ti_am335x_tscadc.h
[edit]
[-] stpmic1.h
[edit]
[-] bcm590xx.h
[edit]
[+]
samsung
[-] intel_soc_pmic_mrfld.h
[edit]
[-] max77843-private.h
[edit]
[-] rohm-generic.h
[edit]
[+]
da9052
[-] lochnagar1_regs.h
[edit]
[+]
mt6323
[-] motorola-cpcap.h
[edit]
[-] lp873x.h
[edit]
[-] mcp.h
[edit]
[-] da903x.h
[edit]
[-] tps65217.h
[edit]
[-] bd9571mwv.h
[edit]
[+]
mt6397
[-] aat2870.h
[edit]
[+]
wm8994
[-] tmio.h
[edit]
[-] tps68470.h
[edit]
[+]
abx500