File:  [ELWIX - Embedded LightWeight unIX -] / elwix / config / ELWIX_ALFA_N2.hints
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Mon Sep 15 19:06:42 2014 UTC (9 years, 8 months ago) by misho
Branches: MAIN
CVS tags: elwix2_8, elwix2_7, elwix2_6, elwix2_3, HEAD, ELWIX2_7, ELWIX2_6, ELWIX2_5, ELWIX2_2p0
elwix 2.2

    1: #
    2: ## ELWIX - ALFA Nx kernel hints file
    3: #
    4: # $Id: ELWIX_ALFA_N2.hints,v 1.2 2014/09/15 19:06:42 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: # mdiobus on arge0
   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: #
   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=1	# No, not GMII
   51: 
   52: # arge0: MII; dedicated PHY 4 on switch, connected via internal switch
   53: # MDIO bus.
   54: hint.arge.0.at="nexus0"
   55: hint.arge.0.maddr=0x19000000
   56: hint.arge.0.msize=0x1000
   57: hint.arge.0.irq=2
   58: hint.arge.0.eeprommac=0x1fff0000
   59: hint.arge.0.phymask=0x10	# PHY 4
   60: # hint.arge.0.miimode=2		# MII
   61: hint.arge.0.mdio=mdioproxy1	# Hanging off the arswitch MDIO bus
   62: 
   63: # arge1: connected to the LAN switch MAC, at 1000BaseTX / GMII.
   64: hint.arge.1.at="nexus0"
   65: hint.arge.1.maddr=0x1a000000
   66: hint.arge.1.msize=0x1000
   67: hint.arge.1.irq=3
   68: hint.arge.1.eeprommac=0x1fff0006
   69: hint.arge.1.phymask=0x0
   70: #hint.arge.1.mdio=mdioproxy1	# Hanging off the arswitch MDIO bus
   71: # hint.arge.1.miimode=1		# GMII
   72: hint.arge.1.media=1000		# Force to 1000BaseTX/full
   73: hint.arge.1.fduplex=1
   74: 
   75: # GPIO
   76: hint.gpio.0.at="apb0"
   77: hint.gpio.0.maddr=0x18040000
   78: hint.gpio.0.msize=0x1000
   79: hint.gpio.0.irq=2
   80: hint.gpio.0.pinmask=0x319c0
   81: 
   82: hint.gpio.0.function_set=0x00000001
   83: hint.gpio.0.function_clear=0x00000038
   84: 
   85: # Signal leds
   86: hint.gpioled.0.at="gpiobus0"
   87: hint.gpioled.0.name="but_0"
   88: hint.gpioled.0.pins=0x00800	# pin 11
   89: hint.gpioled.2.at="gpiobus0"
   90: hint.gpioled.2.name="led_2"
   91: hint.gpioled.2.pins=0x20000	# pin 17 ?
   92: hint.gpioled.3.at="gpiobus0"
   93: hint.gpioled.3.name="led_3"
   94: hint.gpioled.3.pins=0x10000	# pin 16 ?
   95: hint.gpioled.5.at="gpiobus0"
   96: hint.gpioled.5.name="led_5"
   97: hint.gpioled.5.pins=0x01000	# pin 12
   98: hint.gpioled.6.at="gpiobus0"
   99: hint.gpioled.6.name="led_6"
  100: hint.gpioled.6.pins=0x00100	# pin 8 ?
  101: hint.gpioled.7.at="gpiobus0"
  102: hint.gpioled.7.name="led_7"
  103: hint.gpioled.7.pins=0x00040	# pin 6 ?
  104: hint.gpioled.8.at="gpiobus0"
  105: hint.gpioled.8.name="led_8"
  106: hint.gpioled.8.pins=0x00080	# pin 7 ?
  107: 
  108: 
  109: # SPI controller/bus
  110: hint.spi.0.at="nexus0"
  111: hint.spi.0.maddr=0x1f000000
  112: hint.spi.0.msize=0x10
  113: 
  114: # SPI flash
  115: hint.mx25l.0.at="spibus0"
  116: hint.mx25l.0.cs=0
  117: 
  118: # Watchdog
  119: hint.ar71xx_wdog.0.at="nexus0"
  120: 
  121: # nvram mapping - XXX ?
  122: hint.nvram.0.base=0x1f030000
  123: hint.nvram.0.maxsize=0x2000
  124: hint.nvram.0.flags=3 # 1 = No check, 2 = Format Generic
  125: hint.nvram.1.base=0x1f032000
  126: hint.nvram.1.maxsize=0x4000
  127: hint.nvram.1.flags=3 # 1 = No check, 2 = Format Generic
  128: 
  129: # hwpmc device
  130: hint.ar71xx_pmc.0.at="apb0"
  131: hint.ar71xx_pmc.0.irq=5
  132: 
  133: # GEOM_MAP
  134: #
  135: # From my PB92 environment:
  136: #
  137: # mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),2752k(rootfs),896k(uImage),64k(NVRAM),64k(ART)
  138: 
  139: hint.map.0.at="flash/spi0"
  140: hint.map.0.start=0x00000000
  141: hint.map.0.end=0x00040000	# 256k u-boot
  142: hint.map.0.name="u-boot"
  143: hint.map.0.readonly=1
  144: 
  145: hint.map.1.at="flash/spi0"
  146: hint.map.1.start=0x00040000
  147: hint.map.1.end=0x00050000	# 64k u-boot-env
  148: hint.map.1.name="u-boot-env"
  149: hint.map.1.readonly=0
  150: 
  151: hint.map.2.at="flash/spi0"
  152: hint.map.2.start=0x00050000
  153: #hint.map.2.end=0x00300000	# 2752k rootfs
  154: hint.map.2.end=0x00650000	# 6144k rootfs
  155: hint.map.2.name="rootfs"
  156: hint.map.2.readonly=1
  157: 
  158: hint.map.3.at="flash/spi0"
  159: #hint.map.3.start=0x00300000
  160: #hint.map.3.end=0x003e0000	# 896k uImage
  161: hint.map.3.start=0x00650000
  162: hint.map.3.end=0x007e0000	# 1600k uImage
  163: hint.map.3.name="uImage"
  164: hint.map.3.readonly=1
  165: 
  166: hint.map.4.at="flash/spi0"
  167: #hint.map.4.start=0x003e0000
  168: #hint.map.4.end=0x003f0000	# 64k cfg
  169: hint.map.4.start=0x007e0000
  170: hint.map.4.end=0x007f0000	# 64k cfg
  171: hint.map.4.name="cfg"
  172: hint.map.4.readonly=0
  173: 
  174: hint.map.5.at="flash/spi0"
  175: #hint.map.5.start=0x003f0000
  176: #hint.map.5.end=0x00400000	# 64k ART
  177: hint.map.5.start=0x007f0000
  178: hint.map.5.end=0x00800000	# 64k ART
  179: hint.map.5.name="ART"
  180: hint.map.5.readonly=1
  181: 
  182: hint.map.6.at="flash/spi0"
  183: hint.map.6.start=0x00050000
  184: hint.map.6.end=0x007f0000	# 7808k firmware + cfg
  185: hint.map.6.name="firmware"
  186: hint.map.6.readonly=0

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