Lines Matching refs:dramc_ao

226 	fdt_addr_t dramc_ao;  member
280 writel(0x20c00, priv->dramc_ao + DRAMC_SHU1_DRVING1); in mtk_ddr3_init()
282 writel(0x8320c83, priv->dramc_ao + DRAMC_SHU1_DRVING2); in mtk_ddr3_init()
285 writel(0x2201, priv->dramc_ao + DRAMC_DRAMCTRL); in mtk_ddr3_init()
286 writel(0x3000000c, priv->dramc_ao + DRAMC_CLKCTRL); in mtk_ddr3_init()
397 writel(0x2, priv->dramc_ao + DRAMC_DDRCONF0); in mtk_ddr3_init()
407 writel(0x0, priv->dramc_ao + DRAMC_DDRCONF0); in mtk_ddr3_init()
452 writel(0x39eff6, priv->dramc_ao + DRAMC_SHU_SCINTV); in mtk_ddr3_init()
453 writel(0x204ffff, priv->dramc_ao + DRAMC_CLKAR); in mtk_ddr3_init()
454 writel(0x31b1f1cf, priv->dramc_ao + DRAMC_SPCMDCTRL); in mtk_ddr3_init()
455 writel(0x0, priv->dramc_ao + DRAMC_PERFCTL0); in mtk_ddr3_init()
456 writel(0x80000, priv->dramc_ao + DRAMC_PERFCTL0); in mtk_ddr3_init()
459 writel(0x65714001, priv->dramc_ao + DRAMC_REFCTRL0); in mtk_ddr3_init()
462 writel(0x200600, priv->dramc_ao + DRAMC_SHU_DQSG_RETRY); in mtk_ddr3_init()
463 writel(0x101d007, priv->dramc_ao + DRAMC_SHUCTRL2); in mtk_ddr3_init()
464 writel(0xe090601, priv->dramc_ao + DRAMC_DVFSDLL); in mtk_ddr3_init()
465 writel(0x20003000, priv->dramc_ao + DRAMC_DDRCONF0); in mtk_ddr3_init()
467 writel(0xa20810bf, priv->dramc_ao + DRAMC_SHU_CONF0); in mtk_ddr3_init()
468 writel(0x30050, priv->dramc_ao + DRAMC_SHU_ODTCTRL); in mtk_ddr3_init()
469 writel(0x25712000, priv->dramc_ao + DRAMC_REFCTRL0); in mtk_ddr3_init()
470 writel(0xb0100000, priv->dramc_ao + DRAMC_STBCAL); in mtk_ddr3_init()
471 writel(0x8000000, priv->dramc_ao + DRAMC_SREFCTRL); in mtk_ddr3_init()
472 writel(0xc0000000, priv->dramc_ao + DRAMC_SHU_PIPE); in mtk_ddr3_init()
473 writel(0x731004, priv->dramc_ao + DRAMC_RKCFG); in mtk_ddr3_init()
474 writel(0x8007320f, priv->dramc_ao + DRAMC_SHU_CONF2); in mtk_ddr3_init()
475 writel(0x2a7c0, priv->dramc_ao + DRAMC_SHU_SCINTV); in mtk_ddr3_init()
476 writel(0xc110, priv->dramc_ao + DRAMC_SHUCTRL); in mtk_ddr3_init()
477 writel(0x30000700, priv->dramc_ao + DRAMC_REFCTRL1); in mtk_ddr3_init()
478 writel(0x6543b321, priv->dramc_ao + DRAMC_REFRATRE_FILTER); in mtk_ddr3_init()
481 writel(0x0, priv->dramc_ao + DRAMC_SHU_SELPH_CA1); in mtk_ddr3_init()
482 writel(0x0, priv->dramc_ao + DRAMC_SHU_SELPH_CA2); in mtk_ddr3_init()
483 writel(0x0, priv->dramc_ao + DRAMC_SHU_SELPH_CA3); in mtk_ddr3_init()
484 writel(0x0, priv->dramc_ao + DRAMC_SHU_SELPH_CA4); in mtk_ddr3_init()
485 writel(0x10000111, priv->dramc_ao + DRAMC_SHU_SELPH_CA5); in mtk_ddr3_init()
486 writel(0x1000000, priv->dramc_ao + DRAMC_SHU_SELPH_CA6); in mtk_ddr3_init()
487 writel(0x0, priv->dramc_ao + DRAMC_SHU_SELPH_CA7); in mtk_ddr3_init()
488 writel(0x0, priv->dramc_ao + DRAMC_SHU_SELPH_CA8); in mtk_ddr3_init()
491 writel(0x11112222, priv->dramc_ao + DRAMC_SHU_SELPH_DQS0); in mtk_ddr3_init()
492 writel(0x33331111, priv->dramc_ao + DRAMC_SHU_SELPH_DQS1); in mtk_ddr3_init()
493 writel(0x11112222, priv->dramc_ao + DRAMC_SHURK0_SELPH_DQ0); in mtk_ddr3_init()
494 writel(0x11112222, priv->dramc_ao + DRAMC_SHURK0_SELPH_DQ1); in mtk_ddr3_init()
495 writel(0x33331111, priv->dramc_ao + DRAMC_SHURK0_SELPH_DQ2); in mtk_ddr3_init()
496 writel(0x33331111, priv->dramc_ao + DRAMC_SHURK0_SELPH_DQ3); in mtk_ddr3_init()
497 writel(0x11112222, priv->dramc_ao + DRAMC_SHURK1_SELPH_DQ0); in mtk_ddr3_init()
498 writel(0x11112222, priv->dramc_ao + DRAMC_SHURK1_SELPH_DQ1); in mtk_ddr3_init()
499 writel(0x33331111, priv->dramc_ao + DRAMC_SHURK1_SELPH_DQ2); in mtk_ddr3_init()
500 writel(0x33331111, priv->dramc_ao + DRAMC_SHURK1_SELPH_DQ3); in mtk_ddr3_init()
505 writel(0x0, priv->dramc_ao + DRAMC_SHURK0_SELPH_ODTEN0); in mtk_ddr3_init()
506 writel(0x0, priv->dramc_ao + DRAMC_SHURK0_SELPH_ODTEN1); in mtk_ddr3_init()
507 writel(0x0, priv->dramc_ao + DRAMC_SHURK1_SELPH_ODTEN0); in mtk_ddr3_init()
508 writel(0x0, priv->dramc_ao + DRAMC_SHURK1_SELPH_ODTEN1); in mtk_ddr3_init()
509 writel(0x0, priv->dramc_ao + DRAMC_SHURK2_SELPH_ODTEN0); in mtk_ddr3_init()
510 writel(0x66666666, priv->dramc_ao + DRAMC_SHURK2_SELPH_ODTEN1); in mtk_ddr3_init()
511 writel(0x2c000b0f, priv->dramc_ao + DRAMC_SHU_CONF1); in mtk_ddr3_init()
512 writel(0x11111111, priv->dramc_ao + DRAMC_SHURK0_SELPH_DQSG0); in mtk_ddr3_init()
513 writel(0x64646464, priv->dramc_ao + DRAMC_SHURK0_SELPH_DQSG1); in mtk_ddr3_init()
514 writel(0x11111111, priv->dramc_ao + DRAMC_SHURK1_SELPH_DQSG0); in mtk_ddr3_init()
515 writel(0x64646464, priv->dramc_ao + DRAMC_SHURK1_SELPH_DQSG1); in mtk_ddr3_init()
536 writel(0x20000001, priv->dramc_ao + DRAMC_SHU_RANKCTL); in mtk_ddr3_init()
537 writel(0x2, priv->dramc_ao + DRAMC_SHURK0_DQSCTL); in mtk_ddr3_init()
538 writel(0x2, priv->dramc_ao + DRAMC_SHURK1_DQSCTL); in mtk_ddr3_init()
539 writel(0x4020b07, priv->dramc_ao + DRAMC_SHU_ACTIM0); in mtk_ddr3_init()
540 writel(0xb060400, priv->dramc_ao + DRAMC_SHU_ACTIM1); in mtk_ddr3_init()
541 writel(0x8090200, priv->dramc_ao + DRAMC_SHU_ACTIM2); in mtk_ddr3_init()
542 writel(0x810018, priv->dramc_ao + DRAMC_SHU_ACTIM3); in mtk_ddr3_init()
543 writel(0x1e9700ff, priv->dramc_ao + DRAMC_SHU_ACTIM4); in mtk_ddr3_init()
544 writel(0x1000908, priv->dramc_ao + DRAMC_SHU_ACTIM5); in mtk_ddr3_init()
545 writel(0x801040b, priv->dramc_ao + DRAMC_SHU_ACTIM_XRT); in mtk_ddr3_init()
546 writel(0x20000D1, priv->dramc_ao + DRAMC_SHU_AC_TIME_05T); in mtk_ddr3_init()
550 writel(0x81080000, priv->dramc_ao + DRAMC_MISCTL0); in mtk_ddr3_init()
551 writel(0xacf13, priv->dramc_ao + DRAMC_PERFCTL0); in mtk_ddr3_init()
552 writel(0xacf12, priv->dramc_ao + DRAMC_PERFCTL0); in mtk_ddr3_init()
553 writel(0x80, priv->dramc_ao + DRAMC_ARBCTL); in mtk_ddr3_init()
554 writel(0x9, priv->dramc_ao + DRAMC_PADCTRL); in mtk_ddr3_init()
555 writel(0x80000107, priv->dramc_ao + DRAMC_DRAMC_PD_CTRL); in mtk_ddr3_init()
556 writel(0x3000000c, priv->dramc_ao + DRAMC_CLKCTRL); in mtk_ddr3_init()
557 writel(0x25714001, priv->dramc_ao + DRAMC_REFCTRL0); in mtk_ddr3_init()
558 writel(0x35b1f1cf, priv->dramc_ao + DRAMC_SPCMDCTRL); in mtk_ddr3_init()
559 writel(0x4300000, priv->dramc_ao + DRAMC_CATRAINING1); in mtk_ddr3_init()
560 writel(0xb0300000, priv->dramc_ao + DRAMC_STBCAL); in mtk_ddr3_init()
561 writel(0x731414, priv->dramc_ao + DRAMC_RKCFG); in mtk_ddr3_init()
562 writel(0x733414, priv->dramc_ao + DRAMC_RKCFG); in mtk_ddr3_init()
565 writel(0x80002050, priv->dramc_ao + DRAMC_CKECTRL); in mtk_ddr3_init()
568 writel(0x400000, priv->dramc_ao + DRAMC_MRS); in mtk_ddr3_init()
569 writel(0x401800, priv->dramc_ao + DRAMC_MRS); in mtk_ddr3_init()
570 writel(0x1, priv->dramc_ao + DRAMC_SPCMD); in mtk_ddr3_init()
571 writel(0x0, priv->dramc_ao + DRAMC_SPCMD); in mtk_ddr3_init()
574 writel(0x601800, priv->dramc_ao + DRAMC_MRS); in mtk_ddr3_init()
575 writel(0x600000, priv->dramc_ao + DRAMC_MRS); in mtk_ddr3_init()
576 writel(0x1, priv->dramc_ao + DRAMC_SPCMD); in mtk_ddr3_init()
577 writel(0x0, priv->dramc_ao + DRAMC_SPCMD); in mtk_ddr3_init()
580 writel(0x200000, priv->dramc_ao + DRAMC_MRS); in mtk_ddr3_init()
581 writel(0x200400, priv->dramc_ao + DRAMC_MRS); in mtk_ddr3_init()
582 writel(0x1, priv->dramc_ao + DRAMC_SPCMD); in mtk_ddr3_init()
583 writel(0x0, priv->dramc_ao + DRAMC_SPCMD); in mtk_ddr3_init()
586 writel(0x400, priv->dramc_ao + DRAMC_MRS); in mtk_ddr3_init()
587 writel(0x1d7000, priv->dramc_ao + DRAMC_MRS); in mtk_ddr3_init()
588 writel(0x1, priv->dramc_ao + DRAMC_SPCMD); in mtk_ddr3_init()
589 writel(0x0, priv->dramc_ao + DRAMC_SPCMD); in mtk_ddr3_init()
592 writel(0x702201, priv->dramc_ao + DRAMC_DRAMCTRL); in mtk_ddr3_init()
593 writel(0x10, priv->dramc_ao + DRAMC_SPCMD); in mtk_ddr3_init()
594 writel(0x0, priv->dramc_ao + DRAMC_SPCMD); in mtk_ddr3_init()
595 writel(0x20, priv->dramc_ao + DRAMC_SPCMD); in mtk_ddr3_init()
596 writel(0x0, priv->dramc_ao + DRAMC_SPCMD); in mtk_ddr3_init()
597 writel(0x1, priv->dramc_ao + DRAMC_HW_MRR_FUN); in mtk_ddr3_init()
598 writel(0x702301, priv->dramc_ao + DRAMC_DRAMCTRL); in mtk_ddr3_init()
599 writel(0x702301, priv->dramc_ao + DRAMC_DRAMCTRL); in mtk_ddr3_init()
600 writel(0xa56, priv->dramc_ao + DRAMC_ZQCS); in mtk_ddr3_init()
601 writel(0xff0000, priv->dramc_ao + DRAMC_SHU_CONF3); in mtk_ddr3_init()
602 writel(0x15b1f1cf, priv->dramc_ao + DRAMC_SPCMDCTRL); in mtk_ddr3_init()
603 writel(0x2cb00b0f, priv->dramc_ao + DRAMC_SHU_CONF1); in mtk_ddr3_init()
604 writel(0x65714001, priv->dramc_ao + DRAMC_REFCTRL0); in mtk_ddr3_init()
605 writel(0x48000000, priv->dramc_ao + DRAMC_SREFCTRL); in mtk_ddr3_init()
606 writel(0xc0000107, priv->dramc_ao + DRAMC_DRAMC_PD_CTRL); in mtk_ddr3_init()
607 writel(0x10002, priv->dramc_ao + DRAMC_EYESCAN); in mtk_ddr3_init()
608 writel(0x15e00, priv->dramc_ao + DRAMC_STBCAL1); in mtk_ddr3_init()
609 writel(0x100000, priv->dramc_ao + DRAMC_TEST2_1); in mtk_ddr3_init()
610 writel(0x4000, priv->dramc_ao + DRAMC_TEST2_2); in mtk_ddr3_init()
611 writel(0x12000480, priv->dramc_ao + DRAMC_TEST2_3); in mtk_ddr3_init()
612 writel(0x301d007, priv->dramc_ao + DRAMC_SHUCTRL2); in mtk_ddr3_init()
613 writel(0x4782321, priv->dramc_ao + DRAMC_DRAMCTRL); in mtk_ddr3_init()
614 writel(0x30210000, priv->dramc_ao + DRAMC_SHU_CKECTRL); in mtk_ddr3_init()
615 writel(0x20000, priv->dramc_ao + DRAMC_DUMMY_RD); in mtk_ddr3_init()
616 writel(0x4080110d, priv->dramc_ao + DRAMC_TEST2_4); in mtk_ddr3_init()
617 writel(0x30000721, priv->dramc_ao + DRAMC_REFCTRL1); in mtk_ddr3_init()
618 writel(0x0, priv->dramc_ao + DRAMC_RSTMASK); in mtk_ddr3_init()
619 writel(0x4782320, priv->dramc_ao + DRAMC_DRAMCTRL); in mtk_ddr3_init()
620 writel(0x80002000, priv->dramc_ao + DRAMC_CKECTRL); in mtk_ddr3_init()
621 writel(0x45714001, priv->dramc_ao + DRAMC_REFCTRL0); in mtk_ddr3_init()
624 writel(0x120, priv->dramc_ao + DRAMC_DRAMC_PD_CTRL); in mtk_ddr3_init()
627 writel(0x2a7fe, priv->dramc_ao + DRAMC_SHU_SCINTV); in mtk_ddr3_init()
628 writel(0xff01ff, priv->dramc_ao + DRAMC_SHU_CONF3); in mtk_ddr3_init()
629 writel(0x4782320, priv->dramc_ao + DRAMC_DRAMCTRL); in mtk_ddr3_init()
630 writel(0xa56, priv->dramc_ao + DRAMC_ZQCS); in mtk_ddr3_init()
631 writel(0x80000000, priv->dramc_ao + DRAMC_SHU1_WODT); in mtk_ddr3_init()
634 writel(0x35b1f1cf, priv->dramc_ao + DRAMC_SPCMDCTRL); in mtk_ddr3_init()
635 writel(0x35b1f1cf, priv->dramc_ao + DRAMC_SPCMDCTRL); in mtk_ddr3_init()
636 writel(0x35b1f1cf, priv->dramc_ao + DRAMC_SPCMDCTRL); in mtk_ddr3_init()
637 writel(0xb0300000, priv->dramc_ao + DRAMC_STBCAL); in mtk_ddr3_init()
638 writel(0xb0300000, priv->dramc_ao + DRAMC_STBCAL); in mtk_ddr3_init()
639 writel(0x10002, priv->dramc_ao + DRAMC_EYESCAN); in mtk_ddr3_init()
641 writel(0x45714001, priv->dramc_ao + DRAMC_REFCTRL0); in mtk_ddr3_init()
642 writel(0xb0300000, priv->dramc_ao + DRAMC_STBCAL); in mtk_ddr3_init()
643 writel(0xb0300000, priv->dramc_ao + DRAMC_STBCAL); in mtk_ddr3_init()
648 writel(0x33221100, priv->dramc_ao + DRAMC_SHU_SELPH_DQS1); in mtk_ddr3_init()
649 writel(0x11112222, priv->dramc_ao + DRAMC_SHU_SELPH_DQS0); in mtk_ddr3_init()
652 writel(0x11111010, priv->dramc_ao + DRAMC_SHURK0_SELPH_DQSG0); in mtk_ddr3_init()
653 writel(0x20201717, priv->dramc_ao + DRAMC_SHURK0_SELPH_DQSG1); in mtk_ddr3_init()
654 writel(0x1d1f, priv->dramc_ao + DRAMC_SHURK0_DQSIEN); in mtk_ddr3_init()
667 writel(0x28b00a0e, priv->dramc_ao + DRAMC_SHU_CONF1); in mtk_ddr3_init()
670 writel(0x11112222, priv->dramc_ao + DRAMC_SHURK0_SELPH_DQ0); in mtk_ddr3_init()
671 writel(0x22220000, priv->dramc_ao + DRAMC_SHURK0_SELPH_DQ2); in mtk_ddr3_init()
672 writel(0x11112222, priv->dramc_ao + DRAMC_SHURK0_SELPH_DQ1); in mtk_ddr3_init()
673 writel(0x22220000, priv->dramc_ao + DRAMC_SHURK0_SELPH_DQ3); in mtk_ddr3_init()
693 priv->dramc_ao = dev_read_addr_index(dev, 2); in mtk_ddr3_probe()
694 if (priv->dramc_ao == FDT_ADDR_T_NONE) in mtk_ddr3_probe()