The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/mips/conf/DIR-825C1.hints

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

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

Cache object: 59e416b723b22c08fd5d5c40eecc7014


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.