DIR-825C1.hints revision 264085
1# $FreeBSD: head/sys/mips/conf/DIR-825C1.hints 264085 2014-04-03 20:12:39Z sbruno $ 2 3# This is a placeholder until the hardware support is complete. 4 5# mdiobus0 on arge0 6hint.argemdio.0.at="nexus0" 7hint.argemdio.0.maddr=0x19000000 8hint.argemdio.0.msize=0x1000 9hint.argemdio.0.order=0 10 11# DIR-825C1 GMAC configuration 12# + AR934X_ETH_CFG_RGMII_GMAC0 (1 << 0) 13# Onboard AR9344 10/100 switch is not wired up 14hint.ar934x_gmac.0.gmac_cfg=0x1 15 16# GMAC0 here - connected to an AR8327 17hint.arswitch.0.at="mdio0" 18hint.arswitch.0.is_7240=0 19hint.arswitch.0.is_9340=0 # not the internal switch! 20hint.arswitch.0.numphys=5 21hint.arswitch.0.phy4cpu=0 22hint.arswitch.0.is_rgmii=1 23hint.arswitch.0.is_gmii=0 24 25# Other AR8327 configuration parameters 26 27# AR8327_PAD_MAC_RGMII 28hint.arswitch.0.pad.0.mode=6 29hint.arswitch.0.pad.0.txclk_delay_en=1 30hint.arswitch.0.pad.0.rxclk_delay_en=1 31 32# AR8327_CLK_DELAY_SEL1 33hint.arswitch.0.pad.0.txclk_delay_sel=1 34# AR8327_CLK_DELAY_SEL2 35hint.arswitch.0.pad.0.rxclk_delay_sel=2 36 37# XXX there's no LED management just yet! 38hint.arswitch.0.led.ctrl0=0x00000000 39hint.arswitch.0.led.ctrl1=0xc737c737 40hint.arswitch.0.led.ctrl2=0x00000000 41hint.arswitch.0.led.ctrl3=0x00c30c00 42hint.arswitch.0.led.open_drain=1 43 44# force_link=1 is required for the rest of the parameters 45# to be configured. 46hint.arswitch.0.port.0.force_link=1 47hint.arswitch.0.port.0.speed=1000 48hint.arswitch.0.port.0.duplex=1 49hint.arswitch.0.port.0.txpause=1 50hint.arswitch.0.port.0.rxpause=1 51 52# XXX OpenWRT DB120 BSP doesn't have media/duplex set? 53hint.arge.0.phymask=0x0 54hint.arge.0.media=1000 55hint.arge.0.fduplex=1 56hint.arge.0.miimode=3 # RGMII 57hint.arge.0.pll_1000=0x06000000 58 59# ath0: Where the ART is - last 64k in the flash 60hint.ath.0.eepromaddr=0x1fff0000 61hint.ath.0.eepromsize=16384 62 63# ath1: it's different; it's a PCIe attached device, so 64# we instead need to teach the PCIe bridge code about it 65# (ie, the 'early pci fixup' stuff that programs the PCIe 66# host registers on the NIC) and then we teach ath where 67# to find it. 68 69# ath1 hint - pcie slot 0 70hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff4000 71hint.pcib.0.bus.0.0.0.ath_fixup_size=16384 72 73# ath0 - eeprom comes from here 74hint.ath.1.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware" 75 76# flash layout: 77# m25p80 spi0.0: mx25l12805d (16384 Kbytes) 78# 79# uBoot firmware variables: 80# bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init 81# mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),64k(mib0),64k(ART) 82 83# 64KiB u-boot 84hint.map.0.at="flash/spi0" 85hint.map.0.start=0x00000000 86hint.map.0.end= 0x00010000 87hint.map.0.name="u-boot" 88hint.map.0.readonly=1 89 90# 64KiB u-boot-env 91hint.map.1.at="flash/spi0" 92hint.map.1.start=0x00010000 93hint.map.1.end= 0x00020000 94hint.map.1.name="u-boot-env" 95hint.map.1.readonly=1 96 97# 1344KiB kernel 98hint.map.2.at="flash/spi0" 99hint.map.2.start=0x00020000 100hint.map.2.end="search:0x00100000:0x10000:.!/bin/sh" 101hint.map.2.name="kernel" 102hint.map.2.readonly=1 103 104# 14592KiB rootfs 105hint.map.3.at="flash/spi0" 106hint.map.3.start="search:0x00100000:0x10000:.!/bin/sh" 107hint.map.3.end=0x00fb0000 108hint.map.3.name="rootfs" 109hint.map.3.readonly=1 110 111# 192KiB lang -- remapped to cfg 112hint.map.4.at="flash/spi0" 113hint.map.4.start=0x00fb0000 114hint.map.4.end= 0x00fe0000 115hint.map.4.name="cfg" 116hint.map.4.readonly=0 117 118# 64KiB mac 119hint.map.5.at="flash/spi0" 120hint.map.5.start=0x00fe0000 121hint.map.5.end= 0x00ff0000 122hint.map.5.name="mac" 123hint.map.5.readonly=1 124 125# 64KiB art 126hint.map.6.at="flash/spi0" 127hint.map.6.start=0x00ff0000 128hint.map.6.end= 0x01000000 129hint.map.6.name="art" 130hint.map.6.readonly=1 131