README.PXA_CF 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #define CONFIG_PXA_PCMCIA 1
  8. #define CONFIG_PXA_IDE 1
  9. #define CONFIG_PCMCIA_SLOT_A 1
  10. /* just to keep build system happy */
  11. #define CFG_PCMCIA_MEM_ADDR 0x28000000
  12. #define CFG_PCMCIA_MEM_SIZE 0x10000000
  13. #define CFG_MECR_VAL 0x00000000
  14. #define CFG_MCMEM0_VAL 0x00004204
  15. #define CFG_MCMEM1_VAL 0x00000000
  16. #define CFG_MCATT0_VAL 0x00010504
  17. #define CFG_MCATT1_VAL 0x00000000
  18. #define CFG_MCIO0_VAL 0x00008407
  19. #define CFG_MCIO1_VAL 0x00000000
  20. /* memory configuration */
  21. #define CFG_IDE_MAXBUS 1
  22. /* max. 1 IDE bus */
  23. #define CFG_IDE_MAXDEVICE 1
  24. /* max. 1 drive per IDE bus */
  25. #define CFG_ATA_IDE0_OFFSET 0x0000
  26. #define CFG_ATA_BASE_ADDR 0x20000000
  27. /* Offset for data I/O */
  28. #define CFG_ATA_DATA_OFFSET 0x1f0
  29. /* Offset for normal register accesses */
  30. #define CFG_ATA_REG_OFFSET 0x1f0
  31. /* Offset for alternate registers */
  32. #define CFG_ATA_ALT_OFFSET 0x3f0
  33. Another important point is that maybe you have to power the pcmcia
  34. subsystem. This is very board specific, for an example on how to
  35. do it please search for CONFIG_EXADRON1 in cmd_pcmcia.c