Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1562344
| Path | csiph.com!feeder.erje.net!1.us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Stephen Boyd <sboyd@codeaurora.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCHv4 2/5] arm: mvebu: support for SMP on 98DX3336 SoC |
| Date | Thu, 19 Jan 2017 01:50:02 +0100 |
| Message-ID | <t195o-2Ne-13@gated-at.bofh.it> (permalink) |
| References | <sZ6bD-7uW-3@gated-at.bofh.it> <sZ6bD-7uW-1@gated-at.bofh.it> |
| X-Original-To | Chris Packham <chris.packham@alliedtelesis.co.nz> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1484786872; bh=m1z2wE6cstwYSh9hnQ43KMYiOraGor6Vm324tLlDjcg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AXKBqXFcB7b7DD2LRKIvNBzOFhu0ZIE9ybo4a84EMusJL8ZVK9y3DFT1Pprcdwg1I OTg+0mRP1EOqPXbN0uW/KVQY6eOuwiCW0mrjOROL0yNrEGy6Lc8bU4c/Jhe6F6fHa3 slUB5d6UOT9gf+bEtpGoCfO3yHMUnwgje3/7hGCg= |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1484786871; bh=m1z2wE6cstwYSh9hnQ43KMYiOraGor6Vm324tLlDjcg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LoC9XSehKTgTepIyTMS1jQDCkAT6Ox/3j4eiJRIOlQAT3nxtc5SfGgJydVwx1Iy6f Bsq0gEerYurjBp/WcVQMyaEsUpPXbkHZtmhG3EclI3P34KaCCnRzN+KE57lbKkseTO n74voZwnJ8iZDTYReVSR8MTu7W1/WfwT/spst4ds= |
| Dmarc-Filter | OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5EA9E6087A |
| Authentication-Results | pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org |
| Authentication-Results | pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sboyd@codeaurora.org |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 65 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-arm-kernel@lists.infradead.org, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Jason Cooper <jason@lakedaemon.net>, Andrew Lunn <andrew@lunn.ch>, Gregory Clement <gregory.clement@free-electrons.com>, Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>, Russell King <linux@armlinux.org.uk>, Geert Uytterhoeven <geert+renesas@glider.be>, Florian Fainelli <f.fainelli@gmail.com>, Chris Brand <chris.brand@broadcom.com>, Juri Lelli <juri.lelli@arm.com>, Sudeep Holla <sudeep.holla@arm.com>, Jayachandran C <jchandra@broadcom.com>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org |
| X-Original-Date | Wed, 18 Jan 2017 16:47:50 -0800 |
| X-Original-Message-ID | <20170119004750.GC4857@codeaurora.org> |
| X-Original-References | <20170113091222.7132-1-chris.packham@alliedtelesis.co.nz> <20170113091222.7132-3-chris.packham@alliedtelesis.co.nz> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1562344 |
Show key headers only | View raw
On 01/13, Chris Packham wrote:
> diff --git a/arch/arm/mach-mvebu/platsmp.c b/arch/arm/mach-mvebu/platsmp.c
> index 46c742d3bd41..59be3ca0464f 100644
> --- a/arch/arm/mach-mvebu/platsmp.c
> +++ b/arch/arm/mach-mvebu/platsmp.c
> @@ -184,3 +184,89 @@ const struct smp_operations armada_xp_smp_ops __initconst = {
>
> CPU_METHOD_OF_DECLARE(armada_xp_smp, "marvell,armada-xp-smp",
> &armada_xp_smp_ops);
> +
> +struct resume_controller {
> + u32 resume_control;
> + u32 resume_boot_addr;
> +};
> +
> +static const struct resume_controller mv98dx3336_resume_controller = {
> + .resume_control = 0x08,
> + .resume_boot_addr = 0x04,
> +};
> +
> +static const struct of_device_id of_mv98dx3236_resume_table[] = {
> + {
> + .compatible = "marvell,98dx3336-resume-ctrl",
> + .data = (void *)&mv98dx3336_resume_controller,
Useless cast?
> + },
> + { /* end of list */ },
> +};
> +
> +static int mv98dx3236_resume_set_cpu_boot_addr(int hw_cpu, void *boot_addr)
> +{
> + const struct of_device_id *match;
> + struct device_node *np;
> + void __iomem *base;
> + struct resume_controller *rc;
> +
> + WARN_ON(hw_cpu != 1);
> +
> + np = of_find_matching_node_and_match(NULL, of_mv98dx3236_resume_table,
> + &match);
> + if (!np)
> + return -ENODEV;
> +
> + base = of_io_request_and_map(np, 0, of_node_full_name(np));
> + rc = (struct resume_controller *)match->data;
Useless cast?
> + of_node_put(np);
> + if (IS_ERR(base))
> + return PTR_ERR(base);
> +
> + writel(0, base + rc->resume_control);
> + writel(virt_to_phys(boot_addr), base + rc->resume_boot_addr);
> +
Otherwise
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCHv4 2/5] arm: mvebu: support for SMP on 98DX3336 SoC Stephen Boyd <sboyd@codeaurora.org> - 2017-01-19 01:50 +0100 Re: [PATCHv4 2/5] arm: mvebu: support for SMP on 98DX3336 SoC Chris Packham <Chris.Packham@alliedtelesis.co.nz> - 2017-01-19 04:50 +0100
csiph-web