From: Sergei Shtylyov <sshtylyov@mvista.com>
To: John Crispin <blogic@openwrt.org>
Cc: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
Subject: Re: [PATCH 2/3] MIPS: lantiq: add vr9 support
Date: Fri, 17 Feb 2012 20:43:17 +0300 [thread overview]
Message-ID: <4F3E91B5.5080603@mvista.com> (raw)
In-Reply-To: <1329474832-21095-2-git-send-email-blogic@openwrt.org>
Hello.
On 02/17/2012 01:33 PM, John Crispin wrote:
> VR9 is a VDSL SoC made by Lantiq. It is very similar to the AR9.
> This patch adds the clkdev init code and SoC detection for the VR9.
> Signed-off-by: John Crispin<blogic@openwrt.org>
> ---
> .../mips/include/asm/mach-lantiq/xway/lantiq_soc.h | 1 +
> arch/mips/lantiq/xway/prom.c | 5 +++++
> arch/mips/lantiq/xway/sysctrl.c | 10 ++++++++++
> 3 files changed, 16 insertions(+), 0 deletions(-)
> diff --git a/arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h b/arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h
> index 6dfb65e..8e0fa6c 100644
> --- a/arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h
> +++ b/arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h
> @@ -21,6 +21,7 @@
> #define SOC_ID_ARX188 0x16C
> #define SOC_ID_ARX168 0x16D
> #define SOC_ID_ARX182 0x16F
> +#define SOC_ID_VRX288 0x1C0
Use tabs to indent the value as above.
> diff --git a/arch/mips/lantiq/xway/prom.c b/arch/mips/lantiq/xway/prom.c
> index 0929acb..53b627c 100644
> --- a/arch/mips/lantiq/xway/prom.c
> +++ b/arch/mips/lantiq/xway/prom.c
> @@ -60,6 +60,11 @@ void __init ltq_soc_detect(struct ltq_soc_info *i)
> #endif
> break;
>
> + case SOC_ID_VRX288:
> + i->name = SOC_VR9;
> + i->type = SOC_TYPE_VR9;
> + break;
> +
> default:
> unreachable();
> break;
> diff --git a/arch/mips/lantiq/xway/sysctrl.c b/arch/mips/lantiq/xway/sysctrl.c
> index 879c89a..18bff5a 100644
> --- a/arch/mips/lantiq/xway/sysctrl.c
> +++ b/arch/mips/lantiq/xway/sysctrl.c
> @@ -152,6 +152,16 @@ void __init ltq_soc_init(void)
> clkdev_add_static("io", CLOCK_133M);
> clkdev_add_cgu("ephycgu", CGU_EPHY),
> clkdev_add_pmu("fpi", "ephy", 0, PMU_EPHY);
> + } else if (ltq_is_vr9()) {
Where is this defined?
> + clkdev_add_static("cpu", ltq_vr9_cpu_hz());
> + clkdev_add_static("fpi", ltq_vr9_fpi_hz());
> + clkdev_add_static("io", ltq_vr9_io_region_clock());
> + clkdev_add_pmu("pcie-phy", NULL, 1, PMU1_PCIE_PHY);
> + clkdev_add_pmu("pcie-bus", NULL, 0, PMU_PCIE_CLK);
> + clkdev_add_pmu("pcie-msi", NULL, 1, PMU1_PCIE_MSI);
> + clkdev_add_pmu("pcie-pdi", NULL, 1, PMU1_PCIE_PDI);
> + clkdev_add_pmu("pcie-ctl", NULL, 1, PMU1_PCIE_CTL);
> + clkdev_add_pmu("ahb", NULL, 0, PMU_AHBM | PMU_AHBS);
> } else {
> clkdev_add_static("cpu", ltq_danube_cpu_hz());
> clkdev_add_static("fpi", ltq_danube_fpi_hz());
WBR, Sergei
next prev parent reply other threads:[~2012-02-17 16:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-17 10:33 [PATCH 1/3] MIPS: lantiq: unify xway prom code John Crispin
2012-02-17 10:33 ` [PATCH 2/3] MIPS: lantiq: add vr9 support John Crispin
2012-02-17 17:43 ` Sergei Shtylyov [this message]
2012-02-17 16:50 ` John Crispin
2012-02-17 10:33 ` [PATCH 3/3] MIPS: lantiq: make use of module_platform_driver() John Crispin
2012-02-17 23:02 ` Daniel Schwierzeck
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=4F3E91B5.5080603@mvista.com \
--to=sshtylyov@mvista.com \
--cc=blogic@openwrt.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.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