Advertisement
Guest User

Untitled

a guest
Jul 16th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. # $FreeBSD: head/sys/mips/conf/AP91.hints 239799 2012-08-29 01:08:36Z adrian $
  2. # arge0 MDIO bus doesn't exist on the AR7241
  3.  
  4. # arge1 MDIO bus
  5. hint.argemdio.0.at="nexus0"
  6. hint.argemdio.0.maddr=0x1a000000
  7. hint.argemdio.0.msize=0x1000
  8. hint.argemdio.0.order=0
  9.  
  10. # Override MAC Address with the one on EEPROM
  11. hint.arge.0.eeprommac=0x1f01fc00
  12.  
  13. # arge0: dedicated switch port; RMII; dedicated PHY 4 on switch, connected
  14. # via internal switch MDIO bus.
  15. hint.arge.0.media=100 # Map to 100/full
  16. hint.arge.0.fduplex=1 #
  17. hint.arge.0.phymask=0x10 # PHY4
  18. hint.arge.0.mdio=mdioproxy1 # .. off of the switch mdiobus
  19.  
  20. # arge1: nail to 1000/full, RMII - connected to the switch
  21. hint.arge.1.media=1000 # Map to 1000/full
  22. hint.arge.1.fduplex=1 #
  23. hint.arge.1.phymask=0x0 # no directly mapped PHYs
  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. # ath
  40. hint.ath.0.eeprom_firmware="pcib.0.bus.0.0.0.eeprom_firmware"
  41.  
  42. # GPIO
  43. hint.gpio.0.pinmask=0x1943 # Pin 0: Led QSS
  44. # Pin 1: Led SYS
  45. # Pin 6: USB Power
  46. # Pin 8: Led 3G
  47. # Pin 11: Reset sw
  48. # Pin 12: QSS sw
  49. hint.gpio.0.pinon=0x143 # Turn off QSS, SYS, 3G leds
  50. # and turn on the USB Power
  51.  
  52. # Signal leds
  53. hint.gpioled.0.at="gpiobus0"
  54. hint.gpioled.0.name="qss"
  55. hint.gpioled.0.pins=0x0001 # pin 0
  56. hint.gpioled.1.at="gpiobus0"
  57. hint.gpioled.1.name="sys"
  58. hint.gpioled.1.pins=0x0002 # pin 1
  59. hint.gpioled.2.at="gpiobus0"
  60. hint.gpioled.2.name="3g"
  61. hint.gpioled.2.pins=0x0100 # pin 8
  62.  
  63. # GEOM_MAP
  64. #
  65. # From my TP-MR3220 environment:
  66. #
  67. # mtdparts=ar7240-nor0:128k(u-boot),3840k(rootfs),64k(config),64k(art)
  68. #
  69.  
  70. hint.map.0.at="flash/spi0"
  71. hint.map.0.start=0x00000000
  72. hint.map.0.end=0x00020000 # 128k u-boot
  73. hint.map.0.name="u-boot"
  74. hint.map.0.readonly=1
  75.  
  76. hint.map.1.at="flash/spi0"
  77. hint.map.1.start=0x00020000
  78. hint.map.1.end=0x003e0000 # 3840k rootfs
  79. hint.map.1.name="rootsfs"
  80. hint.map.1.readonly=0
  81.  
  82. hint.map.2.at="flash/spi0"
  83. hint.map.2.start=0x003e0000
  84. hint.map.2.end=0x003f0000 # 64k config
  85. hint.map.2.name="config"
  86. hint.map.2.readonly=1
  87.  
  88. hint.map.3.at="flash/spi0"
  89. hint.map.3.start=0x003f0000
  90. hint.map.3.end=0x00400000 # 64k ART
  91. hint.map.3.name="ART"
  92. hint.map.3.readonly=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement