board: add support for LicheeRV Nano

The LicheeRV Nano is a small SBC using the Sophgo SG2002 RISCV SoC.

Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
This commit is contained in:
Thomas Bonnefille
2024-11-12 15:57:38 +01:00
committed by Leo Yu-Chi Liang
parent 4897de90c3
commit 04bcc87f0d
7 changed files with 122 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (c) 2024, Thomas Bonnefille <thomas.bonnefille@bootlin.com>
*
*/
#ifndef __CONFIG_H
#define __CONFIG_H
#include <config_distro_bootcmd.h>
#define BOOT_TARGET_DEVICES(func) \
func(MMC, mmc, 0)
#define CFG_SYS_SDRAM_BASE 0x80000000
#define CFG_EXTRA_ENV_SETTINGS "consoledev=ttyS0\0" \
"baudrate=115200\0" \
"fdt_addr_r=0x82000000\0" \
"kernel_addr_r=0x81000000\0" \
"scriptaddr=0x80c00000\0" \
BOOTENV
#endif /* __CONFIG_H */