blob: 6a0f236d3ca8e66555aaca60d46a37ceff508693 [file] [log] [blame]
wdenk634d2f72004-04-15 23:14:49 +00001
wdenke5cda752004-04-15 23:23:39 +00002These are brief instructions on how to add support for CF adapters to
3custom designed PXA boards. You need to set the parameters in the
wdenk634d2f72004-04-15 23:14:49 +00004config file. This should work for most implementations especially if you
5follow the connections of the standard lubbock. Anyway just the block
wdenke5cda752004-04-15 23:23:39 +00006marked memory configuration should be touched since the other parameters
wdenk634d2f72004-04-15 23:14:49 +00007are imposed by the PXA architecture.
8
9#define CONFIG_PXA_PCMCIA 1
10#define CONFIG_PXA_IDE 1
11
wdenke5cda752004-04-15 23:23:39 +000012#define CONFIG_PCMCIA_SLOT_A 1
wdenk634d2f72004-04-15 23:14:49 +000013/* just to keep build system happy */
14
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020015#define CONFIG_SYS_PCMCIA_MEM_ADDR 0x28000000
16#define CONFIG_SYS_PCMCIA_MEM_SIZE 0x10000000
wdenk634d2f72004-04-15 23:14:49 +000017
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020018#define CONFIG_SYS_MECR_VAL 0x00000000
19#define CONFIG_SYS_MCMEM0_VAL 0x00004204
20#define CONFIG_SYS_MCMEM1_VAL 0x00000000
21#define CONFIG_SYS_MCATT0_VAL 0x00010504
22#define CONFIG_SYS_MCATT1_VAL 0x00000000
23#define CONFIG_SYS_MCIO0_VAL 0x00008407
24#define CONFIG_SYS_MCIO1_VAL 0x00000000
wdenk634d2f72004-04-15 23:14:49 +000025/* memory configuration */
26
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020027#define CONFIG_SYS_IDE_MAXBUS 1
wdenk634d2f72004-04-15 23:14:49 +000028/* max. 1 IDE bus */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020029#define CONFIG_SYS_IDE_MAXDEVICE 1
wdenk634d2f72004-04-15 23:14:49 +000030/* max. 1 drive per IDE bus */
31
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020032#define CONFIG_SYS_ATA_IDE0_OFFSET 0x0000
wdenk634d2f72004-04-15 23:14:49 +000033
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020034#define CONFIG_SYS_ATA_BASE_ADDR 0x20000000
wdenk634d2f72004-04-15 23:14:49 +000035
36/* Offset for data I/O */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020037#define CONFIG_SYS_ATA_DATA_OFFSET 0x1f0
wdenk634d2f72004-04-15 23:14:49 +000038
39/* Offset for normal register accesses */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020040#define CONFIG_SYS_ATA_REG_OFFSET 0x1f0
wdenk634d2f72004-04-15 23:14:49 +000041
42/* Offset for alternate registers */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020043#define CONFIG_SYS_ATA_ALT_OFFSET 0x3f0
wdenk634d2f72004-04-15 23:14:49 +000044
wdenke5cda752004-04-15 23:23:39 +000045
46Another important point is that maybe you have to power the pcmcia
wdenk634d2f72004-04-15 23:14:49 +000047subsystem. This is very board specific, for an example on how to
48do it please search for CONFIG_EXADRON1 in cmd_pcmcia.c