Yang Xiwen | 89a7e96 | 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 | |
Yang Xiwen | 89a7e96 | 2023-04-01 19:17:36 +0800 | [diff] [blame] | 6 | #include <fdtdec.h> |
| 7 | #include <init.h> |
| 8 | #include <asm/system.h> |
| 9 | #include <linux/io.h> |
| 10 | |
| 11 | #define HI3798MV200_PERI_CTRL_BASE 0xf8a20000 |
| 12 | #define SDIO0_LDO_OFFSET 0x11c |
| 13 | |
| 14 | static int sdio0_set_ldo(void) |
| 15 | { |
| 16 | // SDIO LDO bypassed, 3.3V |
| 17 | writel(HI3798MV200_PERI_CTRL_BASE + SDIO0_LDO_OFFSET, 0x60); |
| 18 | return 0; |
| 19 | } |
| 20 | |
| 21 | int board_init(void) |
| 22 | { |
| 23 | sdio0_set_ldo(); |
| 24 | return 0; |
| 25 | } |