diff options
author | Chris Packham | 2018-05-10 13:28:27 +1200 |
---|---|---|
committer | Stefan Roese | 2018-05-14 10:01:56 +0200 |
commit | c4195d5553595f12a6f5e943c9ee5e68097d7c72 (patch) | |
tree | 862507838e2ba74df94f68ea5b254d3caf751546 /drivers | |
parent | e6fce12d1476eda5b595274451443c3468f844d0 (diff) |
ARM: mvebu: a38x: move sys_env_device_rev_get
Move sys_env_device_rev_get() from the ddr training code to
sys_env_lib.c (which currently resides with the serdes code). This
brings sys_env_device_rev_get() into line with sys_env_device_id_get()
and sys_env_model_get().
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ddr/marvell/a38x/ddr3_init.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/ddr/marvell/a38x/ddr3_init.c b/drivers/ddr/marvell/a38x/ddr3_init.c index 6ee13c10e49..1c5b1f75ca4 100644 --- a/drivers/ddr/marvell/a38x/ddr3_init.c +++ b/drivers/ddr/marvell/a38x/ddr3_init.c @@ -108,30 +108,6 @@ static int ddr3_hws_tune_training_params(u8 dev_num); #define MV_88F69XX_Z1_ID 0x2 /* - * sys_env_device_rev_get - Get Marvell controller device revision number - * - * DESCRIPTION: - * This function returns 8bit describing the device revision as defined - * Revision ID Register. - * - * INPUT: - * None. - * - * OUTPUT: - * None. - * - * RETURN: - * 8bit desscribing Marvell controller revision number - */ -u8 sys_env_device_rev_get(void) -{ - u32 value; - - value = reg_read(DEV_VERSION_ID_REG); - return (value & (REVISON_ID_MASK)) >> REVISON_ID_OFFS; -} - -/* * sys_env_dlb_config_ptr_get * * DESCRIPTION: defines pointer to to DLB COnfiguration table |