]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Alchemy: introduce helpers to access SYS register block.
authorManuel Lauss <manuel.lauss@gmail.com>
Wed, 23 Jul 2014 14:36:24 +0000 (16:36 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 30 Jul 2014 11:53:28 +0000 (13:53 +0200)
commite6c7b8e69828225646a4576c6046a8069b7558ef
tree929cb54b63224fc65d7b56d52b00a89bb236b9a0
parentce4e0ce670ad0a22e634c1bf0e7b659bd253cd26
MIPS: Alchemy: introduce helpers to access SYS register block.

This patch changes all absolute SYS_XY registers to offsets from the
SYS block base, prefixes them with AU1000 to avoid silent failures due
to changed addresses, and introduces helper functions to read/write
them.

No functional changes, comparing assembly of a few select functions shows
no differences.

Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Cc: Linux-MIPS <linux-mips@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/7464/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
17 files changed:
arch/mips/alchemy/board-mtx1.c
arch/mips/alchemy/board-xxs1500.c
arch/mips/alchemy/common/clocks.c
arch/mips/alchemy/common/irq.c
arch/mips/alchemy/common/platform.c
arch/mips/alchemy/common/power.c
arch/mips/alchemy/common/time.c
arch/mips/alchemy/devboards/db1000.c
arch/mips/alchemy/devboards/db1200.c
arch/mips/alchemy/devboards/db1550.c
arch/mips/alchemy/devboards/pm.c
arch/mips/include/asm/mach-au1x00/au1000.h
arch/mips/include/asm/mach-au1x00/gpio-au1000.h
drivers/mmc/host/au1xmmc.c
drivers/rtc/rtc-au1xxx.c
drivers/video/fbdev/au1100fb.c
drivers/video/fbdev/au1200fb.c