stw481x 44 drivers/mfd/stw481x.c static int stw481x_get_pctl_reg(struct stw481x *stw481x, u8 reg) stw481x 52 drivers/mfd/stw481x.c ret = regmap_write(stw481x->map, STW_PCTL_REG_HI, msb); stw481x 55 drivers/mfd/stw481x.c ret = regmap_write(stw481x->map, STW_PCTL_REG_LO, lsb); stw481x 58 drivers/mfd/stw481x.c ret = regmap_read(stw481x->map, STW_PCTL_REG_HI, &val); stw481x 62 drivers/mfd/stw481x.c ret = regmap_read(stw481x->map, STW_PCTL_REG_LO, &val); stw481x 71 drivers/mfd/stw481x.c static int stw481x_startup(struct stw481x *stw481x) stw481x 89 drivers/mfd/stw481x.c ret = regmap_read(stw481x->map, STW_CONF1, &val); stw481x 95 drivers/mfd/stw481x.c dev_info(&stw481x->client->dev, "voltages %s\n", stw481x 97 drivers/mfd/stw481x.c dev_info(&stw481x->client->dev, "MMC level shifter %s\n", stw481x 99 drivers/mfd/stw481x.c dev_info(&stw481x->client->dev, "VMMC: %s\n", stw481x 102 drivers/mfd/stw481x.c dev_info(&stw481x->client->dev, "STw481x power control registers:\n"); stw481x 104 drivers/mfd/stw481x.c ret = stw481x_get_pctl_reg(stw481x, STW_PC_VCORE_SEL); stw481x 109 drivers/mfd/stw481x.c ret = stw481x_get_pctl_reg(stw481x, STW_PC_VAUX_SEL); stw481x 115 drivers/mfd/stw481x.c ret = stw481x_get_pctl_reg(stw481x, STW_PC_VPLL_SEL); stw481x 120 drivers/mfd/stw481x.c dev_info(&stw481x->client->dev, "VCORE: %u.%uV %s\n", stw481x 124 drivers/mfd/stw481x.c dev_info(&stw481x->client->dev, "VPLL: %u.%uV %s\n", stw481x 128 drivers/mfd/stw481x.c dev_info(&stw481x->client->dev, "VAUX: %u.%uV %s\n", stw481x 132 drivers/mfd/stw481x.c ret = regmap_read(stw481x->map, STW_CONF2, &val); stw481x 136 drivers/mfd/stw481x.c dev_info(&stw481x->client->dev, "TWARN: %s threshold, %s\n", stw481x 140 drivers/mfd/stw481x.c dev_info(&stw481x->client->dev, "VMMC: %s\n", stw481x 142 drivers/mfd/stw481x.c dev_info(&stw481x->client->dev, "IT WAKE UP: %s\n", stw481x 144 drivers/mfd/stw481x.c dev_info(&stw481x->client->dev, "GPO1: %s\n", stw481x 146 drivers/mfd/stw481x.c dev_info(&stw481x->client->dev, "GPO2: %s\n", stw481x 149 drivers/mfd/stw481x.c ret = regmap_read(stw481x->map, STW_VCORE_SLEEP, &val); stw481x 153 drivers/mfd/stw481x.c dev_info(&stw481x->client->dev, "VCORE SLEEP: %u.%uV\n", stw481x 179 drivers/mfd/stw481x.c struct stw481x *stw481x; stw481x 183 drivers/mfd/stw481x.c stw481x = devm_kzalloc(&client->dev, sizeof(*stw481x), GFP_KERNEL); stw481x 184 drivers/mfd/stw481x.c if (!stw481x) stw481x 187 drivers/mfd/stw481x.c i2c_set_clientdata(client, stw481x); stw481x 188 drivers/mfd/stw481x.c stw481x->client = client; stw481x 189 drivers/mfd/stw481x.c stw481x->map = devm_regmap_init_i2c(client, &stw481x_regmap_config); stw481x 190 drivers/mfd/stw481x.c if (IS_ERR(stw481x->map)) { stw481x 191 drivers/mfd/stw481x.c ret = PTR_ERR(stw481x->map); stw481x 197 drivers/mfd/stw481x.c ret = stw481x_startup(stw481x); stw481x 206 drivers/mfd/stw481x.c stw481x_cells[i].platform_data = stw481x; stw481x 207 drivers/mfd/stw481x.c stw481x_cells[i].pdata_size = sizeof(*stw481x); stw481x 57 drivers/regulator/stw481x-vmmc.c struct stw481x *stw481x = dev_get_platdata(&pdev->dev); stw481x 63 drivers/regulator/stw481x-vmmc.c ret = regmap_update_bits(stw481x->map, STW_CONF2, stw481x 72 drivers/regulator/stw481x-vmmc.c config.driver_data = stw481x; stw481x 73 drivers/regulator/stw481x-vmmc.c config.regmap = stw481x->map;