mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 18:59:44 +00:00
733cc6cbcc
Restructure Stratix 10 SDRAM driver. Move common code to separate file, in preparation to support SDRAM driver for Agilex. Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
42 lines
1.2 KiB
C
42 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0
|
|
*
|
|
* Copyright (C) 2017-2018 Intel Corporation <www.intel.com>
|
|
*
|
|
*/
|
|
|
|
#ifndef _SDRAM_S10_H_
|
|
#define _SDRAM_S10_H_
|
|
|
|
#define DDR_TWR 15
|
|
#define DDR_READ_LATENCY_DELAY 40
|
|
#define DDR_ACTIVATE_FAWBANK 0x1
|
|
|
|
/* NOC DDR scheduler */
|
|
#define DDR_SCH_ID_COREID 0
|
|
#define DDR_SCH_ID_REVID 0x4
|
|
#define DDR_SCH_DDRCONF 0x8
|
|
#define DDR_SCH_DDRTIMING 0xc
|
|
#define DDR_SCH_DDRMODE 0x10
|
|
#define DDR_SCH_READ_LATENCY 0x14
|
|
#define DDR_SCH_ACTIVATE 0x38
|
|
#define DDR_SCH_DEVTODEV 0x3c
|
|
#define DDR_SCH_DDR4TIMING 0x40
|
|
|
|
#define DDR_SCH_DDRTIMING_ACTTOACT_OFF 0
|
|
#define DDR_SCH_DDRTIMING_RDTOMISS_OFF 6
|
|
#define DDR_SCH_DDRTIMING_WRTOMISS_OFF 12
|
|
#define DDR_SCH_DDRTIMING_BURSTLEN_OFF 18
|
|
#define DDR_SCH_DDRTIMING_RDTOWR_OFF 21
|
|
#define DDR_SCH_DDRTIMING_WRTORD_OFF 26
|
|
#define DDR_SCH_DDRTIMING_BWRATIO_OFF 31
|
|
#define DDR_SCH_DDRMOD_BWRATIOEXTENDED_OFF 1
|
|
#define DDR_SCH_ACTIVATE_RRD_OFF 0
|
|
#define DDR_SCH_ACTIVATE_FAW_OFF 4
|
|
#define DDR_SCH_ACTIVATE_FAWBANK_OFF 10
|
|
#define DDR_SCH_DEVTODEV_BUSRDTORD_OFF 0
|
|
#define DDR_SCH_DEVTODEV_BUSRDTOWR_OFF 2
|
|
#define DDR_SCH_DEVTODEV_BUSWRTORD_OFF 4
|
|
|
|
#include "sdram_soc64.h"
|
|
|
|
#endif /* _SDRAM_S10_H_ */
|