]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mips: bmips: rework and cache CBR addr handling
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 20 Jun 2024 15:26:42 +0000 (17:26 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 27 Jun 2024 08:44:24 +0000 (10:44 +0200)
commita5c05453a13ab324ad8719e8a23dfb6af01f3652
treed18ef9dcf6d3c8789003228ee29a9a8813b2bfd9
parent7c48090af524410fe72754be5f4cfd92d9487957
mips: bmips: rework and cache CBR addr handling

Rework the handling of the CBR address and cache it. This address
doesn't change and can be cached instead of reading the register every
time.

This is in preparation of permitting to tweak the CBR address in DT with
broken SoC or bootloader.

bmips_cbr_addr is defined in setup.c for each arch to keep compatibility
with legacy brcm47xx/brcm63xx and generic BMIPS target.

Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/bcm47xx/prom.c
arch/mips/bcm47xx/setup.c
arch/mips/bcm63xx/prom.c
arch/mips/bcm63xx/setup.c
arch/mips/bmips/dma.c
arch/mips/bmips/setup.c
arch/mips/include/asm/bmips.h
arch/mips/kernel/smp-bmips.c