coreboot/src/device
Julius Werner 9ff8f6f818 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>
2015-04-21 08:23:25 +02:00
..
dram cbfs: correct types used for accessing files 2015-04-01 22:51:10 +02:00
oprom Unify byte order macros and clrsetbits 2015-04-21 08:23:25 +02:00
azalia_device.c x86: Change MMIO addr in readN(addr)/writeN(addr, val) to pointer 2015-02-15 08:50:22 +01:00
cardbus_device.c GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
cpu_device.c device: Trivial - drop trailing blank lines at EOF 2014-07-08 13:52:03 +02:00
device.c device: convert to stopwatch API 2015-03-21 17:00:40 +01:00
device_romstage.c devicetree: Search PnP device node from the tree by path 2015-01-30 16:58:27 +01:00
device_util.c AMD fam10: Drop PCI_BUS_SEGN_BITS 2015-03-09 19:33:08 +01:00
hypertransport.c AMD HyperTransport: Drop unused link optimisation 2015-02-05 16:11:43 +01:00
Kconfig PCIe: Add L1 Sub-State support. 2015-03-23 13:11:15 +01:00
Makefile.inc rk3288: Add software I2C support 2015-04-17 09:59:19 +02:00
pci_device.c AMD fam10: Drop PCI_BUS_SEGN_BITS 2015-03-09 19:33:08 +01:00
pci_early.c device/pci_early.c: Mixes up variants of a typedefs to 'u32' 2014-07-19 11:57:06 +02:00
pci_ops.c pci_ops.{c,h}: Don't hide pointers behind typedefs 2014-11-05 14:45:57 +01:00
pci_rom.c RELOCATABLE_RAMSTAGE: Fix weak symbols with option ROMs 2014-12-28 19:57:16 +01:00
pciexp_device.c PCIe: Revise L1 Sub-State support 2015-03-23 13:11:18 +01:00
pcix_device.c GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
pnp_device.c pnp: Allow setting of misc register 0xf4 in device tree 2014-09-17 17:34:16 +02:00
root_device.c devicetree: Drop dummy root_dev ops 2015-03-01 21:53:58 +01:00
smbus_ops.c smbus: Add guards to avoid calling NULL. 2014-02-01 18:38:32 +01:00
software_i2c.c device: convert to stopwatch API 2015-03-21 17:00:40 +01:00