aboutsummaryrefslogtreecommitdiff
path: root/sys/mips
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2018-02-05 04:48:41 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2018-02-05 04:48:41 +0000
commit286a5a1c7eb357dbae1a1dfb26851d310afe4347 (patch)
tree3bd99908d67c246c6f83c92c98dda544fc167e85 /sys/mips
parent431017d066cb60246440da1ce24e779fce5e094d (diff)
downloadsrc-286a5a1c7eb357dbae1a1dfb26851d310afe4347.tar.gz
src-286a5a1c7eb357dbae1a1dfb26851d310afe4347.zip
[ar71xx] Fix DB120 AHB device hints in the new world order.
This allows the on-chip (AHB bus) device to attach correctly as a module. Tested: * DB120, AR9344 (SoC + 2x2 2G wifi) + QCA9580 PCI 3x3 5G wifi
Notes
Notes: svn path=/head/; revision=328869
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/conf/DB120.hints31
1 files changed, 19 insertions, 12 deletions
diff --git a/sys/mips/conf/DB120.hints b/sys/mips/conf/DB120.hints
index 9dd5d7ceb49a..228a8ed85abd 100644
--- a/sys/mips/conf/DB120.hints
+++ b/sys/mips/conf/DB120.hints
@@ -84,9 +84,15 @@ hint.arge.1.miimode=1 # GMII
# MAC for arge1 is the second 6 bytes of the ART
hint.arge.1.eeprommac=0x1f7f0006
-# ath0: Where the ART is - last 64k in the flash
-hint.ath.0.eepromaddr=0x1fff0000
-hint.ath.0.eepromsize=16384
+# ART calibration data mapping - for the AR934x AHB device
+hint.ar71xx_caldata.0.at="nexus0"
+hint.ar71xx_caldata.0.order=0
+# Where the ART is - last 64k in the first 8MB of flash
+hint.ar71xx_caldata.0.map.0.ath_fixup_addr=0x1fff0000
+hint.ar71xx_caldata.0.map.0.ath_fixup_size=16384
+
+# And now tell the ath(4) driver where to look!
+hint.ath.0.eeprom_firmware="ar71xx_caldata.0.map.0.eeprom_firmware"
# ath1: it's different; it's a PCIe attached device, so
# we instead need to teach the PCIe bridge code about it
@@ -119,19 +125,20 @@ hint.map.1.end=0x00050000 # 64k u-boot-env
hint.map.1.name="u-boot-env"
hint.map.1.readonly=1
-# 6336KiB rootfs
+# 6336KiB rootfs + 1344KiB uImage; turn into a single long
+# combo image for FreeBSD.
+
hint.map.2.at="flash/spi0"
hint.map.2.start=0x00050000
-hint.map.2.end=0x00680000 # 6336k rootfs
-hint.map.2.name="rootfs"
-hint.map.2.readonly=1
+hint.map.2.end="search:0x00050000:0x10000:.!/bin/sh"
+hint.map.2.name="kernel"
+hint.map.2.readonly=0
-# 1344KiB uImage
hint.map.3.at="flash/spi0"
-hint.map.3.start=0x00680000
-hint.map.3.end=0x007d0000 # 1408k uImage, 64k off the end..
-hint.map.3.name="uImage"
-hint.map.3.readonly=1
+hint.map.3.start="search:0x00050000:0x10000:.!/bin/sh"
+hint.map.3.end=0x007d0000
+hint.map.3.name="rootfs"
+hint.map.3.readonly=0
# 64KiB cfg
hint.map.4.at="flash/spi0"