1
2# $FreeBSD$
3
4# There's two interfaces, but only one socket is populated.
5#
6# There's an AR8021 PHY attached to arge1.
7#
8# XXX TODO: figure out where to extract the MAC from.
9hint.arge.1.phymask=0x01
10
11# XXX TODO: pass in hints for the GPIO -> LED mapping for the
12# minipci slot.  The specific customer reference design NIC
13# wires GPIO5 from each AR9220 to one of two GPIO pins on the
14# MiniPCI bus.  However, this may be very specific to the NIC
15# being used.
16
17# The default flash layout:
18# uboot: 192k
19# env: 64k
20# rootfs: 6144k
21# uimage (kernel): 1728k
22# caldata: 64k
23#
24# We steal 64k from the end of rootfs to store the local config.
25
26hint.map.0.at="flash/spi0"
27hint.map.0.start=0x00000000
28hint.map.0.end=0x000030000
29hint.map.0.name="uboot"
30hint.map.0.readonly=1
31
32hint.map.1.at="flash/spi0"
33hint.map.1.start=0x00030000
34hint.map.1.end=0x00040000
35hint.map.1.name="uboot-env"
36hint.map.1.readonly=1
37
38hint.map.2.at="flash/spi0"
39hint.map.2.start=0x00040000
40hint.map.2.end=0x00630000
41hint.map.2.name="rootfs"
42hint.map.2.readonly=1
43
44hint.map.3.at="flash/spi0"
45hint.map.3.start=0x00630000
46hint.map.3.end=0x00640000
47hint.map.3.name="cfg"
48hint.map.3.readonly=0
49
50hint.map.4.at="flash/spi0"
51hint.map.4.start=0x00640000
52hint.map.4.end=0x007f0000
53hint.map.4.name="kernel"
54hint.map.4.readonly=1
55
56hint.map.5.at="flash/spi0"
57hint.map.5.start=0x007f0000
58hint.map.5.end=0x00800000
59hint.map.5.name="art"
60hint.map.5.readonly=1
61
62# Don't flip on anything that isn't already enabled by the
63# bootloader.
64hint.gpio.0.function_set=0x00000000
65hint.gpio.0.function_clear=0x00000000
66
67# Which GPIO lines to enable - just GPIO2/3 for the LEDs.
68hint.gpio.0.pinmask=0x0000000c
69
70# GPIO2 and GPIO3 are LEDs, where 0=on and 1=off.
71# XXX TODO: teach gpioled about polarity?
72hint.gpioled.0.at="gpiobus0"
73hint.gpioled.0.pins="0x0004"
74hint.gpioled.0.name="led1"
75
76hint.gpioled.1.at="gpiobus0"
77hint.gpioled.1.pins="0x0008"
78hint.gpioled.1.name="led2"
79
80