diff options
author | Julius Werner <jwerner@chromium.org> | 2015-02-23 14:31:09 -0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-04-21 08:23:25 +0200 |
commit | 9ff8f6f818d4e5a8aa0fe21cbfaba9ccd865bc7b (patch) | |
tree | bc668e3ddf5f0abf9fc5c5f7911e29895bee46a6 /src/device/oprom | |
parent | 941847652406982f3c9944fdd98cce4029b533fb (diff) |
Unify byte order macros and clrsetbits
This patch removes quite a bit of code duplication between cpu_to_le32()
and clrsetbits_le32() style macros on the different architectures. This
also syncs those macros back up to the new write32(a, v) style IO
accessor macros that are now used on ARM and ARM64.
CQ-DEPEND=CL:254862
BRANCH=none
BUG=chromium:444723
TEST=Compiled Cosmos, Daisy, Blaze, Falco, Pinky, Pit, Rambi, Ryu,
Storm and Urara. Booted on Jerry. Tried to compare binary images...
unfortunately something about the new macro notation makes the compiler
evaluate it more efficiently (not recalculating the address between the
read and the write), so this was of limited value.
Change-Id: If8ab62912c952d68a67a0f71e82b038732cd1317
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: fd43bf446581bfb84bec4f2ebb56b5de95971c3b
Original-Change-Id: I7d301b5bb5ac0db7f5ff39e3adc2b28a1f402a72
Original-Signed-off-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/254866
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/9838
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/device/oprom')
-rw-r--r-- | src/device/oprom/yabel/device.h | 2 | ||||
-rw-r--r-- | src/device/oprom/yabel/vbe.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/device/oprom/yabel/device.h b/src/device/oprom/yabel/device.h index 63f1d8e50e..5259125f74 100644 --- a/src/device/oprom/yabel/device.h +++ b/src/device/oprom/yabel/device.h @@ -15,7 +15,7 @@ #define DEVICE_LIB_H #include <types.h> -#include <arch/byteorder.h> +#include <endian.h> #include "compat/of.h" #include "debug.h" diff --git a/src/device/oprom/yabel/vbe.c b/src/device/oprom/yabel/vbe.c index 6354afe92e..ab92c0ad26 100644 --- a/src/device/oprom/yabel/vbe.c +++ b/src/device/oprom/yabel/vbe.c @@ -17,7 +17,7 @@ #include <boot/coreboot_tables.h> #endif -#include <arch/byteorder.h> +#include <endian.h> #include "debug.h" |