John Crispin
f576fb6a07
MIPS: ralink: cleanup the soc specific pinmux data
...
Before we had a pinctrl driver we used a custom OF api. This patch converts the
soc specific pinmux data to a new set of structs. We also add some new pinmux
setings.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8009/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:24 +01:00
John Crispin
4248f7f121
MIPS: ralink: copy the commandline from the devicetree
...
This is a regression caused by:
commit afb46f7996
Author: Rob Herring <robh@kernel.org >
Date: Wed Apr 2 19:07:24 2014 -0500
mips: ralink: convert to use unflatten_and_copy_device_tree
Make the of init code reuse the cmdline defined inside the dts.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8008/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:23 +01:00
John Crispin
7a1a44c909
MIPS: ralink: add a bootrom dumper module
...
This patch adds a trivial driver that allows userland to extract the bootrom of
a SoC via debugfs.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8002/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:22 +01:00
John Crispin
1e209c969a
MIPS: ralink: add rt3883 wmac clock
...
Register the wireless mac clock on rti3883. This is required by the wifi driver.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8007/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:20 +01:00
John Crispin
f2a8bd2e92
MIPS: ralink: add rt2880 wmac clock
...
Register the wireleass mac clock on rt2880. This is required by the wifi driver.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8006/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:20 +01:00
John Crispin
a8b6204761
MIPS: ralink: add missing clk_set_rate() to clk.c
...
This function was missing causing make allmod to fail.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8005/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:20 +01:00
John Crispin
15d1112070
MIPS: ralink: allow manual memory override
...
RT5350 relies on the bootloader setting up the memc correctly. On some boards
the setup is incorrect leading to 32 MB being available but only 16 MB being
recognized. Allow these boards to manually override the memory range.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8004/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:20 +01:00
John Crispin
5433acd81e
MIPS: ralink: add illegal access driver
...
These SoCs have a special irq that fires upon an illegal memmory access.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8003/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:19 +01:00
John Crispin
47e14d6678
MIPS: ralink: add rt_sysc_m32 helper
...
We already have a read and write wrapper. This adds the missing mask wrapper.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8001/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:19 +01:00
John Crispin
2920b83d35
MIPS: ralink: add a helper for reading the ECO version
...
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8000/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:19 +01:00
John Crispin
2adf550f26
MIPS: ralink: add verbose pmu info
...
Print the PMU and LDO settings on boot.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/7999/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:19 +01:00
John Crispin
9bc7ebcbf1
MIPS: lantiq: add missing spi clock on falcon SoC
...
Signed-off-by: Thomas Langer <thomas.langer@lantiq.com >
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8050/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:18 +01:00
John Crispin
eb5dbd22b6
MIPS: lantiq: the detection of the gpe clock is broken
...
The code to detect unfused SoCs was broken due to missing register masking.
Signed-off-by: Thomas Langer <thomas.langer@lantiq.com >
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8049/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:18 +01:00
John Crispin
17327862f3
MIPS: lantiq: copy the commandline from the devicetree
...
This is a regression caused by:
commit afb46f7996
Author: Rob Herring <robh@kernel.org >
Date: Wed Apr 2 19:07:24 2014 -0500
mips: ralink: convert to use unflatten_and_copy_device_tree
Make the of init code reuse the cmdline defined inside the dts.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8048/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:18 +01:00
John Crispin
d32caf94e0
MIPS: lantiq: move eiu init after irq_domain register
...
The eiu init failed as the irq_domain was not yet available.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8047/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:18 +01:00
John Crispin
e8b8ca8cb3
MIPS: lantiq: export soc type
...
The voice and dsl drivers need to know which SoC we are running on.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com >
Patchwork: http://patchwork.linux-mips.org/patch/8046/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:18 +01:00
John Crispin
276229d2a9
MIPS: lantiq: add support for xrx200 firmware depending on soc type
...
VR9 needs different firmware files for the various phy/soc revisions. Some
boards are ship with older and newer SoC revisions. To be able to boot a single
image on all versions we need to define both firmware files inside the
devicetree.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com >
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8045/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:17 +01:00
John Crispin
50128fe816
MIPS: lantiq: reboot gphy on restart
...
A reboot sometimes lead to a none working phy. An explicit reboot fixes the
problem.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8044/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:17 +01:00
John Crispin
c530781c93
MIPS: lantiq: add reset-controller api support
...
Add a reset-controller binding for the reset registers found on the lantiq
SoC.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8043/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:17 +01:00
John Crispin
05637f10e7
MIPS: lantiq: handle vmmc memory reservation
...
The Lantiq SoCs have a 2nd mips core called "voice mips macro core (vmmc)"
which is used to run the voice firmware. This driver allows us to register
a chunk of memory that the voice driver can later use for the 2nd core.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8042/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:17 +01:00
Tomeu Vizoso
24c71c83ed
MIPS: Alchemy: Remove direct access to prepare_count field of struct clk
...
Replacing it with a call to __clk_is_prepared(), which isn't entirely
equivalent but in practice shouldn't matter.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org >
Cc: Mike Turquette <mturquette@linaro.org >
Cc: Javier Martinez Canillas <javier.martinez@collabora.co.uk >
Cc: Manuel Lauss <manuel.lauss@gmail.com >
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/8120/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:17 +01:00
Andrew Bresticker
a45da56598
clocksource: mips-gic: Bump up rating of GIC timer
...
Bump up the rating of the GIC timer so that it gets prioritized
over the CP0 timer.
Signed-off-by: Andrew Bresticker <abrestic@chromium.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Jason Cooper <jason@lakedaemon.net >
Cc: Paul Burton <paul.burton@imgtec.com >
Cc: Qais Yousef <qais.yousef@imgtec.com >
Cc: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/8141/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:16 +01:00
Andrew Bresticker
b695d8e6ad
clocksource: mips-gic: Use clockevents_config_and_register
...
Use clockevents_config_and_register to setup the clock_event_device
based on frequency and min/max ticks instead of doing it ourselves.
Signed-off-by: Andrew Bresticker <abrestic@chromium.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Jason Cooper <jason@lakedaemon.net >
Cc: Paul Burton <paul.burton@imgtec.com >
Cc: Qais Yousef <qais.yousef@imgtec.com >
Cc: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/8140/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:16 +01:00
Andrew Bresticker
e4752dbbc3
clocksource: mips-gic: Use CPU notifiers to setup the timer
...
Instead of requiring an explicit call to gic_clockevent_init in the SMP
startup path, use CPU notifiers to register and enable the GIC timer on
CPU startup.
Signed-off-by: Andrew Bresticker <abrestic@chromium.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Jason Cooper <jason@lakedaemon.net >
Cc: Paul Burton <paul.burton@imgtec.com >
Cc: Qais Yousef <qais.yousef@imgtec.com >
Cc: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/8139/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:16 +01:00
Andrew Bresticker
f7ea3060b6
clocksource: mips-gic: Use percpu_dev_id
...
Since the GIC timer IRQ is a percpu IRQ, we can use percpu_dev_id
to pass the IRQ handler the correct clock_event_device.
Signed-off-by: Andrew Bresticker <abrestic@chromium.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Jason Cooper <jason@lakedaemon.net >
Cc: Paul Burton <paul.burton@imgtec.com >
Cc: Qais Yousef <qais.yousef@imgtec.com >
Cc: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/8138/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:15 +01:00