blob: 22be10d70a739d110a191ffaa0d0a8fe1b2d703b [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
Yang Xiwen89a7e962023-04-01 19:17:36 +08006#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
14static 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
21int board_init(void)
22{
23 sdio0_set_ldo();
24 return 0;
25}