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
4244d0f3
Unverified
Commit
4244d0f3
authored
6 years ago
by
Antonio Niño Díaz
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1819 from thloh85-intel/integration
plat: intel: Fix faulty DDR calibration value
parents
e0dd6696
51f366ac
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
v2.1
v2.1-rc1
v2.1-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
plat/intel/soc/stratix10/bl2_plat_setup.c
+0
-3
plat/intel/soc/stratix10/bl2_plat_setup.c
plat/intel/soc/stratix10/include/s10_memory_controller.h
+3
-0
plat/intel/soc/stratix10/include/s10_memory_controller.h
plat/intel/soc/stratix10/soc/s10_memory_controller.c
+13
-3
plat/intel/soc/stratix10/soc/s10_memory_controller.c
with
16 additions
and
6 deletions
+16
-6
plat/intel/soc/stratix10/bl2_plat_setup.c
View file @
4244d0f3
...
...
@@ -96,9 +96,6 @@ void bl2_el3_plat_arch_setup(void)
enable_mmu_el3
(
0
);
/* ECC Scrubbing */
memset
(
0
,
DRAM_BASE
,
DRAM_SIZE
);
dw_mmc_params_t
params
=
EMMC_INIT_PARAMS
(
0x100000
);
info
.
mmc_dev_type
=
MMC_IS_SD
;
...
...
This diff is collapsed.
Click to expand it.
plat/intel/soc/stratix10/include/s10_memory_controller.h
View file @
4244d0f3
...
...
@@ -57,8 +57,11 @@
#define S10_MPFE_DDR_MAIN_SCHED_ACTIVATE_RRD_OFST 0
#define S10_MPFE_DDR_MAIN_SCHED_DDRCONF_SET(x) (((x) << 0) & 0x0000001f)
#define S10_MPFE_DDR_MAIN_SCHED_DEVTODEV_BUSRDTORD_OFST 0
#define S10_MPFE_DDR_MAIN_SCHED_DEVTODEV_BUSRDTORD_MSK (BIT(0) | BIT(1))
#define S10_MPFE_DDR_MAIN_SCHED_DEVTODEV_BUSRDTOWR_OFST 2
#define S10_MPFE_DDR_MAIN_SCHED_DEVTODEV_BUSRDTOWR_MSK (BIT(2) | BIT(3))
#define S10_MPFE_DDR_MAIN_SCHED_DEVTODEV_BUSWRTORD_OFST 4
#define S10_MPFE_DDR_MAIN_SCHED_DEVTODEV_BUSWRTORD_MSK (BIT(4) | BIT(5))
#define S10_MPFE_HMC_ADP(x) (0xf8011000 + (x))
#define S10_MPFE_HMC_ADP_HPSINTFCSEL 0xf8011210
...
...
This diff is collapsed.
Click to expand it.
plat/intel/soc/stratix10/soc/s10_memory_controller.c
View file @
4244d0f3
...
...
@@ -10,6 +10,7 @@
#include <lib/mmio.h>
#include <common/debug.h>
#include <drivers/delay_timer.h>
#include <platform_def.h>
#include <string.h>
#include "s10_memory_controller.h"
...
...
@@ -316,9 +317,15 @@ void configure_ddr_sched_ctrl_regs(void)
act_to_act_bank
<<
S10_MPFE_DDR_MAIN_SCHED_ACTIVATE_RRD_OFST
);
mmio_write_32
(
S10_MPFE_DDR_MAIN_SCHED_DEVTODEV
,
bus_rd_to_rd
<<
S10_MPFE_DDR_MAIN_SCHED_DEVTODEV_BUSRDTORD_OFST
|
bus_rd_to_wr
<<
S10_MPFE_DDR_MAIN_SCHED_DEVTODEV_BUSRDTOWR_OFST
|
bus_wr_to_rd
<<
S10_MPFE_DDR_MAIN_SCHED_DEVTODEV_BUSWRTORD_OFST
);
((
bus_rd_to_rd
<<
S10_MPFE_DDR_MAIN_SCHED_DEVTODEV_BUSRDTORD_OFST
)
&
S10_MPFE_DDR_MAIN_SCHED_DEVTODEV_BUSRDTORD_MSK
)
|
((
bus_rd_to_wr
<<
S10_MPFE_DDR_MAIN_SCHED_DEVTODEV_BUSRDTOWR_OFST
)
&
S10_MPFE_DDR_MAIN_SCHED_DEVTODEV_BUSRDTOWR_MSK
)
|
((
bus_wr_to_rd
<<
S10_MPFE_DDR_MAIN_SCHED_DEVTODEV_BUSWRTORD_OFST
)
&
S10_MPFE_DDR_MAIN_SCHED_DEVTODEV_BUSWRTORD_MSK
));
}
...
...
@@ -393,7 +400,10 @@ void configure_hmc_adaptor_regs(void)
S10_MPFE_HMC_ADP_ECCCTRL1_CNT_RST_SET_MSK
|
S10_MPFE_HMC_ADP_ECCCTRL1_ECC_EN_SET_MSK
,
S10_MPFE_HMC_ADP_ECCCTRL1_ECC_EN_SET_MSK
);
INFO
(
"Scrubbing ECC
\n
"
);
/* ECC Scrubbing */
memset
(
DRAM_BASE
,
0
,
DRAM_SIZE
);
}
else
{
INFO
(
"ECC is disabled.
\n
"
);
}
...
...
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