summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorXu Ziyuan <xzy.xu@rock-chips.com>2016-08-12 07:43:48 (GMT)
committerSimon Glass <sjg@chromium.org>2016-09-22 13:32:22 (GMT)
commitce26e8a1ddd55fc09e527f8381d54c35a02364c2 (patch)
treeda65b464693fcdff57d909eb6258a0690d3b7bac /arch
parentbd218ab8e4e8b5283f4a94bc96b713b46f6d9f89 (diff)
downloadu-boot-fsl-qoriq-ce26e8a1ddd55fc09e527f8381d54c35a02364c2.tar.xz
rockchip: use dummy byte only enable OF_PLATDATA
Add a condition to determine the rk3288_sdram_channel size. This patch fixes read sdram_channel property failed from DT on rk3288 boards, which not enable OF_PLATDATA. Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/arch-rockchip/sdram.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-rockchip/sdram.h b/arch/arm/include/asm/arch-rockchip/sdram.h
index e08e28f..82c3d07 100644
--- a/arch/arm/include/asm/arch-rockchip/sdram.h
+++ b/arch/arm/include/asm/arch-rockchip/sdram.h
@@ -24,12 +24,16 @@ struct rk3288_sdram_channel {
u8 row_3_4;
u8 cs0_row;
u8 cs1_row;
+#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)
*/
u8 dummy;
+#endif
};
struct rk3288_sdram_pctl_timing {