From mboxrd@z Thu Jan 1 00:00:00 1970 From: Minkyu Kang Date: Wed, 20 Feb 2013 17:38:25 +0900 Subject: [U-Boot] [PATCH 2/9 v9] EXYNOS5: Implement board_poweroff for Thermal Management Unit In-Reply-To: <1360156726-13315-3-git-send-email-akshay.s@samsung.com> References: <1360156726-13315-1-git-send-email-akshay.s@samsung.com> <1360156726-13315-3-git-send-email-akshay.s@samsung.com> Message-ID: <51248B81.2040200@samsung.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Akshay, On 06/02/13 22:18, Akshay Saraswat wrote: > Adding API in power for system shutdown when tripping value is reached > in Exynos Thermal Management Unit. > > Signed-off-by: Akshay Saraswat > Acked-by: Simon Glass > --- > Changes since v8: > - None. > > arch/arm/cpu/armv7/exynos/power.c | 15 +++++++++++++++ > arch/arm/include/asm/arch-exynos/power.h | 1 + > 2 files changed, 16 insertions(+) > > diff --git a/arch/arm/cpu/armv7/exynos/power.c b/arch/arm/cpu/armv7/exynos/power.c > index d4bce6d..73f764e 100644 > --- a/arch/arm/cpu/armv7/exynos/power.c > +++ b/arch/arm/cpu/armv7/exynos/power.c > @@ -95,3 +95,18 @@ void set_dp_phy_ctrl(unsigned int enable) > if (cpu_is_exynos5()) > exynos5_dp_phy_control(enable); > } > + > +/* > + * This function never returns. > + * When called this function makes system hang and PAD driving value high > + * which in turn makes system power down. > + */ > +void board_poweroff(void) > +{ > + struct exynos5_power *power = > + (struct exynos5_power *)samsung_get_base_power(); > + > + clrbits_le32(&power->ps_hold_control, POWER_PS_HOLD_CONTROL_DATA_HIGH); > + > + hang(); > +} We can use set_ps_hold_ctrl function with little modification. Could you please check this? Thanks, Minkyu Kang.