mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-05 12:45:42 +00:00
27117b2024
Add CAAM clock functions, SEC_CONFIG[1] fuse checking, and default CSF size for HAB support boot on mx7ulp. Users need to uncomment the CONFIG_SECURE_BOOT in mx7ulp_evk.h to build secure uboot. Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by : Stefano Babic <sbabic@denx.de>
43 lines
908 B
C
43 lines
908 B
C
/*
|
|
* Copyright (C) 2016 Freescale Semiconductor, Inc.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _ASM_ARCH_CLOCK_H
|
|
#define _ASM_ARCH_CLOCK_H
|
|
|
|
#include <common.h>
|
|
#include <asm/arch/pcc.h>
|
|
#include <asm/arch/scg.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_LPI2C_IMX
|
|
int enable_i2c_clk(unsigned char enable, unsigned i2c_num);
|
|
u32 imx_get_i2cclk(unsigned i2c_num);
|
|
#endif
|
|
#ifdef CONFIG_MXC_OCOTP
|
|
void enable_ocotp_clk(unsigned char enable);
|
|
#endif
|
|
#ifdef CONFIG_USB_EHCI
|
|
void enable_usboh3_clk(unsigned char enable);
|
|
#endif
|
|
void init_clk_usdhc(u32 index);
|
|
void clock_init(void);
|
|
void hab_caam_clock_enable(unsigned char enable);
|
|
#endif
|