rockchip: rk3288: sdram: use constants in ddrconf table
Use defines to describe the bit shifts used to create the table for ddrconf register values. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Simon Glass
parent
6496498a62
commit
bd7e6086c5
@@ -425,6 +425,14 @@ enum {
|
||||
|
||||
#define START_CMD (1u << 31)
|
||||
|
||||
/*
|
||||
* DDRCONF
|
||||
* [5:4] row(13+n)
|
||||
* [1:0] col(9+n), assume bw=2
|
||||
*/
|
||||
#define DDRCONF_ROW_SHIFT 4
|
||||
#define DDRCONF_COL_SHIFT 0
|
||||
|
||||
/* DEVTODEV */
|
||||
#define BUSWRTORD_SHIFT 4
|
||||
#define BUSRDTOWR_SHIFT 2
|
||||
|
||||
Reference in New Issue
Block a user