Commit 74697e36 authored by Tom.zheng's avatar Tom.zheng Committed by Bai Ping

MLK-19380 imx8mq_evk: update the ddr controller QoS setting

enhance memory controller performance and QoS setting
Signed-off-by: default avatarTom.zheng <haidong.zheng@nxp.com>
Signed-off-by: default avatarBai Ping <ping.bai@nxp.com>
Reviewed-by: default avatarJian Li <jian.li@nxp.com>
(cherry picked from commit ae7b37d3ed72bad542c8e77db4bbc0325180d6d2)
parent a8569856
......@@ -127,8 +127,10 @@ void lpddr4_800MHz_cfg_umctl2(void)
dwc_ddrphy_apb_wr(DDRC_SCHED(0), 0x29511505);
dwc_ddrphy_apb_wr(DDRC_SCHED1(0), 0x0000002c);
dwc_ddrphy_apb_wr(DDRC_PERFHPR1(0), 0x5900575b);
dwc_ddrphy_apb_wr(DDRC_PERFLPR1(0), 0x00000009);
dwc_ddrphy_apb_wr(DDRC_PERFWR1(0), 0x02005574);
/* 150T starve and 0x90 max tran len */
dwc_ddrphy_apb_wr(DDRC_PERFLPR1(0), 0x90000096);
/* 300T starve and 0x10 max tran len */
dwc_ddrphy_apb_wr(DDRC_PERFWR1(0), 0x1000012c);
dwc_ddrphy_apb_wr(DDRC_DBG0(0), 0x00000016);
dwc_ddrphy_apb_wr(DDRC_DBG1(0), 0x00000000);
dwc_ddrphy_apb_wr(DDRC_DBGCMD(0), 0x00000000);
......@@ -138,10 +140,12 @@ void lpddr4_800MHz_cfg_umctl2(void)
dwc_ddrphy_apb_wr(DDRC_PCFGR_0(0), 0x000010f3);
dwc_ddrphy_apb_wr(DDRC_PCFGW_0(0), 0x000072ff);
dwc_ddrphy_apb_wr(DDRC_PCTRL_0(0), 0x00000001);
dwc_ddrphy_apb_wr(DDRC_PCFGQOS0_0(0), 0x01110d00);
dwc_ddrphy_apb_wr(DDRC_PCFGQOS1_0(0), 0x00620790);
dwc_ddrphy_apb_wr(DDRC_PCFGWQOS0_0(0), 0x00100001);
dwc_ddrphy_apb_wr(DDRC_PCFGWQOS1_0(0), 0x0000041f);
/* disable Read Qos*/
dwc_ddrphy_apb_wr(DDRC_PCFGQOS0_0(0), 0x00000e00);
dwc_ddrphy_apb_wr(DDRC_PCFGQOS1_0(0), 0x0062ffff);
/* disable Write Qos*/
dwc_ddrphy_apb_wr(DDRC_PCFGWQOS0_0(0), 0x00000e00);
dwc_ddrphy_apb_wr(DDRC_PCFGWQOS1_0(0), 0x0000ffff);
dwc_ddrphy_apb_wr(DDRC_FREQ1_DERATEEN(0), 0x00000202);
dwc_ddrphy_apb_wr(DDRC_FREQ1_DERATEINT(0), 0xec78f4b5);
dwc_ddrphy_apb_wr(DDRC_FREQ1_RFSHCTL0(0), 0x00618040);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment