mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-10 14:53:26 +09:00
![Tom Rini](/assets/img/avatar_default.png)
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
82 lines
1.3 KiB
C
82 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2015
|
|
* Toradex, Inc.
|
|
*
|
|
* Authors: Stefan Agner
|
|
* Sanchayan Maity
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_VF610_DDRMC_H
|
|
#define __ASM_ARCH_VF610_DDRMC_H
|
|
|
|
struct ddr3_jedec_timings {
|
|
u8 tinit;
|
|
u32 trst_pwron;
|
|
u32 cke_inactive;
|
|
u8 wrlat;
|
|
u8 caslat_lin;
|
|
u8 trc;
|
|
u8 trrd;
|
|
u8 tccd;
|
|
u8 tbst_int_interval;
|
|
u8 tfaw;
|
|
u8 trp;
|
|
u8 twtr;
|
|
u8 tras_min;
|
|
u8 tmrd;
|
|
u8 trtp;
|
|
u32 tras_max;
|
|
u8 tmod;
|
|
u8 tckesr;
|
|
u8 tcke;
|
|
u8 trcd_int;
|
|
u8 tras_lockout;
|
|
u8 tdal;
|
|
u8 bstlen;
|
|
u16 tdll;
|
|
u8 trp_ab;
|
|
u16 tref;
|
|
u8 trfc;
|
|
u16 tref_int;
|
|
u8 tpdex;
|
|
u8 txpdll;
|
|
u8 txsnr;
|
|
u16 txsr;
|
|
u8 cksrx;
|
|
u8 cksre;
|
|
u8 freq_chg_en;
|
|
u16 zqcl;
|
|
u16 zqinit;
|
|
u8 zqcs;
|
|
u8 ref_per_zq;
|
|
u8 zqcs_rotate;
|
|
u8 aprebit;
|
|
u8 cmd_age_cnt;
|
|
u8 age_cnt;
|
|
u8 q_fullness;
|
|
u8 odt_rd_mapcs0;
|
|
u8 odt_wr_mapcs0;
|
|
u8 wlmrd;
|
|
u8 wldqsen;
|
|
};
|
|
|
|
struct ddrmc_cr_setting {
|
|
u32 setting;
|
|
int cr_rnum; /* CR register ; -1 for last entry */
|
|
};
|
|
|
|
struct ddrmc_phy_setting {
|
|
u32 setting;
|
|
int phy_rnum; /* PHY register ; -1 for last entry */
|
|
};
|
|
|
|
void ddrmc_setup_iomux(const iomux_v3_cfg_t *pads, int pads_count);
|
|
void ddrmc_phy_init(void);
|
|
void ddrmc_ctrl_init_ddr3(struct ddr3_jedec_timings const *timings,
|
|
struct ddrmc_cr_setting *board_cr_settings,
|
|
struct ddrmc_phy_setting *board_phy_settings,
|
|
int col_diff, int row_diff);
|
|
|
|
#endif
|