Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Eric Kuzmenko
uboot-imx
Commits
1eed8270
Commit
1eed8270
authored
Jul 13, 2017
by
Peng Fan
Committed by
Jason Liu
Nov 03, 2017
Browse files
MLK-15957 imx8m: evk: default enable tzc380
Default enable TZC380. Signed-off-by:
Peng Fan
<
peng.fan@nxp.com
>
parent
da908406
Changes
4
Hide whitespace changes
Inline
Side-by-side
arch/arm/cpu/armv8/imx8m/soc.c
View file @
1eed8270
...
...
@@ -39,6 +39,18 @@ int timer_init(void)
return
0
;
}
void
enable_tzc380
(
void
)
{
u32
val
;
/* Enable TZASC and lock setting */
val
=
readl
(
IOMUXC_GPR10
);
val
|=
GPR_TZASC_EN
;
writel
(
val
,
IOMUXC_GPR10
);
val
|=
GPR_TZASC_EN_LOCK
;
writel
(
val
,
IOMUXC_GPR10
);
}
void
set_wdog_reset
(
struct
wdog_regs
*
wdog
)
{
u32
reg
=
readw
(
&
wdog
->
wcr
);
...
...
arch/arm/include/asm/arch-imx8m/imx-regs.h
View file @
1eed8270
...
...
@@ -127,6 +127,11 @@
#define IOMUXC_GPR6 (IOMUXC_GPR_BASE_ADDR + 0x18)
#define IOMUXC_GPR7 (IOMUXC_GPR_BASE_ADDR + 0x1c)
#define IOMUXC_GPR8 (IOMUXC_GPR_BASE_ADDR + 0x20)
#define IOMUXC_GPR9 (IOMUXC_GPR_BASE_ADDR + 0x24)
#define IOMUXC_GPR10 (IOMUXC_GPR_BASE_ADDR + 0x28)
#define GPR_TZASC_EN (1 << 0)
#define GPR_TZASC_EN_LOCK (1 << 16)
#define SCTR_BASE_ADDR 0x306C0000
#define CNTCR_OFF 0x00
...
...
arch/arm/include/asm/arch-imx8m/sys_proto.h
View file @
1eed8270
...
...
@@ -7,3 +7,4 @@
#include
<asm/imx-common/sys_proto.h>
void
set_wdog_reset
(
struct
wdog_regs
*
wdog
);
void
enable_tzc380
(
void
);
board/freescale/imx8mq_evk/spl.c
View file @
1eed8270
...
...
@@ -11,6 +11,7 @@
#include
<asm/io.h>
#include
<asm/imx-common/iomux-v3.h>
#include
<asm/arch/ddr_memory_map.h>
#include
<asm/arch/sys_proto.h>
#include
<power/pmic.h>
#include
<power/pfuze100_pmic.h>
#include
"../common/pfuze.h"
...
...
@@ -29,6 +30,8 @@ extern struct i2c_pads_info i2c_pad_info1;
void
spl_board_init
(
void
)
{
enable_tzc380
();
/* Adjust pmic voltage to 1.0V for 800M */
setup_i2c
(
0
,
CONFIG_SYS_I2C_SPEED
,
0x7f
,
&
i2c_pad_info1
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment