diff options
author | Chen-Yu Tsai <wens@csie.org> | 2016-05-02 05:28:12 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2016-05-25 18:52:39 +0300 |
commit | 15278ccb848dbcd8825874f943bc21afda987219 (patch) | |
tree | 98526b20799ef16c414bf990e99dc26899d4e967 /board/sunxi/board.c | |
parent | a696253c1daf3424408868fc76840c83a896acfe (diff) | |
download | u-boot-15278ccb848dbcd8825874f943bc21afda987219.tar.xz |
sunxi: power: axp818: Add support for switch SW
The AXP818 has a switchable output, SW. This is commonly used for
controlling power to the LCD backlight.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'board/sunxi/board.c')
-rw-r--r-- | board/sunxi/board.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 3cf36147b2..6a0a8dbc4f 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -523,6 +523,7 @@ void sunxi_board_init(void) power_failed |= axp_set_fldo(1, CONFIG_AXP_FLDO1_VOLT); power_failed |= axp_set_fldo(2, CONFIG_AXP_FLDO2_VOLT); power_failed |= axp_set_fldo(3, CONFIG_AXP_FLDO3_VOLT); + power_failed |= axp_set_sw(IS_ENABLED(CONFIG_AXP_SW_ON)); #endif #endif printf("DRAM:"); |