summaryrefslogtreecommitdiffstats
path: root/sys/mips/conf/PB47.hints
blob: 2bcdc77727b77280a184d5306735dc4c0de4e182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79

# $FreeBSD$

# There's two interfaces, but only one socket is populated.
#
# There's an AR8021 PHY attached to arge1.
#
# XXX TODO: figure out where to extract the MAC from.
hint.arge.1.phymask=0x01

# XXX TODO: pass in hints for the GPIO -> LED mapping for the
# minipci slot.  The specific customer reference design NIC
# wires GPIO5 from each AR9220 to one of two GPIO pins on the
# MiniPCI bus.  However, this may be very specific to the NIC
# being used.

# The default flash layout:
# uboot: 192k
# env: 64k
# rootfs: 6144k
# uimage (kernel): 1728k
# caldata: 64k
#
# We steal 64k from the end of rootfs to store the local config.

hint.map.0.at="flash/spi0"
hint.map.0.start=0x00000000
hint.map.0.end=0x000030000
hint.map.0.name="uboot"
hint.map.0.readonly=1

hint.map.1.at="flash/spi0"
hint.map.1.start=0x00030000
hint.map.1.end=0x00040000
hint.map.1.name="uboot-env"
hint.map.1.readonly=1

hint.map.2.at="flash/spi0"
hint.map.2.start=0x00040000
hint.map.2.end=0x00630000
hint.map.2.name="rootfs"
hint.map.2.readonly=1

hint.map.3.at="flash/spi0"
hint.map.3.start=0x00630000
hint.map.3.end=0x00640000
hint.map.3.name="cfg"
hint.map.3.readonly=0

hint.map.4.at="flash/spi0"
hint.map.4.start=0x00640000
hint.map.4.end=0x007f0000
hint.map.4.name="kernel"
hint.map.4.readonly=1

hint.map.5.at="flash/spi0"
hint.map.5.start=0x007f0000
hint.map.5.end=0x00800000
hint.map.5.name="art"
hint.map.5.readonly=1

# Don't flip on anything that isn't already enabled by the
# bootloader.
hint.gpio.0.function_set=0x00000000
hint.gpio.0.function_clear=0x00000000

# Which GPIO lines to enable - just GPIO2/3 for the LEDs.
hint.gpio.0.pinmask=0x0000000c

# GPIO2 and GPIO3 are LEDs, where 0=on and 1=off.
# XXX TODO: teach gpioled about polarity?
hint.gpioled.0.at="gpiobus0"
hint.gpioled.0.pins="0x0004"
hint.gpioled.0.name="led1"

hint.gpioled.1.at="gpiobus0"
hint.gpioled.1.pins="0x0008"
hint.gpioled.1.name="led2"

OpenPOWER on IntegriCloud