AU1xxx_IDE.README 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. README for MIPS AU1XXX IDE driver - Released 2005-07-15
  2. ABOUT
  3. -----
  4. This file describes the 'drivers/ide/au1xxx-ide.c', related files and the
  5. services they provide.
  6. If you are short in patience and just want to know how to add your hard disc to
  7. the white or black list, go to the 'ADD NEW HARD DISC TO WHITE OR BLACK LIST'
  8. section.
  9. LICENSE
  10. -------
  11. Copyright (c) 2003-2005 AMD, Personal Connectivity Solutions
  12. This program is free software; you can redistribute it and/or modify it under
  13. the terms of the GNU General Public License as published by the Free Software
  14. Foundation; either version 2 of the License, or (at your option) any later
  15. version.
  16. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
  17. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  18. FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR
  19. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  20. CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  21. SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  22. INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  23. CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  24. ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  25. POSSIBILITY OF SUCH DAMAGE.
  26. You should have received a copy of the GNU General Public License along with
  27. this program; if not, write to the Free Software Foundation, Inc.,
  28. 675 Mass Ave, Cambridge, MA 02139, USA.
  29. Note: for more information, please refer "AMD Alchemy Au1200/Au1550 IDE
  30. Interface and Linux Device Driver" Application Note.
  31. FILES, CONFIGS AND COMPATIBILITY
  32. --------------------------------
  33. Two files are introduced:
  34. a) 'arch/mips/include/asm/mach-au1x00/au1xxx_ide.h'
  35. contains : struct _auide_hwif
  36. timing parameters for PIO mode 0/1/2/3/4
  37. timing parameters for MWDMA 0/1/2
  38. b) 'drivers/ide/mips/au1xxx-ide.c'
  39. contains the functionality of the AU1XXX IDE driver
  40. Following extra configs variables are introduced:
  41. CONFIG_BLK_DEV_IDE_AU1XXX_PIO_DBDMA - enable the PIO+DBDMA mode
  42. CONFIG_BLK_DEV_IDE_AU1XXX_MDMA2_DBDMA - enable the MWDMA mode
  43. CONFIG_BLK_DEV_IDE_AU1XXX_BURSTABLE_ON - set Burstable FIFO in DBDMA
  44. controller
  45. SUPPORTED IDE MODES
  46. -------------------
  47. The AU1XXX IDE driver supported all PIO modes - PIO mode 0/1/2/3/4 - and all
  48. MWDMA modes - MWDMA 0/1/2 -. There is no support for SWDMA and UDMA mode.
  49. To change the PIO mode use the program hdparm with option -p, e.g.
  50. 'hdparm -p0 [device]' for PIO mode 0. To enable the MWDMA mode use the option
  51. -X, e.g. 'hdparm -X32 [device]' for MWDMA mode 0.
  52. PERFORMANCE CONFIGURATIONS
  53. --------------------------
  54. If the used system doesn't need USB support enable the following kernel configs:
  55. CONFIG_IDE=y
  56. CONFIG_BLK_DEV_IDE=y
  57. CONFIG_IDE_GENERIC=y
  58. CONFIG_BLK_DEV_IDEPCI=y
  59. CONFIG_BLK_DEV_GENERIC=y
  60. CONFIG_BLK_DEV_IDEDMA_PCI=y
  61. CONFIG_IDEDMA_PCI_AUTO=y
  62. CONFIG_BLK_DEV_IDE_AU1XXX=y
  63. CONFIG_BLK_DEV_IDE_AU1XXX_MDMA2_DBDMA=y
  64. CONFIG_BLK_DEV_IDEDMA=y
  65. CONFIG_IDEDMA_AUTO=y
  66. Also define 'IDE_AU1XXX_BURSTMODE' in 'drivers/ide/mips/au1xxx-ide.c' to enable
  67. the burst support on DBDMA controller.
  68. If the used system need the USB support enable the following kernel configs for
  69. high IDE to USB throughput.
  70. CONFIG_BLK_DEV_IDEDISK=y
  71. CONFIG_IDE_GENERIC=y
  72. CONFIG_BLK_DEV_IDEPCI=y
  73. CONFIG_BLK_DEV_GENERIC=y
  74. CONFIG_BLK_DEV_IDEDMA_PCI=y
  75. CONFIG_IDEDMA_PCI_AUTO=y
  76. CONFIG_BLK_DEV_IDE_AU1XXX=y
  77. CONFIG_BLK_DEV_IDE_AU1XXX_MDMA2_DBDMA=y
  78. CONFIG_BLK_DEV_IDEDMA=y
  79. CONFIG_IDEDMA_AUTO=y
  80. Also undefine 'IDE_AU1XXX_BURSTMODE' in 'drivers/ide/mips/au1xxx-ide.c' to
  81. disable the burst support on DBDMA controller.
  82. ACKNOWLEDGMENTS
  83. ---------------
  84. These drivers wouldn't have been done without the base of kernel 2.4.x AU1XXX
  85. IDE driver from AMD.
  86. Additional input also from:
  87. Matthias Lenk <matthias.lenk@amd.com>
  88. Happy hacking!
  89. Enrico Walther <enrico.walther@amd.com>