mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-08 03:03:45 +09:00
EXYNOS5: Add function to setup set ps hold
This patch adds a function to set ps_hold data driving value high. This enables the machine to stay powered on even after the initial power-on condition goes away(e.g. power button). Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
parent
9f024f62e4
commit
51ff1eda6f
@ -95,3 +95,19 @@ void set_dp_phy_ctrl(unsigned int enable)
|
|||||||
if (cpu_is_exynos5())
|
if (cpu_is_exynos5())
|
||||||
exynos5_dp_phy_control(enable);
|
exynos5_dp_phy_control(enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void exynos5_set_ps_hold_ctrl(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);
|
||||||
|
}
|
||||||
|
|
||||||
|
void set_ps_hold_ctrl(void)
|
||||||
|
{
|
||||||
|
if (cpu_is_exynos5())
|
||||||
|
exynos5_set_ps_hold_ctrl();
|
||||||
|
}
|
||||||
|
@ -864,4 +864,13 @@ void set_dp_phy_ctrl(unsigned int enable);
|
|||||||
|
|
||||||
#define EXYNOS_DP_PHY_ENABLE (1 << 0)
|
#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 set_ps_hold_ctrl(void);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user