lkml.org 
[lkml]   [2015]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 36/37] MIPS: ingenic: initial JZ4780 support
On Mon, May 25, 2015 at 01:03:54PM +0200, Hauke Mehrtens wrote:
> > diff --git a/arch/mips/jz4740/setup.c b/arch/mips/jz4740/setup.c
> > index 1bed3cb..510fc0d 100644
> > --- a/arch/mips/jz4740/setup.c
> > +++ b/arch/mips/jz4740/setup.c
> > @@ -83,6 +83,9 @@ arch_initcall(populate_machine);
> >
> > const char *get_system_type(void)
> > {
> > + if (config_enabled(CONFIG_MACH_JZ4780))
> > + return "JZ4780";
> > +
> > return "JZ4740";
> > }
>
> Shouldn't this be provided by device tree, now it depends on your kernel
> config.

At some point, when the kernel is generic enough that one binary works
across multiple SoCs, yes definitely. Even better might be to detect it
at runtime. The kernel can currently only be built for a single SoC
though, so the code as-is works just fine & gets things working on the
CI20 without making an already lengthy patchset longer than it needs to
be.

> > diff --git a/arch/mips/jz4740/time.c b/arch/mips/jz4740/time.c
> > index 9172553..7ab47fe 100644
> > --- a/arch/mips/jz4740/time.c
> > +++ b/arch/mips/jz4740/time.c
> > @@ -102,7 +102,12 @@ static struct clock_event_device jz4740_clockevent = {
> > .set_next_event = jz4740_clockevent_set_next,
> > .set_mode = jz4740_clockevent_set_mode,
> > .rating = 200,
> > +#ifdef CONFIG_MACH_JZ4740
> > .irq = JZ4740_IRQ_TCU0,
> > +#endif
> > +#ifdef CONFIG_MACH_JZ4780
> > + .irq = JZ4780_IRQ_TCU2,
> > +#endif
> > };
>
> same here.

Same response :)

Thanks,
Paul
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2015-05-26 09:41    [W:0.083 / U:2.716 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site