File:  [ELWIX - Embedded LightWeight unIX -] / elwix / config / ELWIX_ALFA_N2.hints
Revision 1.1.2.5: download - view: text, annotated - select for diffs - revision graph
Thu Jan 23 22:26:00 2014 UTC (10 years, 5 months ago) by misho
Branches: elwix2_2
upd images

    1: #
    2: ## ELWIX - ALFA Nx kernel hints file
    3: #
    4: # $Id: ELWIX_ALFA_N2.hints,v 1.1.2.5 2014/01/23 22:26:00 misho Exp $
    5: #
    6: 
    7: hint.apb.0.at="nexus0"
    8: hint.apb.0.irq=4
    9: 
   10: # uart0
   11: hint.uart.0.at="apb0"
   12: # see atheros/uart_cpu_ar71xx.c why +3
   13: hint.uart.0.maddr=0x18020003
   14: hint.uart.0.msize=0x18
   15: hint.uart.0.irq=3
   16: 
   17: #ehci - note the 0x100 offset for the AR913x/AR724x
   18: hint.ehci.0.at="nexus0"
   19: hint.ehci.0.maddr=0x1b000100
   20: hint.ehci.0.msize=0x00ffff00
   21: hint.ehci.0.irq=1
   22: 
   23: # pci
   24: hint.pcib.0.at="nexus0"
   25: hint.pcib.0.irq=0
   26: 
   27: # ath0 hint - pcie slot 0
   28: hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff1000
   29: hint.pcib.0.bus.0.0.0.ath_fixup_size=4096
   30: 
   31: # ath
   32: hint.ath.0.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware"
   33: # Where the ART is
   34: hint.ath.0.eepromaddr=0x1fff1000
   35: 
   36: # arge0 MDIO bus
   37: hint.argemdio.0.at="nexus0"
   38: hint.argemdio.0.maddr=0x19000000
   39: hint.argemdio.0.msize=0x1000
   40: hint.argemdio.0.order=0
   41: 
   42: # arge0: MII; dedicated PHY 4 on switch, connected via internal switch
   43: # MDIO bus.
   44: 
   45: # hint.arge.0.eeprommac=0x83fe9ff0
   46: hint.arge.0.phymask=0x10	# PHY 4
   47: # hint.arge.0.miimode=2		# MII
   48: hint.arge.0.mdio=mdioproxy1	# Hanging off the arswitch MDIO bus
   49: 
   50: # arge1: connected to the LAN switch MAC, at 1000BaseTX / GMII.
   51: hint.arge.1.phymask=0x0
   52: hint.arge.1.mdio=mdioproxy1	# Hanging off the arswitch MDIO bus
   53: # hint.arge.1.miimode=1		# GMII
   54: #hint.arge.1.media=1000		# Force to 1000BaseTX/full
   55: #hint.arge.1.fduplex=1
   56: 
   57: #
   58: # AR7240 switch config
   59: #
   60: hint.arswitch.0.at="mdio0"
   61: hint.arswitch.0.is_7240=1	# We need to be explicitly told this
   62: hint.arswitch.0.numphys=2	# 4 active switch PHYs (PHY 0 -> 3)
   63: hint.arswitch.0.phy4cpu=1	# Yes, PHY 4 == dedicated PHY
   64: hint.arswitch.0.is_rgmii=1	# No, not RGMII
   65: hint.arswitch.0.is_gmii=0	# No, not GMII
   66: 
   67: # arge0
   68: hint.arge.0.at="nexus0"
   69: hint.arge.0.maddr=0x19000000
   70: hint.arge.0.msize=0x1000
   71: hint.arge.0.irq=2
   72: 
   73: hint.arge.1.at="nexus0"
   74: hint.arge.1.maddr=0x1a000000
   75: hint.arge.1.msize=0x1000
   76: hint.arge.1.irq=3
   77: 
   78: # GPIO
   79: hint.gpio.0.at="apb0"
   80: hint.gpio.0.maddr=0x18040000
   81: hint.gpio.0.msize=0x1000
   82: hint.gpio.0.irq=2
   83: 
   84: # Signal leds
   85: hint.gpioled.0.at="gpiobus0"
   86: hint.gpioled.0.name="but0"
   87: hint.gpioled.0.pins=0x00800	# pin 11
   88: hint.gpioled.1.at="gpiobus0"
   89: hint.gpioled.1.name="sig2"
   90: hint.gpioled.1.pins=0x20000	# pin 17
   91: hint.gpioled.2.at="gpiobus0"
   92: hint.gpioled.2.name="sig3"
   93: hint.gpioled.2.pins=0x10000	# pin 16
   94: hint.gpioled.4.at="gpiobus0"
   95: hint.gpioled.4.name="sig5"
   96: hint.gpioled.4.pins=0x01000	# pin 12
   97: hint.gpioled.5.at="gpiobus0"
   98: hint.gpioled.5.name="sig6"
   99: hint.gpioled.5.pins=0x00100	# pin 8
  100: hint.gpioled.6.at="gpiobus0"
  101: hint.gpioled.6.name="sig7"
  102: hint.gpioled.6.pins=0x00040	# pin 6
  103: hint.gpioled.7.at="gpiobus0"
  104: hint.gpioled.7.name="sig8"
  105: hint.gpioled.7.pins=0x00080	# pin 7
  106: 
  107: # SPI controller/bus
  108: hint.spi.0.at="nexus0"
  109: hint.spi.0.maddr=0x1f000000
  110: hint.spi.0.msize=0x10
  111: 
  112: # SPI flash
  113: hint.mx25l.0.at="spibus0"
  114: hint.mx25l.0.cs=0
  115: 
  116: # Watchdog
  117: hint.ar71xx_wdog.0.at="nexus0"
  118: 
  119: # nvram mapping - XXX ?
  120: hint.nvram.0.base=0x1f030000
  121: hint.nvram.0.maxsize=0x2000
  122: hint.nvram.0.flags=3 # 1 = No check, 2 = Format Generic
  123: hint.nvram.1.base=0x1f032000
  124: hint.nvram.1.maxsize=0x4000
  125: hint.nvram.1.flags=3 # 1 = No check, 2 = Format Generic
  126: 
  127: # hwpmc device
  128: hint.ar71xx_pmc.0.at="apb0"
  129: hint.ar71xx_pmc.0.irq=5
  130: 
  131: # GEOM_MAP
  132: #
  133: # From my PB92 environment:
  134: #
  135: # mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),2752k(rootfs),896k(uImage),64k(NVRAM),64k(ART)
  136: 
  137: hint.map.0.at="flash/spi0"
  138: hint.map.0.start=0x00000000
  139: hint.map.0.end=0x00040000	# 256k u-boot
  140: hint.map.0.name="u-boot"
  141: hint.map.0.readonly=1
  142: 
  143: hint.map.1.at="flash/spi0"
  144: hint.map.1.start=0x00040000
  145: hint.map.1.end=0x00050000	# 64k u-boot-env
  146: hint.map.1.name="u-boot-env"
  147: hint.map.1.readonly=0
  148: 
  149: hint.map.2.at="flash/spi0"
  150: hint.map.2.start=0x00050000
  151: #hint.map.2.end=0x00300000	# 2752k rootfs
  152: hint.map.2.end=0x00650000	# 6144k rootfs
  153: hint.map.2.name="rootfs"
  154: hint.map.2.readonly=1
  155: 
  156: hint.map.3.at="flash/spi0"
  157: #hint.map.3.start=0x00300000
  158: #hint.map.3.end=0x003e0000	# 896k uImage
  159: hint.map.3.start=0x00650000
  160: hint.map.3.end=0x007e0000	# 1600k uImage
  161: hint.map.3.name="uImage"
  162: hint.map.3.readonly=1
  163: 
  164: hint.map.4.at="flash/spi0"
  165: #hint.map.4.start=0x003e0000
  166: #hint.map.4.end=0x003f0000	# 64k cfg
  167: hint.map.4.start=0x007e0000
  168: hint.map.4.end=0x007f0000	# 64k cfg
  169: hint.map.4.name="cfg"
  170: hint.map.4.readonly=0
  171: 
  172: hint.map.5.at="flash/spi0"
  173: #hint.map.5.start=0x003f0000
  174: #hint.map.5.end=0x00400000	# 64k ART
  175: hint.map.5.start=0x007f0000
  176: hint.map.5.end=0x00800000	# 64k ART
  177: hint.map.5.name="ART"
  178: hint.map.5.readonly=1
  179: 
  180: hint.map.6.at="flash/spi0"
  181: hint.map.6.start=0x00050000
  182: hint.map.6.end=0x007e0000	# 7744k firmware
  183: hint.map.6.name="firmware"
  184: hint.map.6.readonly=0

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>