rockchip: use dummy byte only enable OF_PLATDATA
authorXu Ziyuan <xzy.xu@rock-chips.com>
Fri, 12 Aug 2016 07:43:48 +0000 (15:43 +0800)
committerSimon Glass <sjg@chromium.org>
Thu, 22 Sep 2016 13:32:22 +0000 (07:32 -0600)
commitce26e8a1ddd55fc09e527f8381d54c35a02364c2
treeda65b464693fcdff57d909eb6258a0690d3b7bac
parentbd218ab8e4e8b5283f4a94bc96b713b46f6d9f89
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>
arch/arm/include/asm/arch-rockchip/sdram.h