Annotation of elwix/config/ALFA_NX.hints, revision 1.1.2.2
1.1.2.2 ! misho 1: #
! 2: ## ELWIX - ALFA Nx kernel hints file
! 3: #
! 4: # $Id:$
! 5: #
! 6:
1.1.2.1 misho 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:
1.1.2.2 ! misho 17: #ohci
! 18: hint.ohci.0.at="apb0"
! 19: hint.ohci.0.maddr=0x1c000000
! 20: hint.ohci.0.msize=0x01000000
! 21: hint.ohci.0.irq=6
! 22:
! 23: #ehci
1.1.2.1 misho 24: hint.ehci.0.at="nexus0"
25: hint.ehci.0.maddr=0x1b000100
1.1.2.2 ! misho 26: hint.ehci.0.msize=0x01000000
1.1.2.1 misho 27: hint.ehci.0.irq=1
28:
29: # pci
30: hint.pcib.0.at="nexus0"
31: hint.pcib.0.irq=0
32:
33: # arge0 MDIO bus
34: hint.argemdio.0.at="nexus0"
35: hint.argemdio.0.maddr=0x19000000
36: hint.argemdio.0.msize=0x1000
37: hint.argemdio.0.order=0
38:
39: # arge0: MII; dedicated PHY 4 on switch, connected via internal switch
40: # MDIO bus.
41:
42: # hint.arge.0.eeprommac=0x83fe9ff0
43: hint.arge.0.phymask=0x10 # PHY 4
44: # hint.arge.0.miimode=2 # MII
45: hint.arge.0.mdio=mdioproxy1 # Hanging off the arswitch MDIO bus
46:
47: # arge1: connected to the LAN switch MAC, at 1000BaseTX / GMII.
48: hint.arge.1.phymask=0x0
49: # hint.arge.1.miimode=1 # GMII
50: #hint.arge.1.media=1000 # Force to 1000BaseTX/full
51: #hint.arge.1.fduplex=1
52:
53: #
54: # AR7240 switch config
55: #
56: hint.arswitch.0.at="mdio0"
57: hint.arswitch.0.is_7240=1 # We need to be explicitly told this
58: hint.arswitch.0.numphys=4 # 4 active switch PHYs (PHY 0 -> 3)
59: hint.arswitch.0.phy4cpu=1 # Yes, PHY 4 == dedicated PHY
60: hint.arswitch.0.is_rgmii=0 # No, not RGMII
61: hint.arswitch.0.is_gmii=0 # No, not GMII
62:
63: ## arge0
1.1.2.2 ! misho 64: hint.arge.0.at="nexus0"
! 65: hint.arge.0.maddr=0x19000000
! 66: hint.arge.0.msize=0x1000
! 67: hint.arge.0.irq=2
! 68:
! 69:
! 70: hint.arge.1.at="nexus0"
! 71: hint.arge.1.maddr=0x1a000000
! 72: hint.arge.1.msize=0x1000
! 73: hint.arge.1.irq=3
1.1.2.1 misho 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:
81: # Signal leds
82: hint.gpioled.0.at="gpiobus0"
83: hint.gpioled.0.name="sig1"
84: hint.gpioled.0.pins=0x0001 # pin 0
85: hint.gpioled.1.at="gpiobus0"
86: hint.gpioled.1.name="sig2"
87: hint.gpioled.1.pins=0x0002 # pin 1
88: hint.gpioled.2.at="gpiobus0"
89: hint.gpioled.2.name="sig3"
90: hint.gpioled.2.pins=0x0800 # pin 11
91: hint.gpioled.3.at="gpiobus0"
92: hint.gpioled.3.name="sig4"
93: hint.gpioled.3.pins=0x0080 # pin 7
94:
95: # SPI controller/bus
96: hint.spi.0.at="nexus0"
97: hint.spi.0.maddr=0x1f000000
98: hint.spi.0.msize=0x10
99:
100: # SPI flash
101: hint.mx25l.0.at="spibus0"
102: hint.mx25l.0.cs=0
103:
104: # Watchdog
105: hint.ar71xx_wdog.0.at="nexus0"
106:
107: # nvram mapping - XXX ?
108: hint.nvram.0.base=0x1f030000
109: hint.nvram.0.maxsize=0x2000
110: hint.nvram.0.flags=3 # 1 = No check, 2 = Format Generic
111: hint.nvram.1.base=0x1f032000
112: hint.nvram.1.maxsize=0x4000
113: hint.nvram.1.flags=3 # 1 = No check, 2 = Format Generic
114:
1.1.2.2 ! misho 115: # hwpmc device
! 116: hint.ar71xx_pmc.0.at="apb0"
! 117: hint.ar71xx_pmc.0.irq=5
! 118:
1.1.2.1 misho 119: # GEOM_MAP
120: #
121: # From my PB92 environment:
122: #
123: # mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),2752k(rootfs),896k(uImage),64k(NVRAM),64k(ART)
124:
125: hint.map.0.at="flash/spi0"
126: hint.map.0.start=0x00000000
127: hint.map.0.end=0x00040000 # 256k u-boot
128: hint.map.0.name="u-boot"
129: hint.map.0.readonly=1
130:
131: hint.map.1.at="flash/spi0"
132: hint.map.1.start=0x00040000
133: hint.map.1.end=0x00050000 # 64k u-boot-env
134: hint.map.1.name="u-boot-env"
135: hint.map.1.readonly=0
136:
137: hint.map.2.at="flash/spi0"
138: hint.map.2.start=0x00050000
139: hint.map.2.end=0x00650000 # 6144k rootfs
140: hint.map.2.name="rootfs"
141: hint.map.2.readonly=0
142:
143: hint.map.3.at="flash/spi0"
144: hint.map.3.start=0x00650000
145: hint.map.3.end=0x007e0000 # 1600k uImage
146: hint.map.3.name="uImage"
147: hint.map.3.readonly=0
148:
149: hint.map.4.at="flash/spi0"
150: hint.map.4.start=0x007e0000
151: hint.map.4.end=0x007f0000 # 64k NVRAM
152: hint.map.4.name="NVRAM"
153: hint.map.4.readonly=0
154:
155: hint.map.5.at="flash/spi0"
156: hint.map.5.start=0x007f0000
157: hint.map.5.end=0x00800000 # 64k ART
158: hint.map.5.name="ART"
159: hint.map.5.readonly=0
160:
161: hint.map.6.at="flash/spi0"
162: hint.map.6.start=0x00050000
163: hint.map.6.end=0x007e0000 # 7744k firmware
164: hint.map.6.name="firmware"
165: hint.map.6.readonly=1
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>