README.PXA_CF 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. These are brief instructions on how to add support for CF adapters to
  2. custom designed PXA boards. You need to set the parameters in the
  3. config file. This should work for most implementations especially if you
  4. follow the connections of the standard lubbock. Anyway just the block
  5. marked memory configuration should be touched since the other parameters
  6. are imposed by the PXA architecture.
  7. EDIT 2010-07-01: in common/cmd_ide.c, having CONFIG_PXA_PCMCIA defined
  8. would cause looping on inw()/outw() rather than using insw()/outsw(),
  9. thus making sure IDE / ATA bytes are properly swapped. This behaviour
  10. is now controlled by CONFIG_IDE_SWAP_IO, therefore PXA boards with
  11. PCMCIA should #define CONFIG_IDE_SWAP_IO.
  12. #define CONFIG_IDE_SWAP_IO
  13. #define CONFIG_PXA_PCMCIA 1
  14. #define CONFIG_PXA_IDE 1
  15. #define CONFIG_PCMCIA_SLOT_A 1
  16. /* just to keep build system happy */
  17. #define CONFIG_SYS_PCMCIA_MEM_ADDR 0x28000000
  18. #define CONFIG_SYS_PCMCIA_MEM_SIZE 0x10000000
  19. #define CONFIG_SYS_MECR_VAL 0x00000000
  20. #define CONFIG_SYS_MCMEM0_VAL 0x00004204
  21. #define CONFIG_SYS_MCMEM1_VAL 0x00000000
  22. #define CONFIG_SYS_MCATT0_VAL 0x00010504
  23. #define CONFIG_SYS_MCATT1_VAL 0x00000000
  24. #define CONFIG_SYS_MCIO0_VAL 0x00008407
  25. #define CONFIG_SYS_MCIO1_VAL 0x00000000
  26. /* memory configuration */
  27. #define CONFIG_SYS_IDE_MAXBUS 1
  28. /* max. 1 IDE bus */
  29. #define CONFIG_SYS_IDE_MAXDEVICE 1
  30. /* max. 1 drive per IDE bus */
  31. #define CONFIG_SYS_ATA_IDE0_OFFSET 0x0000
  32. #define CONFIG_SYS_ATA_BASE_ADDR 0x20000000
  33. /* Offset for data I/O */
  34. #define CONFIG_SYS_ATA_DATA_OFFSET 0x1f0
  35. /* Offset for normal register accesses */
  36. #define CONFIG_SYS_ATA_REG_OFFSET 0x1f0
  37. /* Offset for alternate registers */
  38. #define CONFIG_SYS_ATA_ALT_OFFSET 0x3f0
  39. Another important point is that maybe you have to power the pcmcia
  40. subsystem. This is very board specific, for an example on how to
  41. do it please search for CONFIG_EXADRON1 in cmd_pcmcia.c