Searched refs:atc260x (Results 1 – 10 of 10) sorted by relevance
/drivers/mfd/ |
D | atc260x-core.c | 161 static void atc260x_cmu_reset(struct atc260x *atc260x) in atc260x_cmu_reset() argument 163 const struct atc260x_init_regs *regs = atc260x->init_regs; in atc260x_cmu_reset() 166 regmap_update_bits(atc260x->regmap, regs->cmu_devrst, in atc260x_cmu_reset() 170 regmap_update_bits(atc260x->regmap, regs->cmu_devrst, in atc260x_cmu_reset() 174 static void atc260x_dev_init(struct atc260x *atc260x) in atc260x_dev_init() argument 176 const struct atc260x_init_regs *regs = atc260x->init_regs; in atc260x_dev_init() 179 atc260x_cmu_reset(atc260x); in atc260x_dev_init() 182 regmap_write(atc260x->regmap, regs->ints_msk, 0); in atc260x_dev_init() 185 regmap_update_bits(atc260x->regmap, regs->pad_en, in atc260x_dev_init() 198 int atc260x_match_device(struct atc260x *atc260x, struct regmap_config *regmap_cfg) in atc260x_match_device() argument [all …]
|
D | atc260x-i2c.c | 18 struct atc260x *atc260x; in atc260x_i2c_probe() local 22 atc260x = devm_kzalloc(&client->dev, sizeof(*atc260x), GFP_KERNEL); in atc260x_i2c_probe() 23 if (!atc260x) in atc260x_i2c_probe() 26 atc260x->dev = &client->dev; in atc260x_i2c_probe() 27 atc260x->irq = client->irq; in atc260x_i2c_probe() 29 ret = atc260x_match_device(atc260x, ®map_cfg); in atc260x_i2c_probe() 33 i2c_set_clientdata(client, atc260x); in atc260x_i2c_probe() 35 atc260x->regmap = devm_regmap_init_i2c(client, ®map_cfg); in atc260x_i2c_probe() 36 if (IS_ERR(atc260x->regmap)) { in atc260x_i2c_probe() 37 ret = PTR_ERR(atc260x->regmap); in atc260x_i2c_probe() [all …]
|
D | Makefile | 274 obj-$(CONFIG_MFD_ATC260X) += atc260x-core.o 275 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 | 474 struct atc260x *atc260x = dev_get_drvdata(pdev->dev.parent); in atc260x_regulator_probe() local 475 struct device *dev = atc260x->dev; in atc260x_regulator_probe() 490 switch (atc260x->ic_type) { in atc260x_regulator_probe() 494 atc2603c_ver_b = atc260x->ic_ver == ATC260X_B; in atc260x_regulator_probe() 502 dev_err(dev, "unsupported ATC260X ID %d\n", atc260x->ic_type); in atc260x_regulator_probe() 507 config.regmap = atc260x->regmap; in atc260x_regulator_probe()
|
D | Makefile | 29 obj-$(CONFIG_REGULATOR_ATC260X) += atc260x-regulator.o
|