mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-30 11:22:09 +00:00
9ef89ea9b0
Add basic i.MX8ULP support For the MMU part, Using a simple way the calculate the MMU size to avoid default heavy calcaulation. And align address and size in the table settings to 2MB or 4GB as much as possible. So we can reduce the 4K page allocations in MMU table which will spends much time in create the page table Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
34 lines
707 B
C
34 lines
707 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright 2020 NXP
|
|
*/
|
|
|
|
#ifndef _ASM_ARCH_IMX8ULP_CLOCK_H
|
|
#define _ASM_ARCH_IMX8ULP_CLOCK_H
|
|
|
|
/* Mainly for compatible to imx common code. */
|
|
enum mxc_clock {
|
|
MXC_ARM_CLK = 0,
|
|
MXC_AHB_CLK,
|
|
MXC_IPG_CLK,
|
|
MXC_UART_CLK,
|
|
MXC_CSPI_CLK,
|
|
MXC_AXI_CLK,
|
|
MXC_DDR_CLK,
|
|
MXC_ESDHC_CLK,
|
|
MXC_ESDHC2_CLK,
|
|
MXC_I2C_CLK,
|
|
};
|
|
|
|
u32 mxc_get_clock(enum mxc_clock clk);
|
|
u32 get_lpuart_clk(void);
|
|
#ifdef CONFIG_SYS_I2C_IMX_LPI2C
|
|
int enable_i2c_clk(unsigned char enable, unsigned int i2c_num);
|
|
u32 imx_get_i2cclk(unsigned int i2c_num);
|
|
#endif
|
|
#ifdef CONFIG_MXC_OCOTP
|
|
void enable_ocotp_clk(unsigned char enable);
|
|
#endif
|
|
void init_clk_usdhc(u32 index);
|
|
void clock_init(void);
|
|
#endif
|