Home
last modified time | relevance | path

Searched hist:fa28179d2ce89d726b80293c8f8dc78bf0c94d30 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/arch/m68k/cpu/mcf523x/
H A Dcpu_init.cfa28179d2ce89d726b80293c8f8dc78bf0c94d30 Mon Jun 30 09:59:41 UTC 2014 Vasili Galka <vvv444@gmail.com> m68k: Fix incorrect memory access on M5235

The csarX and cscrX registers in the fbcs_t struct are 16-bit for
CONFIG_M5235 and 32-bit wide otherwise. The code in cpu_init.c
accessed them always as 32-bit, effectively creating a wrong memory
access on M5235. Fixed that by choosing out_be16/out_be32 depending
on whether CONFIG_M5235 is defined or not.

Cc: Jason Jin <Jason.jin@freescale.com>
Signed-off-by: Vasili Galka <vvv444@gmail.com>