Commit graph

26 commits

Author SHA1 Message Date
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
Felix Fietkau
7eeb254cc4 treewide: replace nbd@openwrt.org with nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-06-07 08:58:42 +02:00
Rafał Miłecki
baf0b18653 bcm53xx: update bcm47xx_sprom to the latest 4.6 queued version
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48963
2016-03-08 11:05:10 +00:00
Rafał Miłecki
dab0569b97 bcm53xx: use SPROM driver queued for 4.6
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48935
2016-03-06 18:08:03 +00:00
Rafał Miłecki
055ee48ab0 bcm53xx: update bcm53xxspiflash to match spi-nor backported from 4.4-rc1
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 47653
2015-11-26 11:43:16 +00:00
Hauke Mehrtens
fa4395db04 bcm53xx: add support basic for kernel 4.3
The files directory is now split up into the files which are needed for
every kernel version and the files only needed by kernel 4.1. The files
in files-4.1 are already merged into mainline kernel 4.3. This patch
only removed patches which were merged into mainline kernel 4.3.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 47251
2015-10-25 16:43:14 +00:00
Felix Fietkau
a5c3407474 bcm53xx: allow device tree to override SPI flash partition layout
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46538
2015-07-31 20:55:30 +00:00
Rafał Miłecki
0049d0ca75 bcm53xx: update SPROM driver to include just-sent patch
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46086
2015-06-21 14:26:03 +00:00
Rafał Miłecki
950c0191c2 bcm53xx: update NVRAM driver to MIPS version from upstream-sfr
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45943
2015-06-10 20:34:32 +00:00
Rafał Miłecki
48da51ed03 bcm53xx: update NVRAM driver to support getting contents
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45907
2015-06-05 21:49:57 +00:00
Rafał Miłecki
d2e5e2bf54 bcm53xx: sync NVRAM and SPROM drivers with upstream version
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45678
2015-05-13 08:30:45 +00:00
Rafał Miłecki
509cce44bd bcm53xx: sprom: sync with mainline driver
The main difference now is bcm53xx registering it as platform (DT)
driver.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45230
2015-04-02 12:02:56 +00:00
Rafał Miłecki
91071e366c bcm53xx: sprom: simplify reading NVRAM after last backports
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45229
2015-04-02 12:01:56 +00:00
Rafał Miłecki
bf828d3fd0 bcm53xx: use bcm47xx_nvram.c with the latest patches
This will be hopefully a mainline version.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45204
2015-04-01 07:21:59 +00:00
Rafał Miłecki
0a9b7ea932 bcm53xx: support NVRAM prefixes with extra / in devpath
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44755
2015-03-14 16:35:56 +00:00
Rafał Miłecki
4c67f1d464 bcm53xx: fix typo in bcm47xx sprom driver
Fix thinko' in the bcm47xx sprom driver.

Signed-off-by: Ian Kent <raven@themaw.net>

SVN-Revision: 44679
2015-03-11 17:10:19 +00:00
Rafał Miłecki
44253d311f bcm53xx: sprom: extract for PCI host
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44464
2015-02-16 16:13:23 +00:00
Rafał Miłecki
4c98253648 bcm53xx: sprom: prepare to support other hosttype-s
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44463
2015-02-16 16:10:05 +00:00
Rafał Miłecki
e21e9c5548 bcm53xx: backport spi-nor changes and update bcm53xxspiflash
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43738
2014-12-17 14:53:25 +00:00
Rafał Miłecki
40d94a3ef0 bcm53xx: backport NVRAM driver sent upstream
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43612
2014-12-10 21:50:57 +00:00
Rafał Miłecki
ba81966001 bcm53xx: use bcma callback in SPROM driver to fill the SPROM
This is required because it has to be called at very precise moment. See
comment in driver for details.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43611
2014-12-10 21:24:11 +00:00
Rafał Miłecki
b0b43e1ef9 bcm53xx: use static NVRAM pointer for now
This will allow us to sync with code sent for upstream.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43608
2014-12-10 19:56:56 +00:00
Rafał Miłecki
960130e99c bcm53xx: clean up nvram header
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43606
2014-12-10 18:29:26 +00:00
Rafał Miłecki
7093580424 bcm53xx: move SPROM driver to the target files
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43604
2014-12-10 18:07:01 +00:00
Rafał Miłecki
27a91a99d9 bcm53xx: move NVRAM driver to the target files
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43603
2014-12-10 18:01:24 +00:00
Rafał Miłecki
3fab0d818c bcm53xx: move NVRAM header to the target files
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43602
2014-12-10 17:37:24 +00:00