FreeCalypso > hg > fc-magnetite
comparison src/cs/system/Main/init.c @ 417:706f4b71aceb
more sensible MEMIF setup for D-Sample C05 target
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 20 Jan 2018 18:56:35 +0000 |
parents | f7f1f6f1a77d |
children |
comparison
equal
deleted
inserted
replaced
416:5ca341a26dda | 417:706f4b71aceb |
---|---|
518 MEM_INIT_CS0(4, MEM_DVS_16, MEM_WRITE_EN, 0); | 518 MEM_INIT_CS0(4, MEM_DVS_16, MEM_WRITE_EN, 0); |
519 MEM_INIT_CS1(4, MEM_DVS_16, MEM_WRITE_EN, 0); | 519 MEM_INIT_CS1(4, MEM_DVS_16, MEM_WRITE_EN, 0); |
520 MEM_INIT_CS2(5, MEM_DVS_16, MEM_WRITE_EN, 0); | 520 MEM_INIT_CS2(5, MEM_DVS_16, MEM_WRITE_EN, 0); |
521 MEM_INIT_CS3(4, MEM_DVS_16, MEM_WRITE_EN, 0); | 521 MEM_INIT_CS3(4, MEM_DVS_16, MEM_WRITE_EN, 0); |
522 MEM_INIT_CS4(7, MEM_DVS_16, MEM_WRITE_EN, 0); | 522 MEM_INIT_CS4(7, MEM_DVS_16, MEM_WRITE_EN, 0); |
523 #elif defined(CONFIG_TARGET_FCFAM) || defined(CONFIG_TARGET_DSAMPLE) | 523 #elif defined(CONFIG_TARGET_FCFAM) |
524 /* | 524 /* |
525 * The settings currently adopted for the FreeCalypso | 525 * The settings currently adopted for the FreeCalypso |
526 * hardware family, only nCS0, nCS1 and nCS2 are used | 526 * hardware family, only nCS0, nCS1 and nCS2 are used |
527 * presently. | 527 * presently. |
528 */ | 528 */ |
529 MEM_INIT_CS0(4, MEM_DVS_16, MEM_WRITE_EN, 0); | 529 MEM_INIT_CS0(4, MEM_DVS_16, MEM_WRITE_EN, 0); |
530 MEM_INIT_CS1(4, MEM_DVS_16, MEM_WRITE_EN, 0); | 530 MEM_INIT_CS1(4, MEM_DVS_16, MEM_WRITE_EN, 0); |
531 MEM_INIT_CS2(4, MEM_DVS_16, MEM_WRITE_EN, 0); | 531 MEM_INIT_CS2(4, MEM_DVS_16, MEM_WRITE_EN, 0); |
532 MEM_INIT_CS3(4, MEM_DVS_16, MEM_WRITE_EN, 0); | 532 MEM_INIT_CS3(4, MEM_DVS_16, MEM_WRITE_EN, 0); |
533 MEM_INIT_CS4(4, MEM_DVS_16, MEM_WRITE_EN, 0); | 533 MEM_INIT_CS4(4, MEM_DVS_16, MEM_WRITE_EN, 0); |
534 #elif defined(CONFIG_TARGET_DSAMPLE) && (CHIPSET == 8) | |
535 /* | |
536 * On D-Sample C05 (older Calypso silicon version) the clocks | |
537 * run slower: the ARM clock runs at 39 MHz instead of 52 MHz. | |
538 * Therefore, we need to use fewer wait states to effect | |
539 * the same memory speed. | |
540 */ | |
541 MEM_INIT_CS0(2, MEM_DVS_16, MEM_WRITE_EN, 0); | |
542 MEM_INIT_CS1(2, MEM_DVS_16, MEM_WRITE_EN, 0); | |
543 MEM_INIT_CS2(2, MEM_DVS_16, MEM_WRITE_EN, 0); | |
544 MEM_INIT_CS3(2, MEM_DVS_16, MEM_WRITE_EN, 0); | |
545 MEM_INIT_CS4(0, MEM_DVS_8, MEM_WRITE_EN, 0); | |
534 #else | 546 #else |
535 /* | 547 /* |
536 * The original settings from Openmoko, | 548 * The original settings from Openmoko, |
537 * only nCS0 and nCS1 are actually used, | 549 * only nCS0 and nCS1 are actually used, |
538 * same as on Mot C1xx phones, | 550 * same as on Mot C1xx phones, |