]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ram: rk3399: s/ca_tsel_wr_select_p/tsel_wr_select_ca_p
authorJagan Teki <jagan@amarulasolutions.com>
Mon, 15 Jul 2019 18:21:03 +0000 (23:51 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 19 Jul 2019 03:11:09 +0000 (11:11 +0800)
Rename ca_tsel_wr_select_p to tsel_wr_select_ca_p based
on the bsp code.

No functionality change.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: YouMin Chen <cym@rock-chips.com>
Reviewed-by: Kever Yang <Kever.yang@rock-chips.com>
drivers/ram/rockchip/sdram_rk3399.c

index bdb46a0128205dabf2d640450ca9bd057a2706d4..8a983f9bb1824bbb802e0ae106df9e4d3180399e 100644 (file)
@@ -160,14 +160,14 @@ static void set_ds_odt(const struct chan_info *chan,
 
        u32 tsel_idle_en, tsel_wr_en, tsel_rd_en;
        u32 tsel_idle_select_p, tsel_wr_select_dq_p, tsel_rd_select_p;
-       u32 ca_tsel_wr_select_p, tsel_wr_select_ca_n;
+       u32 tsel_wr_select_ca_p, tsel_wr_select_ca_n;
        u32 tsel_idle_select_n, tsel_wr_select_dq_n, tsel_rd_select_n;
        u32 reg_value;
 
        if (params->base.dramtype == LPDDR4) {
                tsel_rd_select_p = PHY_DRV_ODT_HI_Z;
                tsel_wr_select_dq_p = PHY_DRV_ODT_40;
-               ca_tsel_wr_select_p = PHY_DRV_ODT_40;
+               tsel_wr_select_ca_p = PHY_DRV_ODT_40;
                tsel_idle_select_p = PHY_DRV_ODT_HI_Z;
 
                tsel_rd_select_n = PHY_DRV_ODT_240;
@@ -177,7 +177,7 @@ static void set_ds_odt(const struct chan_info *chan,
        } else if (params->base.dramtype == LPDDR3) {
                tsel_rd_select_p = PHY_DRV_ODT_240;
                tsel_wr_select_dq_p = PHY_DRV_ODT_34_3;
-               ca_tsel_wr_select_p = PHY_DRV_ODT_48;
+               tsel_wr_select_ca_p = PHY_DRV_ODT_48;
                tsel_idle_select_p = PHY_DRV_ODT_240;
 
                tsel_rd_select_n = PHY_DRV_ODT_HI_Z;
@@ -187,7 +187,7 @@ static void set_ds_odt(const struct chan_info *chan,
        } else {
                tsel_rd_select_p = PHY_DRV_ODT_240;
                tsel_wr_select_dq_p = PHY_DRV_ODT_34_3;
-               ca_tsel_wr_select_p = PHY_DRV_ODT_34_3;
+               tsel_wr_select_ca_p = PHY_DRV_ODT_34_3;
                tsel_idle_select_p = PHY_DRV_ODT_240;
 
                tsel_rd_select_n = PHY_DRV_ODT_240;
@@ -228,7 +228,7 @@ static void set_ds_odt(const struct chan_info *chan,
        clrsetbits_le32(&denali_phy[391], 0xffffff, reg_value);
 
        /* phy_adr_tsel_select_ 8bits DENALI_PHY_544/672/800 offset_0 */
-       reg_value = tsel_wr_select_ca_n | (ca_tsel_wr_select_p << 0x4);
+       reg_value = tsel_wr_select_ca_n | (tsel_wr_select_ca_p << 0x4);
        clrsetbits_le32(&denali_phy[544], 0xff, reg_value);
        clrsetbits_le32(&denali_phy[672], 0xff, reg_value);
        clrsetbits_le32(&denali_phy[800], 0xff, reg_value);