blob: abad5efdafb4100873e8a3a3e3d0451da109151e [file] [log] [blame]
Yang Xiwen89a7e962023-04-01 19:17:36 +08001// 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
15static 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
22int board_init(void)
23{
24 sdio0_set_ldo();
25 return 0;
26}