Searched refs:atc260x (Results 1 – 10 of 10) sorted by relevance
/drivers/mfd/ |
D | atc260x-core.c | 158 static void atc260x_cmu_reset(struct atc260x *atc260x) in atc260x_cmu_reset() argument 160 const struct atc260x_init_regs *regs = atc260x->init_regs; in atc260x_cmu_reset() 163 regmap_update_bits(atc260x->regmap, regs->cmu_devrst, in atc260x_cmu_reset() 167 regmap_update_bits(atc260x->regmap, regs->cmu_devrst, in atc260x_cmu_reset() 171 static void atc260x_dev_init(struct atc260x *atc260x) in atc260x_dev_init() argument 173 const struct atc260x_init_regs *regs = atc260x->init_regs; in atc260x_dev_init() 176 atc260x_cmu_reset(atc260x); in atc260x_dev_init() 179 regmap_write(atc260x->regmap, regs->ints_msk, 0); in atc260x_dev_init() 182 regmap_update_bits(atc260x->regmap, regs->pad_en, in atc260x_dev_init() 195 int atc260x_match_device(struct atc260x *atc260x, struct regmap_config *regmap_cfg) in atc260x_match_device() argument [all …]
|
D | atc260x-i2c.c | 17 struct atc260x *atc260x; in atc260x_i2c_probe() local 21 atc260x = devm_kzalloc(&client->dev, sizeof(*atc260x), GFP_KERNEL); in atc260x_i2c_probe() 22 if (!atc260x) in atc260x_i2c_probe() 25 atc260x->dev = &client->dev; in atc260x_i2c_probe() 26 atc260x->irq = client->irq; in atc260x_i2c_probe() 28 ret = atc260x_match_device(atc260x, ®map_cfg); in atc260x_i2c_probe() 32 i2c_set_clientdata(client, atc260x); in atc260x_i2c_probe() 34 atc260x->regmap = devm_regmap_init_i2c(client, ®map_cfg); in atc260x_i2c_probe() 35 if (IS_ERR(atc260x->regmap)) { in atc260x_i2c_probe() 36 ret = PTR_ERR(atc260x->regmap); in atc260x_i2c_probe() [all …]
|
D | Makefile | 280 obj-$(CONFIG_MFD_ATC260X) += atc260x-core.o 281 obj-$(CONFIG_MFD_ATC260X_I2C) += atc260x-i2c.o
|
/drivers/input/misc/ |
D | atc260x-onkey.c | 41 struct atc260x *atc260x; member 97 return regmap_update_bits(onkey->atc260x->regmap, in atc2603x_onkey_hw_init() 106 ret = regmap_read(onkey->atc260x->regmap, in atc260x_onkey_query() 110 dev_err(onkey->atc260x->dev, in atc260x_onkey_query() 140 regmap_update_bits(onkey->atc260x->regmap, onkey->params->reg_int_ctl, in atc260x_onkey_query() 157 ret = regmap_update_bits(onkey->atc260x->regmap, in atc260x_onkey_irq() 162 dev_err(onkey->atc260x->dev, in atc260x_onkey_irq() 192 struct atc260x *atc260x = dev_get_drvdata(pdev->dev.parent); in atc260x_onkey_probe() local 220 switch (atc260x->ic_type) { in atc260x_onkey_probe() 238 atc260x->ic_type); in atc260x_onkey_probe() [all …]
|
D | Makefile | 20 obj-$(CONFIG_INPUT_ATC260X_ONKEY) += atc260x-onkey.o
|
D | Kconfig | 106 module will be called atc260x-onkey.
|
/drivers/power/reset/ |
D | atc260x-poweroff.c | 187 struct atc260x *atc260x = dev_get_drvdata(pdev->dev.parent); in atc260x_pwrc_probe() local 196 priv->regmap = atc260x->regmap; in atc260x_pwrc_probe() 200 switch (atc260x->ic_type) { in atc260x_pwrc_probe() 212 atc260x->ic_type); in atc260x_pwrc_probe()
|
D | Makefile | 6 obj-$(CONFIG_POWER_RESET_ATC260X) += atc260x-poweroff.o
|
/drivers/regulator/ |
D | atc260x-regulator.c | 475 struct atc260x *atc260x = dev_get_drvdata(pdev->dev.parent); in atc260x_regulator_probe() local 476 struct device *dev = atc260x->dev; in atc260x_regulator_probe() 491 switch (atc260x->ic_type) { in atc260x_regulator_probe() 495 atc2603c_ver_b = atc260x->ic_ver == ATC260X_B; in atc260x_regulator_probe() 503 dev_err(dev, "unsupported ATC260X ID %d\n", atc260x->ic_type); in atc260x_regulator_probe() 508 config.regmap = atc260x->regmap; in atc260x_regulator_probe()
|
D | Makefile | 29 obj-$(CONFIG_REGULATOR_ATC260X) += atc260x-regulator.o
|