openwrtv4/target/linux/bcm53xx
Rafał Miłecki 5e885c09c6 bcm53xx: switch back to standalone ASM entry flushing cache
Over a year ago in a commit ac96a1665a ("bcm53xx: update Disable MMU
and Dcache during decompression") we switched to Florian's patch for
workarounding CFE bug. The main difference was using a part of existing
__armv7_mmu_cache_flush instead of implementing flushing separately.

This worked well for Northstar devices but doesn't work for BCM53573 as
these devices simply don't start booting with Florian's patch. It's
because of the ldmfd ASM instruction in the __armv7_mmu_cache_flush.

So this commit switches back to using standalone implementation. This
time instead of copying Broadcom's copy of cache-v7.S, we just make a
copy of the original file on our own. Unfortunately we can't cross-dir
compile cache-v7.S from ../../mm/ as that one also adds __INITDATA with
define_cache_functions v7 which would just trigger
> Error: unrecognized/unsupported machine ID (r1 = 0x0000007f).

The only real change Broadcom did in copied .S file was modifying mcr
instruction to use c6 instead of c14. It isn't clear to me if we really
need it, but let's use it for now.

By the way we also update commit message of the
[PATCH] ARM: BCM5301X: Disable MMU and Dcache during decompression

This makes kernel booting on BCM53573 successfully.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2016-08-19 11:38:44 +02:00
..
base-files bcm53xx: generate proper network config for Tenda AC9 2016-08-18 10:40:49 +02:00
files bcm53xx: switch back to standalone ASM entry flushing cache 2016-08-19 11:38:44 +02:00
image bcm53xx: prepare for building Tenda AC9 TRX image 2016-08-15 09:33:04 +02:00
patches-4.4 bcm53xx: switch back to standalone ASM entry flushing cache 2016-08-19 11:38:44 +02:00
profiles bcm53xx: include kmod-brcmfmac in default profile 2015-02-16 19:51:21 +00:00
config-4.4 kernel: bgmac: backport patch adding platform support 2016-08-17 12:41:20 +02:00
Makefile bcm53xx: basic support for Seama format in sysupgrade 2016-01-28 22:38:37 +00:00
modules.mk bcm53xx: package drivers for Northstar USB PHYs 2016-08-19 11:38:44 +02:00