lkml.org 
[lkml]   [2014]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH V3 11/11] MIPS: Add multiplatform BMIPS target
    From
    > diff --git a/arch/mips/bmips/setup.c b/arch/mips/bmips/setup.c

    > +void __init plat_time_init(void)
    > +{
    > + struct device_node *np;
    > + u32 freq;
    > +
    > + np = of_find_node_by_name(NULL, "cpus");
    > + if (!np)
    > + panic("missing 'cpus' DT node");
    > + if (of_property_read_u32(np, "mips-hpt-frequency", &freq) < 0)
    > + panic("missing 'mips-hpt-frequency' property");
    > + of_node_put(np);
    > +
    > + mips_hpt_frequency = freq;
    > +}

    Could you use common clock framework for this? Isn't the HPT just a
    fixed factor of the CPU clock? I'm planning on doing something very
    similar for ImgTec MIPS SoCs, so perhaps this could go in a common
    place, like the r4k clocksource driver?


    \
     
     \ /
      Last update: 2014-11-24 21:01    [W:3.350 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site