[U-Boot] [PATCH V3 3/4] clk: support clk tree dump

Peng Fan peng.fan at nxp.com
Mon Aug 26 01:08:52 UTC 2019


> Subject: Re: [PATCH V3 3/4] clk: support clk tree dump
> 
> Hi Peng,
> 
> On Wed, 21 Aug 2019 at 07:35, Peng Fan <peng.fan at nxp.com> wrote:
> >
> > The previous code only dump the clk list. This patch is to support clk
> > tree dump, and also dump the enable_cnt.
> >
> > The code used in patch is similar to dm_dump_all, but the code here
> > only filter out the UCLASS_CLK devices.
> >
> > On i.MX8MM, Partial output:
> > u-boot=> clk dump
> >  Rate               Usecnt      Name
> > ------------------------------------------
> >  24000000             0        |-- clock-osc-24m
> >  24000000             0        |   |-- dram_pll_ref_sel
> >  750000000            0        |   |   `-- dram_pll
> >  750000000            0        |   |       `-- dram_pll_bypass
> >  750000000            0        |   |           `-- dram_pll_out
> >  24000000             0        |   |-- arm_pll_ref_sel
> >  1200000000           0        |   |   `-- arm_pll
> >  1200000000           0        |   |       `-- arm_pll_bypass
> >  1200000000           0        |   |           `-- arm_pll_out
> >  1200000000           0        |   |               `--
> arm_a53_src
> >  1200000000           0        |   |                   `--
> arm_a53_cg
> >  1200000000           0        |   |
> `-- arm_a53_div
> >  24000000             4        |   |-- sys_pll1_ref_sel
> >  800000000            4        |   |   `-- sys_pll1
> >  800000000            4        |   |       `-- sys_pll1_bypass
> >  800000000            4        |   |           `-- sys_pll1_out
> >  40000000             0        |   |               |--
> sys_pll1_40m
> >
> > Signed-off-by: Peng Fan <peng.fan at nxp.com>
> > ---
> >
> > V3:
> >  Fix build break for some platforms
> > V2:
> >  Improve commit log
> >
> >  cmd/clk.c | 79
> > +++++++++++++++++++++++++++++++++++++++------------------------
> >  1 file changed, 49 insertions(+), 30 deletions(-)
> 
> Can we get a sandbox test for this?

Let me try to add one.

Thanks,
Peng.

> 
> Regards,
> Simon


More information about the U-Boot mailing list