From: Arnd Bergmann <arnd@arndb.de>
To: Lars Persson <lars.persson@axis.com>
Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-clk@vger.kernel.org, robh+dt@kernel.org,
pawel.moll@arm.com, mark.rutland@arm.com,
ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
linux-kernel@vger.kernel.org, Lars Persson <larper@axis.com>
Subject: Re: [PATCH 6/8] arm: initial machine port for artpec-6 SoC
Date: Wed, 10 Feb 2016 15:42:14 +0100 [thread overview]
Message-ID: <2600190.zvDdb99M2V@wuerfel> (raw)
In-Reply-To: <fa3483f1a388e443245084c3b5e9aa1ad2f61392.1455107681.git.larper@axis.com>
On Wednesday 10 February 2016 13:41:55 Lars Persson wrote:
> @@ -0,0 +1,22 @@
> +menuconfig ARCH_ARTPEC
> + bool "Axis Communications ARM based ARTPEC SoCs" if ARCH_MULTI_V7
> +
> +if ARCH_ARTPEC
> +
> +config MACH_ARTPEC6
> + bool "Axis ARTPEC-6 ARM Cortex A9 Platform" if ARCH_MULTI_V7
Change both to use
depends on ARCH_MULTI_V7
like we changed all other platforms in 4.5
> + select ARM_AMBA
> + select ARM_GIC
> + select ARM_GLOBAL_TIMER
> + select ARM_PSCI
> + select COMMON_CLK
> + select GENERIC_CLOCKEVENTS
> + select HAVE_ARM_ARCH_TIMER
> + select HAVE_ARM_SCU
> + select HAVE_ARM_TWD if SMP
> + select SPARSE_IRQ
> + select USE_OF
No need for GENERIC_CLOCKEVENTS, COMMON_CLK, USE_OF or SPARSE_IRQ to be selected, they
are always enabled with ARCH_MULTIPLATFORM. Check the others as well to see if
you can drop more of them.
> +
> +#define ARTPEC6_DMACFG 0xf8000010
> +#define ARTPEC6_DMACFG_UARTS_BURST 0xff
> +
> +#define SECURE_OP_L2C_WRITEREG 0xb4000001
> +
> +static void __init artpec6_init_machine(void)
> +{
> + void __iomem *dmacfg;
> +
> + /* Use PL011 DMA Burst Request signal instead of DMA Single Request */
> + dmacfg = ioremap(ARTPEC6_DMACFG, 4);
> + if (dmacfg) {
> + __raw_writel(ARTPEC6_DMACFG_UARTS_BURST, dmacfg);
> + iounmap(dmacfg);
> + }
Can you do this in the bootloader?
If not, please use a DT node to pass the address rather than hardcoding it,
and use writel() instead of __raw_writel() so it works with on big-endian kernels.
> +DT_MACHINE_START(ARTPEC6, "Axis ARTPEC-6 Platform")
> + .l2c_aux_val = 0x0C000000,
> + .l2c_aux_mask = 0xF3FFFFFF,
> + .l2c_write_sec = artpec6_l2c310_write_sec,
> + .init_irq = irqchip_init,
> + .init_machine = artpec6_init_machine,
> + .dt_compat = artpec6_dt_match,
> +MACHINE_END
>
You can drop the irqchip_init.
Arnd
next prev parent reply other threads:[~2016-02-10 14:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-10 12:41 [PATCH 0/8] arm: Add Artpec-6 SoC Lars Persson
2016-02-10 12:41 ` [PATCH 1/8] clk: add device tree binding for artpec-6 pll1 clock Lars Persson
2016-02-10 14:36 ` Arnd Bergmann
2016-02-10 12:41 ` [PATCH 2/8] clk: add artpec-6 pll1 clock driver Lars Persson
2016-02-10 12:41 ` [PATCH 3/8] arm: add device-tree SoC bindings for Axis Artpec-6 Lars Persson
2016-02-10 14:37 ` Arnd Bergmann
2016-02-10 12:41 ` [PATCH 4/8] arm: dts: add Artpec-6 soc dtsi file Lars Persson
2016-02-10 14:38 ` Arnd Bergmann
2016-02-10 12:41 ` [PATCH 5/8] arm: dts: add Artpec-6 development board dts Lars Persson
2016-02-10 12:41 ` [PATCH 6/8] arm: initial machine port for artpec-6 SoC Lars Persson
2016-02-10 14:42 ` Arnd Bergmann [this message]
[not found] ` <cover.1455107681.git.larper-VrBV9hrLPhE@public.gmane.org>
2016-02-10 12:41 ` [PATCH 7/8] arm: multi_v7_defconfig: add MACH_ARTPEC6 Lars Persson
2016-02-10 14:42 ` Arnd Bergmann
2016-02-10 12:41 ` [PATCH 8/8] arm: mach-artpec: add entry to MAINTAINERS Lars Persson
2016-02-10 14:43 ` [PATCH 0/8] arm: Add Artpec-6 SoC Arnd Bergmann
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=2600190.zvDdb99M2V@wuerfel \
--to=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=larper@axis.com \
--cc=lars.persson@axis.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.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).