Files
u-boot/include/configs/th1520_lpi4a.h
Yao Zi acf9384d8c configs: th1520_lpi4a: Add UART clock frequency
The BROM of TH1520 always initializes UART0's parent clock and
configures the baudrate to 115200. Describe the clock frequency to make
UART function correctly in SPL without introducing CCF.

Signed-off-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2025-05-21 16:49:52 +08:00

24 lines
426 B
C

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (c) 2023 Yixun Lan <dlan@gentoo.org>
*
*/
#ifndef __TH1520_LPI4A_H
#define __TH1520_LPI4A_H
#include <linux/sizes.h>
#define CFG_SYS_NS16550_CLK 100000000
#define CFG_SYS_SDRAM_BASE 0x00000000
#define UART_BASE 0xffe7014000
#define UART_REG_WIDTH 32
/* Environment options */
#define CFG_EXTRA_ENV_SETTINGS \
"PS1=[LPi4A]# \0"
#endif /* __TH1520_LPI4A_H */