linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Scott Wood <oss@buserror.net>
To: Denis Kirjanov <kda@linux-powerpc.org>,
	Alessio Igor Bogani <alessio.bogani@elettra.eu>
Cc: Kumar Gala <galak@kernel.crashing.org>,
	linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/1] powerpc/86xx: Consolidate common platform code
Date: Thu, 11 Feb 2016 10:10:07 -0600	[thread overview]
Message-ID: <1455207007.2463.23.camel@buserror.net> (raw)
In-Reply-To: <CAOJe8K2TFtppS4ni=ZCL=p853jO=ewjp3i+wOAQpVeSb7BFkUw@mail.gmail.com>

On Thu, 2016-02-11 at 12:21 +0300, Denis Kirjanov wrote:
> On 2/11/16, Alessio Igor Bogani <alessio.bogani@elettra.eu> wrote:
> > Signed-off-by: Alessio Igor Bogani <alessio.bogani@elettra.eu>
> > ---
> > v1 -> v2
> > 	Use appropriate [PATCH] prefix
> > 
> >  arch/powerpc/platforms/86xx/Makefile       |  2 +-
> >  arch/powerpc/platforms/86xx/common.c       | 42
> > ++++++++++++++++++++++++++++++
> >  arch/powerpc/platforms/86xx/gef_ppc9a.c    | 32 +----------------------
> >  arch/powerpc/platforms/86xx/gef_sbc310.c   | 32 +----------------------
> >  arch/powerpc/platforms/86xx/gef_sbc610.c   | 32 +----------------------
> >  arch/powerpc/platforms/86xx/mpc8610_hpcd.c | 20 ++------------
> >  arch/powerpc/platforms/86xx/mpc86xx.h      |  2 ++
> >  arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 21 +--------------
> >  arch/powerpc/platforms/86xx/sbc8641d.c     | 32 +----------------------
> >  9 files changed, 52 insertions(+), 163 deletions(-)
> >  create mode 100644 arch/powerpc/platforms/86xx/common.c
> > 
> > diff --git a/arch/powerpc/platforms/86xx/Makefile
> > b/arch/powerpc/platforms/86xx/Makefile
> > index ede815d..2d889ad 100644
> > --- a/arch/powerpc/platforms/86xx/Makefile
> > +++ b/arch/powerpc/platforms/86xx/Makefile
> > @@ -2,7 +2,7 @@
> >  # Makefile for the PowerPC 86xx linux kernel.
> >  #
> > 
> > -obj-y				:= pic.o
> > +obj-y				:= pic.o common.o
> >  obj-$(CONFIG_SMP)		+= mpc86xx_smp.o
> >  obj-$(CONFIG_MPC8641_HPCN)	+= mpc86xx_hpcn.o
> >  obj-$(CONFIG_SBC8641D)		+= sbc8641d.o
> > diff --git a/arch/powerpc/platforms/86xx/common.c
> > b/arch/powerpc/platforms/86xx/common.c
> > new file mode 100644
> > index 0000000..bee3177
> > --- /dev/null
> > +++ b/arch/powerpc/platforms/86xx/common.c
> > @@ -0,0 +1,42 @@
> > +/*
> > + * Routines common to most mpc86xx-based boards.
> > + *
> > + * This is free software; you can redistribute it and/or modify
> > + * it under the terms of the GNU General Public License version 2 as
> > + * published by the Free Software Foundation.
> > + */
> > +
> > +#include <linux/of_platform.h>
> > +
> > +#include "mpc86xx.h"
> > +
> > +static const struct of_device_id mpc86xx_common_ids[] __initconst = {
> > +	{ .type = "soc", },
> > +	{ .compatible = "soc", },
> > +	{ .compatible = "simple-bus", },
> > +	{ .name = "localbus", },
> > +	{ .compatible = "gianfar", },
> > +	{ .compatible = "fsl,mpc8641-pcie", },
> > +	{},
> > +};
> > +
> > +int __init mpc86xx_common_publish_devices(void)
> > +{
> > +	return of_platform_bus_probe(NULL, mpc86xx_common_ids, NULL);
> > +}
> > +
> > +long __init mpc86xx_time_init(void)
> > +{
> > +	unsigned int temp;
> > +
> > +	/* Set the time base to zero */
> > +	mtspr(SPRN_TBWL, 0);
> > +	mtspr(SPRN_TBWU, 0);
> > +
> > +	temp = mfspr(SPRN_HID0);
> > +	temp |= HID0_TBEN;
> > +	mtspr(SPRN_HID0, temp);
> > +	asm volatile("isync");
> While we're here you could just use isync()
> 

Could you please trim the part of the mail you're not replying to?  It takes a
while to scan to find where the reply actually is.

-Scott

      parent reply	other threads:[~2016-02-11 16:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-11  8:00 [PATCH v2 1/1] powerpc/86xx: Consolidate common platform code Alessio Igor Bogani
2016-02-11  9:21 ` Denis Kirjanov
2016-02-11 13:01   ` Murali Sampath
2016-02-11 16:10   ` Scott Wood [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1455207007.2463.23.camel@buserror.net \
    --to=oss@buserror.net \
    --cc=alessio.bogani@elettra.eu \
    --cc=galak@kernel.crashing.org \
    --cc=kda@linux-powerpc.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).