Yang Xiwen | 33f1903 | 2023-04-01 19:17:36 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Board init file for Skyworth HC2910 2AGHD05 |
| 4 | */ |
| 5 | |
| 6 | #include <common.h> |
| 7 | #include <fdtdec.h> |
| 8 | #include <init.h> |
| 9 | #include <asm/system.h> |
| 10 | #include <linux/io.h> |
| 11 | |
| 12 | #define HI3798MV200_PERI_CTRL_BASE 0xf8a20000 |
| 13 | #define SDIO0_LDO_OFFSET 0x11c |
| 14 | |
| 15 | static int sdio0_set_ldo(void) |
| 16 | { |
| 17 | // SDIO LDO bypassed, 3.3V |
| 18 | writel(HI3798MV200_PERI_CTRL_BASE + SDIO0_LDO_OFFSET, 0x60); |
| 19 | return 0; |
| 20 | } |
| 21 | |
| 22 | int board_init(void) |
| 23 | { |
| 24 | sdio0_set_ldo(); |
| 25 | return 0; |
| 26 | } |