On Tue, Jan 15, 2013 at 2:25 AM, Rajeshwari Shinde <rajeshwar...@samsung.com> wrote: > This patch adds a function to set ps_hold data driving value high. > This enables the machine to stay powered on after the initial > power-on condition goes away(e.g. power button). > > Signed-off-by: Rajeshwari Shinde <rajeshwar...@samsung.com>
Acked-by: Simon Glass <s...@chromium.org> > --- > arch/arm/cpu/armv7/exynos/power.c | 10 ++++++++++ > arch/arm/include/asm/arch-exynos/power.h | 8 ++++++++ > 2 files changed, 18 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/cpu/armv7/exynos/power.c > b/arch/arm/cpu/armv7/exynos/power.c > index d4bce6d..8572cfd 100644 > --- a/arch/arm/cpu/armv7/exynos/power.c > +++ b/arch/arm/cpu/armv7/exynos/power.c > @@ -95,3 +95,13 @@ void set_dp_phy_ctrl(unsigned int enable) > if (cpu_is_exynos5()) > exynos5_dp_phy_control(enable); > } > + > +void power_ps_hold_setup(void) > +{ > + struct exynos5_power *power = > + (struct exynos5_power *)samsung_get_base_power(); > + > + /* Set PS-Hold high */ > + setbits_le32(&power->ps_hold_control, > + EXYNOS_PS_HOLD_CONTROL_DATA_HIGH); > +} > diff --git a/arch/arm/include/asm/arch-exynos/power.h > b/arch/arm/include/asm/arch-exynos/power.h > index d2fdb59..85e2cd9 100644 > --- a/arch/arm/include/asm/arch-exynos/power.h > +++ b/arch/arm/include/asm/arch-exynos/power.h > @@ -864,4 +864,12 @@ void set_dp_phy_ctrl(unsigned int enable); > > #define EXYNOS_DP_PHY_ENABLE (1 << 0) > > +#define EXYNOS_PS_HOLD_CONTROL_DATA_HIGH (1 << 8) > + > +/*Set ps_hold data driving value high > + * This enables the machine to stay powered on > + * after the initial power-on condition goes away > + * (e.g. power button). > + */ > +void power_ps_hold_setup(void); > #endif > -- > 1.7.4.4 > _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot