Lines Matching full:twl

34 #include <linux/mfd/twl.h>
39 #include "twl-core.h"
54 #define DRIVER_NAME "twl"
151 u32 twl_idcode; /* TWL IDCODE Register value */
163 * <linux/mfd/twl.h> defines for TWL4030_MODULE_*
334 * <linux/mfd/twl.h> defines for TWL4030_MODULE_*
414 struct twl_client *twl; in twl_get_regmap() local
426 twl = &twl_priv->twl_modules[sid]; in twl_get_regmap()
428 return twl->regmap; in twl_get_regmap()
541 * twl_get_type - API to get TWL Si type.
543 * Api to get the TWL Si type from IDCODE value.
552 * twl_get_version - API to get TWL Si version.
554 * Api to get the TWL Si version from IDCODE value.
563 * twl_get_hfclk_rate - API to get TWL external HFCLK clock rate.
565 * Api to get the TWL HFCLK rate based on BOOT_CFG register.
600 struct twl_client *twl; in add_numbered_child() local
608 twl = &twl_priv->twl_modules[sid]; in add_numbered_child()
614 pdev->dev.parent = &twl->client->dev; in add_numbered_child()
647 dev_err(&twl->client->dev, "failed to add device %s\n", name); in add_numbered_child()
753 child = add_child(TWL_MODULE_PWM, "twl-pwm", NULL, 0, in add_children()
760 child = add_child(TWL_MODULE_LED, "twl-pwmled", NULL, 0, in add_children()
1000 printk(KERN_WARNING "Skipping twl internal clock init and " in clocks_init()
1051 struct twl_client *twl = &twl_priv->twl_modules[i]; in twl_remove() local
1053 if (twl->client && twl->client != client) in twl_remove()
1054 i2c_unregister_device(twl->client); in twl_remove()
1055 twl->client = NULL; in twl_remove()
1139 struct twl_client *twl = &twl_priv->twl_modules[i]; in twl_probe() local
1142 twl->client = client; in twl_probe()
1144 twl->client = i2c_new_dummy_device(client->adapter, in twl_probe()
1146 if (IS_ERR(twl->client)) { in twl_probe()
1149 status = PTR_ERR(twl->client); in twl_probe()
1154 twl->regmap = devm_regmap_init_i2c(twl->client, in twl_probe()
1156 if (IS_ERR(twl->regmap)) { in twl_probe()
1157 status = PTR_ERR(twl->regmap); in twl_probe()
1170 /* read TWL IDCODE Register */ in twl_probe()