Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
6ef6157e
Commit
6ef6157e
authored
5 years ago
by
Soby Mathew
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "n1sdp: fix DMC ECC enablement sequence in N1SDP platform" into integration
parents
4dc74ca3
7428bbf4
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plat/arm/board/n1sdp/n1sdp_bl31_setup.c
+9
-0
plat/arm/board/n1sdp/n1sdp_bl31_setup.c
plat/arm/board/n1sdp/n1sdp_def.h
+8
-0
plat/arm/board/n1sdp/n1sdp_def.h
with
17 additions
and
0 deletions
+17
-0
plat/arm/board/n1sdp/n1sdp_bl31_setup.c
View file @
6ef6157e
...
...
@@ -80,8 +80,17 @@ void dmc_ecc_setup(uint32_t ddr_size_gb)
flush_dcache_range
(
ARM_DRAM2_BASE
,
dram2_size
);
INFO
(
"Enabling ECC on DMCs
\n
"
);
/* Set DMCs to CONFIG state before writing ERR0CTLR0 register */
mmio_write_32
(
N1SDP_DMC0_MEMC_CMD_REG
,
N1SDP_DMC_MEMC_CMD_CONFIG
);
mmio_write_32
(
N1SDP_DMC1_MEMC_CMD_REG
,
N1SDP_DMC_MEMC_CMD_CONFIG
);
/* Enable ECC in DMCs */
mmio_setbits_32
(
N1SDP_DMC0_ERR0CTLR0_REG
,
N1SDP_DMC_ERR0CTLR0_ECC_EN
);
mmio_setbits_32
(
N1SDP_DMC1_ERR0CTLR0_REG
,
N1SDP_DMC_ERR0CTLR0_ECC_EN
);
/* Set DMCs to READY state */
mmio_write_32
(
N1SDP_DMC0_MEMC_CMD_REG
,
N1SDP_DMC_MEMC_CMD_READY
);
mmio_write_32
(
N1SDP_DMC1_MEMC_CMD_REG
,
N1SDP_DMC_MEMC_CMD_READY
);
}
void
copy_bl33
(
uint32_t
src
,
uint32_t
dst
,
uint32_t
size
)
...
...
This diff is collapsed.
Click to expand it.
plat/arm/board/n1sdp/n1sdp_def.h
View file @
6ef6157e
...
...
@@ -25,10 +25,18 @@
#define N1SDP_SDS_BL33_INFO_OFFSET 0
#define N1SDP_SDS_BL33_INFO_SIZE 12
/* DMC memory command registers */
#define N1SDP_DMC0_MEMC_CMD_REG 0x4E000008
#define N1SDP_DMC1_MEMC_CMD_REG 0x4E100008
/* DMC ERR0CTLR0 registers */
#define N1SDP_DMC0_ERR0CTLR0_REG 0x4E000708
#define N1SDP_DMC1_ERR0CTLR0_REG 0x4E100708
/* DMC memory commands */
#define N1SDP_DMC_MEMC_CMD_CONFIG 0
#define N1SDP_DMC_MEMC_CMD_READY 3
/* DMC ECC enable bit in ERR0CTLR0 register */
#define N1SDP_DMC_ERR0CTLR0_ECC_EN 0x1
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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
Menu
Projects
Groups
Snippets
Help