static void __init igep_i2c_init(void) { int ret; omap3_pmic_get_config(&igep_twldata, TWL_COMMON_PDATA_USB, TWL_COMMON_REGULATOR_VPLL2); igep_twldata.vpll2->constraints.apply_uV = true; igep_twldata.vpll2->constraints.name = "VDVI"; if (machine_is_igep0020()) { /* * Bus 3 is attached to the DVI port where devices like the * pico DLP projector don't work reliably with 400kHz */ ret = omap_register_i2c_bus(3, 100, igep2_i2c3_boardinfo, ARRAY_SIZE(igep2_i2c3_boardinfo)); if (ret) pr_warning("IGEP2: Could not register I2C3 bus (%d)\n", ret); igep_twldata.keypad = &igep2_keypad_pdata; /* Get common pmic data */ omap3_pmic_get_config(&igep_twldata, TWL_COMMON_PDATA_AUDIO, 0); } omap3_pmic_init("twl4030", &igep_twldata); }
static int __init overo_i2c_init(void) { u32 pdata_flags = 0; u32 regulators_flags = TWL_COMMON_REGULATOR_VPLL2; #if defined(CONFIG_USB_MUSB_HDRC) || \ defined (CONFIG_USB_MUSB_HDRC_MODULE) pdata_flags |= TWL_COMMON_PDATA_USB; #endif #if defined(CONFIG_MFD_TWL4030_AUDIO) || \ defined (CONFIG_MFD_TWL4030_AUDIO_MODULE) pdata_flags |= TWL_COMMON_PDATA_AUDIO; #endif #if defined(CONFIG_TWL4030_MADC) || \ defined (CONFIG_TWL4030_MADC_MODULE) pdata_flags |= TWL_COMMON_PDATA_MADC; #endif #if defined(CONFIG_OMAP2_DSS) || defined(CONFIG_OMAP2_DSS_MODULE) regulators_flags |= TWL_COMMON_REGULATOR_VDAC; #endif omap3_pmic_get_config(&overo_twldata, pdata_flags, regulators_flags); overo_twldata.vpll2->constraints.name = "VDVI"; omap3_pmic_init("tps65950", &overo_twldata); /* i2c2 pins are used for gpio */ omap_register_i2c_bus(3, 400, NULL, 0); return 0; }
static int __init overo_i2c_init(void) { omap3_pmic_init("tps65950", &overo_twldata); /* i2c2 pins are used for gpio */ omap_register_i2c_bus(3, 400, NULL, 0); return 0; }
static int __init omap3_evm_i2c_init(void) { omap3_pmic_init("twl4030", &omap3evm_twldata); omap_register_i2c_bus(2, 400, NULL, 0); omap_register_i2c_bus(3, 400, NULL, 0); return 0; }
static int __init omap3_beagle_i2c_init(void) { omap3_pmic_get_config(&beagle_twldata, TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_MADC | TWL_COMMON_PDATA_AUDIO, TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); beagle_twldata.vpll2->constraints.name = "VDVI"; omap3_pmic_init("twl4030", &beagle_twldata); switch (expansion_config.i2c_settings) { case EXPANSION_I2C_7ULCD: omap_register_i2c_bus(2, 400, beagle_i2c2_bbtoys_ulcd, ARRAY_SIZE(beagle_i2c2_bbtoys_ulcd)); break; case EXPANSION_I2C_ZIPPY: omap_register_i2c_bus(2, 400, zippy_i2c2_rtc, ARRAY_SIZE(zippy_i2c2_rtc)); break; case EXPANSION_I2C_COM6L: omap_register_i2c_bus(2, 400, com6l_adpt_eeprom, ARRAY_SIZE(com6l_adpt_eeprom)); break; default: omap_register_i2c_bus(2, 400, NULL, 0); } /* Bus 3 is attached to the DVI port where devices like the pico DLP * projector don't work reliably with 400kHz */ omap_register_i2c_bus(3, 100, beagle_i2c_eeprom, ARRAY_SIZE(beagle_i2c_eeprom)); return 0; }
static int __init omap3pandora_i2c_init(void) { omap3_pmic_init("tps65950", &omap3pandora_twldata); /* i2c2 pins are not connected */ omap_register_i2c_bus(3, 100, omap3pandora_i2c3_boardinfo, ARRAY_SIZE(omap3pandora_i2c3_boardinfo)); return 0; }
static int __init devkit8000_i2c_init(void) { omap3_pmic_init("tps65930", &devkit8000_twldata); /* Bus 3 is attached to the DVI port where devices like the pico DLP * projector don't work reliably with 400kHz */ omap_register_i2c_bus(3, 400, NULL, 0); return 0; }
static void __init cm_t35_init_i2c(void) { omap3_pmic_get_config(&cm_t35_twldata, TWL_COMMON_PDATA_USB, TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_PDATA_AUDIO); omap3_pmic_init("tps65930", &cm_t35_twldata); }
static int __init omap3_beagle_i2c_init(void) { omap3_pmic_init("twl4030", &beagle_twldata); /* Bus 3 is attached to the DVI port where devices like the pico DLP * projector don't work reliably with 400kHz */ omap_register_i2c_bus(3, 100, beagle_i2c_eeprom, ARRAY_SIZE(beagle_i2c_eeprom)); return 0; }
static int __init omap_i2c_init(void) { omap3_pmic_get_config(&ldp_twldata, TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_MADC, 0); omap3_pmic_init("twl4030", &ldp_twldata); omap_register_i2c_bus(2, 400, NULL, 0); omap_register_i2c_bus(3, 400, NULL, 0); return 0; }
static void __init cm_t35_init_i2c(void) { omap3_pmic_get_config(&cm_t35_twldata, TWL_COMMON_PDATA_USB, TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); cm_t35_twldata.vpll2->constraints.name = "VDVI"; cm_t35_twldata.vpll2->num_consumer_supplies = 1; cm_t35_twldata.vpll2->consumer_supplies = &cm_t35_vdvi_supply; omap3_pmic_init("tps65930", &cm_t35_twldata); }
static int __init omap3430_i2c_init(void) { /* i2c1 for PMIC only */ omap3_pmic_init("twl4030", &sdp3430_twldata); /* i2c2 on camera connector (for sensor control) and optional isp1301 */ omap_register_i2c_bus(2, 400, NULL, 0); /* i2c3 on display connector (for DVI, tfp410) */ omap_register_i2c_bus(3, 400, NULL, 0); return 0; }
static int __init devkit8000_i2c_init(void) { omap3_pmic_get_config(&devkit8000_twldata, TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_AUDIO, TWL_COMMON_REGULATOR_VDAC); omap3_pmic_init("tps65930", &devkit8000_twldata); /* Bus 3 is attached to the DVI port where devices like the pico DLP * projector don't work reliably with 400kHz */ omap_register_i2c_bus(3, 400, NULL, 0); return 0; }
static int __init overo_i2c_init(void) { omap3_pmic_get_config(&overo_twldata, TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_AUDIO, TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); overo_twldata.vpll2->constraints.name = "VDVI"; omap3_pmic_init("tps65950", &overo_twldata); /* i2c2 pins are used for gpio */ omap_register_i2c_bus(3, 400, NULL, 0); return 0; }
static int __init omap3_beagle_i2c_init(void) { omap3_pmic_get_config(&beagle_twldata, TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_AUDIO, TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); beagle_twldata.vpll2->constraints.name = "VDVI"; omap3_pmic_init("twl4030", &beagle_twldata); /* Bus 3 is attached to the DVI port where devices like the pico DLP * projector don't work reliably with 400kHz */ omap_register_i2c_bus(3, 100, beagle_i2c_eeprom, ARRAY_SIZE(beagle_i2c_eeprom)); return 0; }
static int __init omap3_evm_i2c_init(void) { omap3_pmic_get_config(&omap3evm_twldata, TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_MADC | TWL_COMMON_PDATA_AUDIO, TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); omap3evm_twldata.vdac->constraints.apply_uV = true; omap3evm_twldata.vpll2->constraints.apply_uV = true; omap3_pmic_init("twl4030", &omap3evm_twldata); omap_register_i2c_bus(2, 400, NULL, 0); omap_register_i2c_bus(3, 400, NULL, 0); return 0; }
static int __init omap3_stalker_i2c_init(void) { omap3_pmic_get_config(&omap3stalker_twldata, TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_MADC | TWL_COMMON_PDATA_AUDIO, TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); omap3stalker_twldata.vdac->constraints.apply_uV = true; omap3stalker_twldata.vpll2->constraints.apply_uV = true; omap3stalker_twldata.vpll2->constraints.name = "VDVI"; omap3_pmic_init("twl4030", &omap3stalker_twldata); omap_register_i2c_bus(2, 400, NULL, 0); omap_register_i2c_bus(3, 400, omap3stalker_i2c_boardinfo3, ARRAY_SIZE(omap3stalker_i2c_boardinfo3)); return 0; }
/* TO BE CHECKED*/ static int __init omap3_devkit8500_i2c_init(void) { omap3_pmic_get_config(&devkit8500_twldata, TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_MADC | TWL_COMMON_PDATA_AUDIO, TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); devkit8500_twldata.vdac->constraints.apply_uV = true; // devkit8500_twldata.usb->usb_mode = T2_USB_MODE_ULPI; omap3_pmic_init("twl4030", &devkit8500_twldata); /* Bus 3 is attached to the DVI port where devices like the pico DLP * projector don't work reliably with 400kHz */ omap_register_i2c_bus(3, 100, NULL, 0); return 0; }
static int __init omap3pandora_i2c_init(void) { omap3_pmic_get_config(&omap3pandora_twldata, TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_AUDIO, TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); omap3pandora_twldata.vdac->constraints.apply_uV = true; omap3pandora_twldata.vpll2->constraints.apply_uV = true; omap3pandora_twldata.vpll2->num_consumer_supplies = ARRAY_SIZE(pandora_vdds_supplies); omap3pandora_twldata.vpll2->consumer_supplies = pandora_vdds_supplies; omap3_pmic_init("tps65950", &omap3pandora_twldata); /* i2c2 pins are not connected */ omap_register_i2c_bus(3, 100, omap3pandora_i2c3_boardinfo, ARRAY_SIZE(omap3pandora_i2c3_boardinfo)); return 0; }
static int __init omap3430_i2c_init(void) { /* i2c1 for PMIC only */ omap3_pmic_get_config(&sdp3430_twldata, TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_BCI | TWL_COMMON_PDATA_MADC | TWL_COMMON_PDATA_AUDIO, TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); sdp3430_twldata.vdac->constraints.apply_uV = true; sdp3430_twldata.vpll2->constraints.apply_uV = true; sdp3430_twldata.vpll2->constraints.name = "VDVI"; omap3_pmic_init("twl4030", &sdp3430_twldata); /* i2c2 on camera connector (for sensor control) and optional isp1301 */ omap_register_i2c_bus(2, 400, NULL, 0); /* i2c3 on display connector (for DVI, tfp410) */ omap_register_i2c_bus(3, 400, NULL, 0); return 0; }
static int __init omap3_touchbook_i2c_init(void) { /* Standard TouchBook bus */ omap3_pmic_get_config(&touchbook_twldata, TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_AUDIO, TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); touchbook_twldata.vdac->num_consumer_supplies = ARRAY_SIZE(touchbook_vdac_supply); touchbook_twldata.vdac->consumer_supplies = touchbook_vdac_supply; touchbook_twldata.vpll2->constraints.name = "VDVI"; touchbook_twldata.vpll2->num_consumer_supplies = ARRAY_SIZE(touchbook_vdvi_supply); touchbook_twldata.vpll2->consumer_supplies = touchbook_vdvi_supply; omap3_pmic_init("twl4030", &touchbook_twldata); /* Additional TouchBook bus */ omap_register_i2c_bus(3, 100, touchBook_i2c_boardinfo, ARRAY_SIZE(touchBook_i2c_boardinfo)); return 0; }
static void __init omap3_i2c_init(void) { omap3_pmic_init("twl4030", &beagle_twldata); }
static int __init omap3logic_i2c_init(void) { omap3_pmic_init("twl4030", &omap3logic_twldata); return 0; }