]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/mips/conf/ENH200.hints
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / mips / conf / ENH200.hints
1 # $FreeBSD$
2
3 # arge0 MDIO bus
4 hint.argemdio.0.at="nexus0"
5 hint.argemdio.0.maddr=0x19000000
6 hint.argemdio.0.msize=0x1000
7 hint.argemdio.0.order=0
8
9 # arge1 MDIO bus doesn't exist on the AR7240
10
11 # arge0: MII; dedicated PHY 4 on switch, connected via internal switch
12 # MDIO bus.
13
14 # hint.arge.0.eeprommac=0x83fe9ff0
15 hint.arge.0.phymask=0x10        # PHY 4
16 # hint.arge.0.miimode=2         # MII
17 hint.arge.0.mdio=mdioproxy1     # Hanging off the arswitch MDIO bus
18
19 # arge1: connected to the LAN switch MAC, at 1000BaseTX / GMII.
20 hint.arge.1.phymask=0x0
21 # hint.arge.1.miimode=1         # GMII
22 hint.arge.1.media=1000          # Force to 1000BaseTX/full
23 hint.arge.1.fduplex=1
24
25 #
26 # AR7240 switch config
27 #
28 hint.arswitch.0.at="mdio0"
29 hint.arswitch.0.is_7240=1       # We need to be explicitly told this
30 hint.arswitch.0.numphys=4       # 4 active switch PHYs (PHY 0 -> 3)
31 hint.arswitch.0.phy4cpu=1       # Yes, PHY 4 == dedicated PHY
32 hint.arswitch.0.is_rgmii=0      # No, not RGMII
33 hint.arswitch.0.is_gmii=0       # No, not GMII
34
35 # ath0 hint - pcie slot 0
36 hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff1000
37 hint.pcib.0.bus.0.0.0.ath_fixup_size=4096
38
39 # ath0 - eeprom comes from here
40 hint.ath.0.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware"
41
42 # Signal leds
43 hint.gpioled.0.at="gpiobus0"
44 hint.gpioled.0.name="sig1"
45 hint.gpioled.0.pins=0x0001      # pin 0
46 hint.gpioled.1.at="gpiobus0"
47 hint.gpioled.1.name="sig2"
48 hint.gpioled.1.pins=0x0002      # pin 1
49 hint.gpioled.2.at="gpiobus0"
50 hint.gpioled.2.name="sig3"
51 hint.gpioled.2.pins=0x0800      # pin 11
52 hint.gpioled.3.at="gpiobus0"
53 hint.gpioled.3.name="sig4"
54 hint.gpioled.3.pins=0x0080      # pin 7
55
56 # nvram mapping - XXX ?
57 #hint.nvram.0.base=0x1f030000
58 #hint.nvram.0.maxsize=0x2000
59 #hint.nvram.0.flags=3 # 1 = No check, 2 = Format Generic
60 #hint.nvram.1.base=0x1f032000
61 #hint.nvram.1.maxsize=0x4000
62 #hint.nvram.1.flags=3 # 1 = No check, 2 = Format Generic
63
64 # GEOM_MAP
65 #
66 # The default bootargs:
67 #
68 # bootargs=console=ttyS0,115200 root=31:04 rootfstype=squashfs init=/etc/preinit mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),320k(custom),1024k(kernel),4928k(rootfs),1536k(failsafe),64k(ART) board=ENH200
69 #
70 # However there's not a lot of space in this image layout.
71 #
72 # Thus, an alternate layout will be used, complete with reconfiguring
73 # uboot to use the new base address.
74 #
75 # 256k - uboot (0x000000 -> 0x040000)
76 # 64k - uboot-env (0x040000 -> 0x050000)
77 # 1728k - kernel (0x050000 -> 0x200000)
78 # 6016k - rootfs (0x200000 -> 0x7e0000)
79 # 64k - config (0x7e0000 -> 0x7f0000)
80 # 64k - ART (0x7f0000 -> 0x800000)
81 #
82 # For this, the 'bootcmd' environment variable needs to be
83 # changed to point to the new location:
84 #
85 # ar7240> setenv bootcmd 'bootm 0x9f050000'
86
87 # uboot (256k)
88 hint.map.0.at="flash/spi0"
89 hint.map.0.start=0x00000000
90 hint.map.0.end=0x00040000
91 hint.map.0.name="uboot"
92 hint.map.0.readonly=1
93
94 # uboot-env (64k)
95 hint.map.1.at="flash/spi0"
96 hint.map.1.start=0x00040000
97 hint.map.1.end=0x00050000
98 hint.map.1.name="uboot-env"
99 hint.map.1.readonly=1
100
101 # kernel (1728k)
102 hint.map.2.at="flash/spi0"
103 hint.map.2.start=0x00050000
104 hint.map.2.end=0x00200000
105 hint.map.2.name="kernel"
106
107 # rootfs (6016k)
108 hint.map.3.at="flash/spi0"
109 hint.map.3.start=0x00200000
110 hint.map.3.end=0x007e0000
111 hint.map.3.name="rootfs"
112
113 # config (64k)
114 hint.map.4.at="flash/spi0"
115 hint.map.4.start=0x007e0000
116 hint.map.4.end=0x007f0000
117 hint.map.4.name="cfg"
118
119 # ART (64k)
120 hint.map.5.at="flash/spi0"
121 hint.map.5.start=0x007f0000
122 hint.map.5.end=0x00800000
123 hint.map.5.name="ART"
124 hint.map.5.readonly=1