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-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 # $FreeBSD: head/sys/mips/conf/DIR-825C1.hints 328757 2018-02-01 22:01:11Z adrian $
    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 # Where the ART is - last 64k in the first 8MB of flash
   84 hint.ar71xx_caldata.0.map.0.ath_fixup_addr=0x1fff0000
   85 hint.ar71xx_caldata.0.map.0.ath_fixup_size=16384
   86 
   87 # And now tell the ath(4) driver where to look!
   88 hint.ath.0.eeprom_firmware="ar71xx_caldata.0.map.0.eeprom_firmware"
   89 
   90 # ath1: it's different; it's a PCIe attached device, so
   91 # we instead need to teach the PCIe bridge code about it
   92 # (ie, the 'early pci fixup' stuff that programs the PCIe
   93 # host registers on the NIC) and then we teach ath where
   94 # to find it.
   95 
   96 # ath1 hint - pcie slot 0
   97 hint.pcib.0.bus.0.0.0.ath_fixup_addr=0x1fff4000
   98 hint.pcib.0.bus.0.0.0.ath_fixup_size=16384
   99 
  100 # ath0 - eeprom comes from here
  101 hint.ath.1.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware"
  102 
  103 # flash layout:
  104 # m25p80 spi0.0: mx25l12805d (16384 Kbytes)
  105 # 
  106 # uBoot firmware variables:
  107 # bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init
  108 # mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),64k(mib0),64k(ART)
  109 
  110 # 64KiB u-boot
  111 hint.map.0.at="flash/spi0"
  112 hint.map.0.start=0x00000000
  113 hint.map.0.end=0x00010000
  114 hint.map.0.name="u-boot"
  115 hint.map.0.readonly=1
  116 
  117 # 64KiB u-boot-env
  118 hint.map.1.at="flash/spi0"
  119 hint.map.1.start=0x00010000
  120 hint.map.1.end=0x00020000
  121 hint.map.1.name="u-boot-env"
  122 hint.map.1.readonly=1
  123 
  124 # 1344KiB kernel 
  125 hint.map.2.at="flash/spi0"
  126 hint.map.2.start=0x00020000
  127 hint.map.2.end="search:0x00020000:0x10000:.!/bin/sh"
  128 hint.map.2.name="kernel"
  129 hint.map.2.readonly=1
  130 
  131 # 14592KiB rootfs
  132 hint.map.3.at="flash/spi0"
  133 hint.map.3.start="search:0x00020000:0x10000:.!/bin/sh"
  134 hint.map.3.end=0x00fb0000
  135 hint.map.3.name="rootfs"
  136 hint.map.3.readonly=1
  137 
  138 # 192KiB lang -- remapped to cfg
  139 hint.map.4.at="flash/spi0"
  140 hint.map.4.start=0x00fb0000
  141 hint.map.4.end=0x00fe0000
  142 hint.map.4.name="cfg"
  143 hint.map.4.readonly=0
  144 
  145 # 64KiB mac
  146 hint.map.5.at="flash/spi0"
  147 hint.map.5.start=0x00fe0000
  148 hint.map.5.end=0x00ff0000
  149 hint.map.5.name="mac"
  150 hint.map.5.readonly=1
  151 
  152 # 64KiB art
  153 hint.map.6.at="flash/spi0"
  154 hint.map.6.start=0x00ff0000
  155 hint.map.6.end=0x01000000
  156 hint.map.6.name="art"
  157 hint.map.6.readonly=1

Cache object: 6e46878ee9fe8a1e7be121d38d4e3bd3


[ 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.