Annotation of elwix/config/ALFA_NX.hints, revision 1.1.2.1
1.1.2.1 ! misho 1: # $FreeBSD: src/sys/mips/conf/PB92.hints,v 1.4 2012/11/17 01:52:48 svnexp Exp $
! 2: hint.apb.0.at="nexus0"
! 3: hint.apb.0.irq=4
! 4:
! 5: # uart0
! 6: hint.uart.0.at="apb0"
! 7: # see atheros/uart_cpu_ar71xx.c why +3
! 8: hint.uart.0.maddr=0x18020003
! 9: hint.uart.0.msize=0x18
! 10: hint.uart.0.irq=3
! 11:
! 12: #ehci - note the 0x100 offset for the AR913x/AR724x
! 13: hint.ehci.0.at="nexus0"
! 14: hint.ehci.0.maddr=0x1b000100
! 15: hint.ehci.0.msize=0x00ffff00
! 16: hint.ehci.0.irq=1
! 17:
! 18: # pci
! 19: hint.pcib.0.at="nexus0"
! 20: hint.pcib.0.irq=0
! 21:
! 22: # arge0 MDIO bus
! 23: hint.argemdio.0.at="nexus0"
! 24: hint.argemdio.0.maddr=0x19000000
! 25: hint.argemdio.0.msize=0x1000
! 26: hint.argemdio.0.order=0
! 27:
! 28: # arge0: MII; dedicated PHY 4 on switch, connected via internal switch
! 29: # MDIO bus.
! 30:
! 31: # hint.arge.0.eeprommac=0x83fe9ff0
! 32: hint.arge.0.phymask=0x10 # PHY 4
! 33: # hint.arge.0.miimode=2 # MII
! 34: hint.arge.0.mdio=mdioproxy1 # Hanging off the arswitch MDIO bus
! 35:
! 36: # arge1: connected to the LAN switch MAC, at 1000BaseTX / GMII.
! 37: hint.arge.1.phymask=0x0
! 38: # hint.arge.1.miimode=1 # GMII
! 39: #hint.arge.1.media=1000 # Force to 1000BaseTX/full
! 40: #hint.arge.1.fduplex=1
! 41:
! 42: #
! 43: # AR7240 switch config
! 44: #
! 45: hint.arswitch.0.at="mdio0"
! 46: hint.arswitch.0.is_7240=1 # We need to be explicitly told this
! 47: hint.arswitch.0.numphys=4 # 4 active switch PHYs (PHY 0 -> 3)
! 48: hint.arswitch.0.phy4cpu=1 # Yes, PHY 4 == dedicated PHY
! 49: hint.arswitch.0.is_rgmii=0 # No, not RGMII
! 50: hint.arswitch.0.is_gmii=0 # No, not GMII
! 51:
! 52: ## arge0
! 53: #hint.arge.0.at="nexus0"
! 54: #hint.arge.0.maddr=0x19000000
! 55: #hint.arge.0.msize=0x1000
! 56: #hint.arge.0.irq=2
! 57: #
! 58: ## AR8316 workaround for now
! 59: #hint.arge.0.media=1000
! 60: #hint.arge.0.fduplex=1
! 61: #hint.arge.0.phymask=0x3
! 62:
! 63: # GPIO
! 64: hint.gpio.0.at="apb0"
! 65: hint.gpio.0.maddr=0x18040000
! 66: hint.gpio.0.msize=0x1000
! 67: hint.gpio.0.irq=2
! 68:
! 69: # Signal leds
! 70: hint.gpioled.0.at="gpiobus0"
! 71: hint.gpioled.0.name="sig1"
! 72: hint.gpioled.0.pins=0x0001 # pin 0
! 73: hint.gpioled.1.at="gpiobus0"
! 74: hint.gpioled.1.name="sig2"
! 75: hint.gpioled.1.pins=0x0002 # pin 1
! 76: hint.gpioled.2.at="gpiobus0"
! 77: hint.gpioled.2.name="sig3"
! 78: hint.gpioled.2.pins=0x0800 # pin 11
! 79: hint.gpioled.3.at="gpiobus0"
! 80: hint.gpioled.3.name="sig4"
! 81: hint.gpioled.3.pins=0x0080 # pin 7
! 82:
! 83: # SPI controller/bus
! 84: hint.spi.0.at="nexus0"
! 85: hint.spi.0.maddr=0x1f000000
! 86: hint.spi.0.msize=0x10
! 87:
! 88: # SPI flash
! 89: hint.mx25l.0.at="spibus0"
! 90: hint.mx25l.0.cs=0
! 91:
! 92: # Watchdog
! 93: hint.ar71xx_wdog.0.at="nexus0"
! 94:
! 95: # nvram mapping - XXX ?
! 96: hint.nvram.0.base=0x1f030000
! 97: hint.nvram.0.maxsize=0x2000
! 98: hint.nvram.0.flags=3 # 1 = No check, 2 = Format Generic
! 99: hint.nvram.1.base=0x1f032000
! 100: hint.nvram.1.maxsize=0x4000
! 101: hint.nvram.1.flags=3 # 1 = No check, 2 = Format Generic
! 102:
! 103: # GEOM_MAP
! 104: #
! 105: # From my PB92 environment:
! 106: #
! 107: # mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),2752k(rootfs),896k(uImage),64k(NVRAM),64k(ART)
! 108:
! 109: hint.map.0.at="flash/spi0"
! 110: hint.map.0.start=0x00000000
! 111: hint.map.0.end=0x00040000 # 256k u-boot
! 112: hint.map.0.name="u-boot"
! 113: hint.map.0.readonly=1
! 114:
! 115: hint.map.1.at="flash/spi0"
! 116: hint.map.1.start=0x00040000
! 117: hint.map.1.end=0x00050000 # 64k u-boot-env
! 118: hint.map.1.name="u-boot-env"
! 119: hint.map.1.readonly=0
! 120:
! 121: hint.map.2.at="flash/spi0"
! 122: hint.map.2.start=0x00050000
! 123: hint.map.2.end=0x00650000 # 6144k rootfs
! 124: hint.map.2.name="rootfs"
! 125: hint.map.2.readonly=0
! 126:
! 127: hint.map.3.at="flash/spi0"
! 128: hint.map.3.start=0x00650000
! 129: hint.map.3.end=0x007e0000 # 1600k uImage
! 130: hint.map.3.name="uImage"
! 131: hint.map.3.readonly=0
! 132:
! 133: hint.map.4.at="flash/spi0"
! 134: hint.map.4.start=0x007e0000
! 135: hint.map.4.end=0x007f0000 # 64k NVRAM
! 136: hint.map.4.name="NVRAM"
! 137: hint.map.4.readonly=0
! 138:
! 139: hint.map.5.at="flash/spi0"
! 140: hint.map.5.start=0x007f0000
! 141: hint.map.5.end=0x00800000 # 64k ART
! 142: hint.map.5.name="ART"
! 143: hint.map.5.readonly=0
! 144:
! 145: hint.map.6.at="flash/spi0"
! 146: hint.map.6.start=0x00050000
! 147: hint.map.6.end=0x007e0000 # 7744k firmware
! 148: hint.map.6.name="firmware"
! 149: hint.map.6.readonly=1
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>