]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/cpu/armv7/keystone/keystone.c
48c869064ee5223b348c9cb8188dd861837c51cc
2 * Keystone EVM : Board initialization
5 * Texas Instruments Incorporated, <www.ti.com>
7 * SPDX-License-Identifier: GPL-2.0+
12 #include <asm/arch/hardware.h>
15 * cpu_to_bus - swap bytes of the 32-bit data if the device is BE
16 * @ptr - array of data
17 * @length - lenght of data array
19 int cpu_to_bus(u32
*ptr
, u32 length
)
23 if (!(readl(K2HK_DEVSTAT
) & 0x1))
24 for (i
= 0; i
< length
; i
++, ptr
++)
25 *ptr
= cpu_to_be32(*ptr
);