| /* SPDX-License-Identifier: GPL-2.0 */ |
| * Copyright (c) 2015 Google, Inc |
| * Copyright 2014 Rockchip Inc. |
| #ifndef _ASM_ARCH_RK3288_SDRAM_H__ |
| #define _ASM_ARCH_RK3288_SDRAM_H__ |
| struct rk3288_sdram_channel { |
| * bit width in address, eg: |
| * 8 banks using 3 bit to address, |
| * 2 cs using 1 bit to address. |
| #if CONFIG_IS_ENABLED(OF_PLATDATA) |
| * For of-platdata, which would otherwise convert this into two |
| * byte-swapped integers. With a size of 9 bytes, this struct will |
| * appear in of-platdata as a byte array. |
| * If OF_PLATDATA enabled, need to add a dummy byte in dts.(i.e 0xff) |
| struct rk3288_sdram_pctl_timing { |
| check_member(rk3288_sdram_pctl_timing, tdpd, 0x144 - 0xc0); |
| struct rk3288_sdram_phy_timing { |
| struct rk3288_base_params { |
| * DDR Stride is address mapping for DRAM space |
| * Stride Ch 0 range Ch1 range Total |
| * 0x00 0-256MB 256MB-512MB 512MB |