ARM: tegra: pluto: enable clk32K from PMIC
Laxman Dewangan [Tue, 11 Sep 2012 09:34:43 +0000 (14:34 +0530)]
Enable clk32 from PMIC TPS65913 i.e. Palmas.

Change-Id: I581a77488e59db0b674e33fc9563fa744b584199
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/131349
Reviewed-by: Automatic_Commit_Validation_User

arch/arm/mach-tegra/board-pluto-power.c

index b7a8a2f..dbd3fe7 100644 (file)
@@ -512,13 +512,26 @@ static struct palmas_pmic_platform_data pmic_platform = {
        .reg_init = pluto_reg_init,
 };
 
+struct palmas_clk32k_init_data palmas_clk32k_idata[] = {
+       {
+               .clk32k_id = PALMAS_CLOCK32KG,
+               .enable = true,
+       }, {
+               .clk32k_id = PALMAS_CLOCK32KG_AUDIO,
+               .enable = true,
+       },
+};
+
 static struct palmas_platform_data palmas_pdata = {
        .gpio_base = PALMAS_TEGRA_GPIO_BASE,
        .irq_base = PALMAS_TEGRA_IRQ_BASE,
        .pmic_pdata = &pmic_platform,
        .mux_from_pdata = true,
        .pad1 = 0,
-       .pad2 = 0,
+       .pad2 = (PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_5_MASK &
+                       (1 << PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_5_SHIFT)),
+       .clk32k_init_data =  palmas_clk32k_idata,
+       .clk32k_init_data_size = ARRAY_SIZE(palmas_clk32k_idata),
 };
 
 static struct i2c_board_info palma_device[] = {