diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-01-27 23:11:23 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-02-03 09:23:47 +0100 |
commit | 4d70da63a4847bebbaa4437ef78d4675ae44d0c1 (patch) | |
tree | 1814a0ba4871287fdc1a7ef5af6ec7bc08f350d7 /arch/arm/boards | |
parent | 1a63678cb2be569865079a5c2663dd4a454857aa (diff) | |
download | barebox-4d70da63a4847bebbaa4437ef78d4675ae44d0c1.tar.gz barebox-4d70da63a4847bebbaa4437ef78d4675ae44d0c1.tar.xz |
ARM: MXS: power-init: Add parameters to mx28_power_init()
Instead of introducing new functions each time a new power supply
situation is to be added, this patch adds parameters to mx28_power_init.
Right now there are three parameters:
- has_battery - true when this board has a battery.
- use_battery_input - true when this board is supplied from the
battery input, but has a DC source instead of a real battery
- use_5v_input - true when this board can use the 5V input
The third one is introduced with this patch and allow to boot a board from 5v
(USB) source only. The main necessary change this needs is that the DC-DC
converter must always be sourced from DCDC_4P2 (DROPOUT_CTRL field of
HW_POWER_DCDC4P2)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards')
-rw-r--r-- | arch/arm/boards/freescale-mx28-evk/lowlevel.c | 2 | ||||
-rw-r--r-- | arch/arm/boards/imx233-olinuxino/lowlevel.c | 2 | ||||
-rw-r--r-- | arch/arm/boards/karo-tx28/lowlevel.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/boards/freescale-mx28-evk/lowlevel.c b/arch/arm/boards/freescale-mx28-evk/lowlevel.c index a46a080518..1f567568da 100644 --- a/arch/arm/boards/freescale-mx28-evk/lowlevel.c +++ b/arch/arm/boards/freescale-mx28-evk/lowlevel.c @@ -43,7 +43,7 @@ static noinline void freescale_mx28evk_init(void) pr_debug("initializing power...\n"); - mx28_power_init_battery_input(); + mx28_power_init(0, 1, 0); pr_debug("initializing SDRAM...\n"); diff --git a/arch/arm/boards/imx233-olinuxino/lowlevel.c b/arch/arm/boards/imx233-olinuxino/lowlevel.c index 6e4b830485..ce46f7e143 100644 --- a/arch/arm/boards/imx233-olinuxino/lowlevel.c +++ b/arch/arm/boards/imx233-olinuxino/lowlevel.c @@ -154,7 +154,7 @@ static noinline void imx23_olinuxino_init(void) pr_debug("initializing power...\n"); - mx23_power_init(); + mx23_power_init(0, 1, 0); pr_debug("initializing SDRAM...\n"); diff --git a/arch/arm/boards/karo-tx28/lowlevel.c b/arch/arm/boards/karo-tx28/lowlevel.c index c5fdda1902..96a8b9bfc6 100644 --- a/arch/arm/boards/karo-tx28/lowlevel.c +++ b/arch/arm/boards/karo-tx28/lowlevel.c @@ -43,7 +43,7 @@ static noinline void karo_tx28_init(void) pr_debug("initializing power...\n"); - mx28_power_init_battery_input(); + mx28_power_init(0, 1, 0); pr_debug("initializing SDRAM...\n"); |