static int tegra_pinmux_suspend(void) { unsigned int i; u32 *ctx = pinmux_reg; for (i = 0; i < TEGRA_MAX_PINGROUP; i++) *ctx++ = pg_readl(tegra_soc_pingroups[i].mux_reg); for (i = 0; i < ARRAY_SIZE(tegra_soc_drive_pingroups); i ++) *ctx++ = pg_readl(tegra_soc_drive_pingroups[i].reg); return 0; }
void tegra_pinmux_suspend(void) { unsigned int i; u32 *ctx = pinmux_reg; for (i = 0; i < TRISTATE_REG_NUM; i++) *ctx++ = pg_readl(TRISTATE_REG_A + i*4); for (i = 0; i < PIN_MUX_CTL_REG_NUM; i++) *ctx++ = pg_readl(PIN_MUX_CTL_REG_A + i*4); for (i = 0; i < PULLUPDOWN_REG_NUM; i++) *ctx++ = pg_readl(PULLUPDOWN_REG_A + i*4); }
void tegra_pinmux_suspend(void) { unsigned int i; u32 *ctx = pinmux_reg; for (i = 0; i < PIN_MUX_CTL_REG_NUM; i++) *ctx++ = pg_readl(PIN_MUX_CTL_REG_A + i*4); for (i = 0; i < PULLUPDOWN_REG_NUM; i++) *ctx++ = pg_readl(PULLUPDOWN_REG_A + i*4); for (i = 0; i < TRISTATE_REG_NUM; i++) *ctx++ = pg_readl(TRISTATE_REG_A + i*4); for (i = 0; i < ARRAY_SIZE(tegra_soc_drive_pingroups); i++) *ctx++ = pg_readl(tegra_soc_drive_pingroups[i].reg); }
void tegra_pinmux_suspend(void) { unsigned int i; u32 *ctx = pinmux_reg; for (i = 0; i < PIN_MUX_CTL_REG_NUM; i++) *ctx++ = pg_readl(PIN_MUX_CTL_REG_A + i*4); for (i = 0; i < PULLUPDOWN_REG_NUM; i++) *ctx++ = pg_readl(PULLUPDOWN_REG_A + i*4); for (i = 0; i < TRISTATE_REG_NUM; i++) *ctx++ = pg_readl(TRISTATE_REG_A + i*4); for (i = 0; i < ARRAY_SIZE(tegra_soc_drive_pingroups); i++) *ctx++ = pg_readl(tegra_soc_drive_pingroups[i].reg); #ifdef CONFIG_MACH_SAMSUNG_VARIATION_TEGRA tegra_pinmux_sleep_config_table( p3_sleep_pinmux, ARRAY_SIZE(p3_sleep_pinmux) ); #endif }