mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-19 03:08:31 +00:00
2b4ffbf6b4
This syncs drivers/ddr/marvell/a38x/ with the mv_ddr-armada-17.10 branch of https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git. The upstream code is incorporated omitting the ddr4 and apn806 and folding the nested a38x directory up one level. After that a semi-automated step is used to drop unused features with unifdef find drivers/ddr/marvell/a38x/ -name '*.[ch]' | \ xargs unifdef -m -UMV_DDR -UMV_DDR_ATF -UCONFIG_DDR4 \ -UCONFIG_APN806 -UCONFIG_MC_STATIC \ -UCONFIG_MC_STATIC_PRINT -UCONFIG_PHY_STATIC \ -UCONFIG_64BIT INTER_REGS_BASE is updated to be defined as SOC_REGS_PHY_BASE. Some now empty files are removed and the ternary license is replaced with a SPDX GPL-2.0+ identifier. Signed-off-by: Chris Packham <judge.packham@gmail.com> Signed-off-by: Stefan Roese <sr@denx.de>
78 lines
1.3 KiB
C
78 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) Marvell International Ltd. and its affiliates
|
|
*/
|
|
|
|
#ifndef _DDR3_TOPOLOGY_DEF_H
|
|
#define _DDR3_TOPOLOGY_DEF_H
|
|
|
|
#define DEV_NUM_0 0
|
|
|
|
/* TOPOLOGY */
|
|
enum hws_speed_bin {
|
|
SPEED_BIN_DDR_800D,
|
|
SPEED_BIN_DDR_800E,
|
|
SPEED_BIN_DDR_1066E,
|
|
SPEED_BIN_DDR_1066F,
|
|
SPEED_BIN_DDR_1066G,
|
|
SPEED_BIN_DDR_1333F,
|
|
SPEED_BIN_DDR_1333G,
|
|
SPEED_BIN_DDR_1333H,
|
|
SPEED_BIN_DDR_1333J,
|
|
SPEED_BIN_DDR_1600G,
|
|
SPEED_BIN_DDR_1600H,
|
|
SPEED_BIN_DDR_1600J,
|
|
SPEED_BIN_DDR_1600K,
|
|
SPEED_BIN_DDR_1866J,
|
|
SPEED_BIN_DDR_1866K,
|
|
SPEED_BIN_DDR_1866L,
|
|
SPEED_BIN_DDR_1866M,
|
|
SPEED_BIN_DDR_2133K,
|
|
SPEED_BIN_DDR_2133L,
|
|
SPEED_BIN_DDR_2133M,
|
|
SPEED_BIN_DDR_2133N,
|
|
|
|
SPEED_BIN_DDR_1333H_EXT,
|
|
SPEED_BIN_DDR_1600K_EXT,
|
|
SPEED_BIN_DDR_1866M_EXT
|
|
};
|
|
|
|
enum hws_ddr_freq {
|
|
DDR_FREQ_LOW_FREQ,
|
|
DDR_FREQ_400,
|
|
DDR_FREQ_533,
|
|
DDR_FREQ_667,
|
|
DDR_FREQ_800,
|
|
DDR_FREQ_933,
|
|
DDR_FREQ_1066,
|
|
DDR_FREQ_311,
|
|
DDR_FREQ_333,
|
|
DDR_FREQ_467,
|
|
DDR_FREQ_850,
|
|
DDR_FREQ_600,
|
|
DDR_FREQ_300,
|
|
DDR_FREQ_900,
|
|
DDR_FREQ_360,
|
|
DDR_FREQ_1000,
|
|
DDR_FREQ_LAST,
|
|
DDR_FREQ_SAR
|
|
};
|
|
|
|
enum speed_bin_table_elements {
|
|
SPEED_BIN_TRCD,
|
|
SPEED_BIN_TRP,
|
|
SPEED_BIN_TRAS,
|
|
SPEED_BIN_TRC,
|
|
SPEED_BIN_TRRD1K,
|
|
SPEED_BIN_TRRD2K,
|
|
SPEED_BIN_TPD,
|
|
SPEED_BIN_TFAW1K,
|
|
SPEED_BIN_TFAW2K,
|
|
SPEED_BIN_TWTR,
|
|
SPEED_BIN_TRTP,
|
|
SPEED_BIN_TWR,
|
|
SPEED_BIN_TMOD,
|
|
SPEED_BIN_TXPDLL
|
|
};
|
|
|
|
#endif /* _DDR3_TOPOLOGY_DEF_H */
|