summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-s32v234/clock.h
diff options
context:
space:
mode:
authorEddy Petrișor <eddy.petrisor@gmail.com>2016-06-05 03:43:00 +0300
committerTom Rini <trini@konsulko.com>2016-06-13 08:56:35 -0400
commit9702ec00e95dbc1fd66ef8e9624c649e1ee818e5 (patch)
treef33efbab5dd1a7f4750396cac503925af0ac4c67 /arch/arm/include/asm/arch-s32v234/clock.h
parent1f68dbc881d3169f2cd6093564b8e90e000cc034 (diff)
downloadu-boot-imx-9702ec00e95dbc1fd66ef8e9624c649e1ee818e5.zip
u-boot-imx-9702ec00e95dbc1fd66ef8e9624c649e1ee818e5.tar.gz
u-boot-imx-9702ec00e95dbc1fd66ef8e9624c649e1ee818e5.tar.bz2
armv8: s32v234: Introduce basic support for s32v234evb
Add initial support for NXP's S32V234 SoC and S32V234EVB board. The S32V230 family is designed to support computation-intensive applications for image processing. The S32V234, as part of the S32V230 family, is a high-performance automotive processor designed to support safe computation-intensive applications in the area of vision and sensor fusion. Code originally writen by: Original-signed-off-by: Stoica Cosmin-Stefan <cosminstefan.stoica@freescale.com> Original-signed-off-by: Mihaela Martinas <Mihaela.Martinas@freescale.com> Original-signed-off-by: Eddy Petrișor <eddy.petrisor@gmail.com> Signed-off-by: Eddy Petrișor <eddy.petrisor@nxp.com>
Diffstat (limited to 'arch/arm/include/asm/arch-s32v234/clock.h')
-rw-r--r--arch/arm/include/asm/arch-s32v234/clock.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-s32v234/clock.h b/arch/arm/include/asm/arch-s32v234/clock.h
new file mode 100644
index 0000000..df92fb2
--- /dev/null
+++ b/arch/arm/include/asm/arch-s32v234/clock.h
@@ -0,0 +1,34 @@
+/*
+ * (C) Copyright 2015-2016, Freescale Semiconductor, Inc.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __ASM_ARCH_CLOCK_H
+#define __ASM_ARCH_CLOCK_H
+
+#include <common.h>
+
+enum mxc_clock {
+ MXC_ARM_CLK = 0,
+ MXC_BUS_CLK,
+ MXC_PERIPHERALS_CLK,
+ MXC_UART_CLK,
+ MXC_USDHC_CLK,
+ MXC_FEC_CLK,
+ MXC_I2C_CLK,
+};
+enum pll_type {
+ ARM_PLL = 0,
+ PERIPH_PLL,
+ ENET_PLL,
+ DDR_PLL,
+ VIDEO_PLL,
+};
+
+unsigned int mxc_get_clock(enum mxc_clock clk);
+void clock_init(void);
+
+#define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK)
+
+#endif /* __ASM_ARCH_CLOCK_H */