From b2c707d54360d979ddc0156f42f359d710f525d0 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 3 Jul 2020 02:17:43 +0200 Subject: [PATCH] ddr: remove superfluous `_reg` from register names --- libboard_zynq/src/ddr/mod.rs | 2 +- libboard_zynq/src/ddr/regs.rs | 74 +++++++++++++++++------------------ 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/libboard_zynq/src/ddr/mod.rs b/libboard_zynq/src/ddr/mod.rs index d4166c4..4060d76 100644 --- a/libboard_zynq/src/ddr/mod.rs +++ b/libboard_zynq/src/ddr/mod.rs @@ -210,7 +210,7 @@ impl DdrRam { } pub fn status(&self) -> regs::ControllerStatus { - self.regs.mode_sts_reg.read().operating_mode() + self.regs.mode_sts.read().operating_mode() } pub fn ptr(&mut self) -> *mut T { diff --git a/libboard_zynq/src/ddr/regs.rs b/libboard_zynq/src/ddr/regs.rs index c72842e..34e0e9e 100644 --- a/libboard_zynq/src/ddr/regs.rs +++ b/libboard_zynq/src/ddr/regs.rs @@ -29,59 +29,59 @@ pub enum ControllerStatus { pub struct RegisterBlock { pub ddrc_ctrl: DdrcCtrl, pub two_rank_cfg: RW, - pub hpr_reg: RW, - pub lpr_reg: RW, - pub wr_reg: RW, - pub dram_param_reg0: RW, - pub dram_param_reg1: RW, - pub dram_param_reg2: RW, - pub dram_param_reg3: RW, - pub dram_param_reg4: RW, + pub hpr: RW, + pub lpr: RW, + pub wr: RW, + pub dram_param0: RW, + pub dram_param1: RW, + pub dram_param2: RW, + pub dram_param3: RW, + pub dram_param4: RW, pub dram_init_param: RW, - pub dram_emr_reg: RW, - pub dram_emr_mr_reg: RW, + pub dram_emr: RW, + pub dram_emr_mr: RW, pub dram_burst8_rdwr: RW, pub dram_disable_dq: RW, pub dram_addr_map_bank: RW, pub dram_addr_map_col: RW, pub dram_addr_map_row: RW, - pub dram_odt_reg: RW, - pub phy_dbg_reg: RW, + pub dram_odt: RW, + pub phy_dbg: RW, pub phy_cmd_timeout_rddata_cpt: RW, - pub mode_sts_reg: ModeStsReg, + pub mode_sts: ModeStsReg, pub dll_calib: RW, pub odt_delay_hold: RW, - pub ctrl_reg1: RW, - pub ctrl_reg2: RW, - pub ctrl_reg3: RW, - pub ctrl_reg4: RW, + pub ctrl1: RW, + pub ctrl2: RW, + pub ctrl3: RW, + pub ctrl4: RW, _unused0: [RO; 2], - pub ctrl_reg5: RW, - pub ctrl_reg6: RW, + pub ctrl5: RW, + pub ctrl6: RW, _unused1: [RO; 8], pub che_refresh_timer01: RW, pub che_t_zq: RW, - pub che_t_zq_short_interval_reg: RW, - pub deep_pwrdwn_reg: RW, + pub che_t_zq_short_interval: RW, + pub deep_pwrdwn: RW, pub reg_2c: RW, pub reg_2d: RW, pub dfi_timing: RW, _unused2: [RO; 2], - pub che_ecc_control_reg_offset: RW, - pub che_corr_ecc_log_reg_offset: RW, - pub che_corr_ecc_addr_reg_offset: RW, - pub che_corr_ecc_data_31_0_reg_offset: RW, - pub che_corr_ecc_data_63_32_reg_offset: RW, - pub che_corr_ecc_data_71_64_reg_offset: RW, - pub che_uncorr_ecc_log_reg_offset: RW, - pub che_uncorr_ecc_addr_reg_offset: RW, - pub che_uncorr_ecc_data_31_0_reg_offset: RW, - pub che_uncorr_ecc_data_63_32_reg_offset: RW, - pub che_uncorr_ecc_data_71_64_reg_offset: RW, - pub che_ecc_stats_reg_offset: RW, + pub che_ecc_control_offset: RW, + pub che_corr_ecc_log_offset: RW, + pub che_corr_ecc_addr_offset: RW, + pub che_corr_ecc_data_31_0_offset: RW, + pub che_corr_ecc_data_63_32_offset: RW, + pub che_corr_ecc_data_71_64_offset: RW, + pub che_uncorr_ecc_log_offset: RW, + pub che_uncorr_ecc_addr_offset: RW, + pub che_uncorr_ecc_data_31_0_offset: RW, + pub che_uncorr_ecc_data_63_32_offset: RW, + pub che_uncorr_ecc_data_71_64_offset: RW, + pub che_ecc_stats_offset: RW, pub ecc_scrub: RW, - pub che_ecc_corr_bit_mask_31_0_reg_offset: RW, - pub che_ecc_corr_bit_mask_63_32_reg_offset: RW, + pub che_ecc_corr_bit_mask_31_0_offset: RW, + pub che_ecc_corr_bit_mask_63_32_offset: RW, _unused3: [RO; 5], pub phy_rcvr_enable: RW, pub phy_config0: RW, @@ -134,7 +134,7 @@ pub struct RegisterBlock { _unused13: RO, pub dll_lock_sts: RW, pub phy_ctrl_sts: RW, - pub phy_ctrl_sts_reg2: RW, + pub phy_ctrl_sts2: RW, _unused14: [RO; 5], pub axi_id: RW, pub page_mask: RW, @@ -151,7 +151,7 @@ pub struct RegisterBlock { pub excl_access_cfg1: RW, pub excl_access_cfg2: RW, pub excl_access_cfg3: RW, - pub mode_reg_read: RW, + pub mode_read: RW, pub lpddr_ctrl0: RW, pub lpddr_ctrl1: RW, pub lpddr_ctrl2: RW,