[U-Boot] Rockpro64_V2.1 2018-07-02 Boot Freeze

Jagan Teki jagan at amarulasolutions.com
Mon Aug 19 16:41:36 UTC 2019


On Mon, Aug 19, 2019 at 8:42 PM Kurt Miller <lists at intricatesoftware.com> wrote:
>
> Hi Michael,
>
> On Mon, 2019-08-19 at 16:06 +0200, Michael Nazzareno Trimarchi wrote:
> > It's possible to dump the register after training in mainline uboot?
>
> I'm working on getting master to build now. How would I
> go about dumping the register after training?

It would be a bit hard, I tried below sequence at the end of
sdram_init (sorry for direct copy)

        printf("cic: ctr10: (0x%x - 0x%x)\n", &dram->cic->cic_ctrl0,
readl(&dram->cic->cic_ctrl0));
        printf("cic: status0: (0x%x - 0x%x)\n",
&dram->cic->cic_status0, readl(&dram->cic->cic_status0));
        printf("grf: ddrc0_con0 (0x%x - 0x%x)\n",
&dram->grf->ddrc0_con0, readl(&dram->grf->ddrc0_con0));
        printf("grf: ddrc1_con0 (0x%x - 0x%x)\n",
&dram->grf->ddrc1_con0, readl(&dram->grf->ddrc1_con0));
        printf("grf: soc_con0 (0x%x - 0x%x)\n", &dram->grf->soc_con0,
readl(&dram->grf->soc_con0));
        printf("pmu: noc_auto_ena (0x%x - 0x%x)\n",
&dram->pmu->pmu_noc_auto_ena, readl(&dram->pmu->pmu_noc_auto_ena));
        printf("pmu: bus_idle_req (0x%x - 0x%x)\n",
&dram->pmu->pmu_bus_idle_req, readl(&dram->pmu->pmu_bus_idle_req));
        printf("pmu: bus_idle_st (0x%x - 0x%x)\n",
&dram->pmu->pmu_bus_idle_st, readl(&dram->pmu->pmu_bus_idle_st));
        printf("pmugrf: os_reg2 (0x%x - 0x%x)\n",
&dram->pmugrf->os_reg2, readl(&dram->pmugrf->os_reg2));
        printf("pmugrf: os_reg3 (0x%x - 0x%x)\n",
&dram->pmugrf->os_reg3, readl(&dram->pmugrf->os_reg3));
        printf("pmusgrf: soc_con4 (0x%x - 0x%x)\n",
&dram->pmusgrf->soc_con4, readl(&dram->pmusgrf->soc_con4));


More information about the U-Boot mailing list