ARM: at91: replace __raw_{readl, writel} of peripherals with readl, writel
Use the potentially endianness-changing readl, writel and siblings
directly. They looks prettier and are the correct thing to do, as
even if the CPU is in big-endian mode, the peripherals are little-endian.

Unlike Linux, barebox readl,writel are the same Linux'
{readl,writel}_relaxed (they don't imply memory barriers)
and thus there shouldn't be any functional change.

Patch was generated by a mass search and replace. I looked it over,
adjust some whitespace and further verified by reviewing the output of

	git diff HEAD~1 --word-diff | \
		perl -pe 's/\[-(.*?)__raw_/{+$1/; s/-\]\{\+/+}{+/;' \
		-e 's/(\{\+.*?\+\})\1/__ALL_IS_WELL__/' | grep '+}{+'

which filters out the common case of lines where a single
__raw_{readT,writeT} had its __raw_ prefix stripped without any
further changes.

Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Tested-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent ca30770 commit 9a307e8da54d34e328d7face138bd096e99bb746
@Ahmad Fatoum Ahmad Fatoum authored on 23 May 2019
Sascha Hauer committed on 24 May 2019
Showing 16 changed files
View
arch/arm/boards/at91rm9200ek/lowlevel.c
View
arch/arm/mach-at91/include/mach/at91sam926x_board_init.h
View
arch/arm/mach-at91/include/mach/at91sam9_ddrsdr.h
View
arch/arm/mach-at91/include/mach/at91sam9_sdramc.h
View
arch/arm/mach-at91/include/mach/debug_ll.h
View
arch/arm/mach-at91/include/mach/gpio.h
View
arch/arm/mach-at91/sam9_smc.c
View
arch/arm/mach-at91/setup.c
View
drivers/clocksource/timer-atmel-pit.c
View
drivers/mci/atmel-mci-regs.h
View
drivers/net/at91_ether.h
View
drivers/net/macb.h
View
drivers/pinctrl/pinctrl-at91.c
View
drivers/spi/atmel_spi.h
View
drivers/usb/gadget/at91_udc.c
View
drivers/video/atmel_lcdfb.h