Jaedon Shin
f50cbf5329
MIPS: BMIPS: Add I2C node for bcm7362
...
Add I2C device nodes to BMIPS based BCM7362 platform.
Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com >
Acked-by: Florian Fainelli <f.fainelli@gmail.com >
Cc: Wolfram Sang <wsa@the-dreams.de >
Cc: Kamal Dasu <kdasu.kdev@gmail.com >
Cc: linux-i2c@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11336/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:45 +01:00
Jaedon Shin
fb575b85ef
MIPS: BMIPS: Add I2C node for bcm7360
...
Add I2C device nodes to BMIPS based BCM7360 platform.
Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com >
Acked-by: Florian Fainelli <f.fainelli@gmail.com >
Cc: Wolfram Sang <wsa@the-dreams.de >
Cc: Kamal Dasu <kdasu.kdev@gmail.com >
Cc: linux-i2c@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11335/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:42 +01:00
Jaedon Shin
ad8378383e
MIPS: BMIPS: Add I2C node for bcm7358
...
Add I2C device nodes to BMIPS based BCM7358 platform.
Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com >
Acked-by: Florian Fainelli <f.fainelli@gmail.com >
Cc: Wolfram Sang <wsa@the-dreams.de >
Cc: Kamal Dasu <kdasu.kdev@gmail.com >
Cc: linux-i2c@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11334/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:39 +01:00
Jaedon Shin
39d9b6b223
MIPS: BMIPS: Add I2C node for bcm7346
...
Add I2C device nodes to BMIPS based BCM7346 platform.
Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com >
Acked-by: Florian Fainelli <f.fainelli@gmail.com >
Cc: Wolfram Sang <wsa@the-dreams.de >
Cc: Kamal Dasu <kdasu.kdev@gmail.com >
Cc: linux-i2c@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11333/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:37 +01:00
Hauke Mehrtens
6e80785267
MIPS: Lantiq: Fix check for return value of request_mem_region()
...
request_mem_region() returns a pointer and not an integer with an error
value. A check for "< 0" on a pointer will cause problems, replace it
with not null checks instead. This was found with sparse.
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com >
Acked-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11395/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:34 +01:00
Hauke Mehrtens
13648d7245
MIPS: Lantiq: Add support for xRX220 SoC
...
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com >
Acked-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11394/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:31 +01:00
Hauke Mehrtens
5072d8142a
MIPS: Lantiq: Add misc clocks
...
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com >
Acked-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11393/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:30 +01:00
Hauke Mehrtens
e71f6d356d
MIPS: Lantiq: Add 1e103100.deu clock
...
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com >
Acked-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11392/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:25 +01:00
Hauke Mehrtens
a3a6853498
MIPS: Lantiq: Add clock for mei driver
...
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com >
Acked-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11391/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:23 +01:00
Hauke Mehrtens
a5c1aad853
MIPS: Lantiq: Add SoC detection for ar10 and grx390
...
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com >
Acked-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11390/
Patchwork: https://patchwork.linux-mips.org/patch/11399/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:21 +01:00
Hauke Mehrtens
eefee024b0
MIPS: Lantiq: Add support for gphy firmware loading for ar10 and grx390
...
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com >
Acked-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11389/
Patchwork: https://patchwork.linux-mips.org/patch/11398/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:18 +01:00
Hauke Mehrtens
d0b991e376
MIPS: Lantiq: Add pmu bits for ar10 and grx390
...
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com >
Acked-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11388/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:16 +01:00
Hauke Mehrtens
e182c98a59
MIPS: Lantiq: Add PMU bits for USB and SDIO devices
...
This adds the PUM bits for USB and SDIO devices
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com >
Acked-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11387/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:13 +01:00
Hauke Mehrtens
95135bfa7e
MIPS: Lantiq: Deactivate most of the devices by default
...
When the SoC starts up most of the devices should be deactivated by the
PMU, they should be activated when they get used by their drivers. Some
devices should not get deactivate at startup like the serial, register
them in a special way.
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com >
Acked-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11386/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:11 +01:00
Hauke Mehrtens
61e371d822
MIPS: Lantiq: Add clock detection for grx390 and ar10
...
This add detection of some clocks on the ar10 and grx390.
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com >
Acked-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11385/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:09 +01:00
Hauke Mehrtens
18a3af60fc
MIPS: Lantiq: Fix pp32 clock on vr9
...
The vendor code uses different clock values for this clock.
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com >
Acked-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11384/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:06 +01:00
Hauke Mehrtens
b5a03d0cb3
MIPS: Lantiq: Rename CGU_SYS_VR9 register
...
This register is also used on other SoCs.
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com >
Acked-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11383/
Patchwork: https://patchwork.linux-mips.org/patch/11397/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:05 +01:00
Hauke Mehrtens
758d2443ed
MIPS: Lantiq: Add support for setting PMU register on AR10 and GRX390
...
This adds support for setting the PMU register on the AR10 and GRX390.
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com >
Acked-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11382/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:01 +01:00
Hauke Mehrtens
cab7b8363c
MIPS: Lantiq: Add locking for PMU register and check status afterwards
...
The PMU register are accessed in a non atomic way and they could be
accessed by different threads simultaneously, which could cause
problems this patch adds locking around the PMU registers. In
addition we now also wait till the PMU is actually deactivated.
[ralf@linux-mips.org: Fix spelling mistake in commit message as noticed
by Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>.]
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
Acked-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11381/
Patchwork: https://patchwork.linux-mips.org/patch/11396/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:00 +01:00
Rafał Miłecki
d8cfb5037b
MIPS: BCM47xx: Fetch board info directly in callback function
...
This drops another symbol dependency between setup.c and sprom.c which
will allow us to make SPROM code a separated module (and share it with
ARM).
Patch tested on Linksys WRT300N V1.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Cc: Hauke Mehrtens <hauke@hauke-m.de >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11360/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:36:57 +01:00
Rafał Miłecki
2f94acde42
MIPS: BCM47xx: Fix some WARNINGs pointed in sprom.c by checkpatch.pl
...
There are still few left:
1) Most of them about lines over 80 chars (increased readability exception)
2) Wrong parsing of preprocessor macros
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Cc: linux-mips@linux-mips.org
Cc: Hauke Mehrtens <hauke@hauke-m.de >
Patchwork: https://patchwork.linux-mips.org/patch/11356/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:36:54 +01:00
Rafał Miłecki
daa7ce0251
MIPS: BCM47xx: Support on-SoC bus in SPROM reading function
...
To support (extract) SPROM on Broadcom ARM devices we should separate
SPROM code and make it a separated module. We won't want to export
bcm47xx_fill_sprom symbol so we should support SoC SPROM in the standard
fallback function and then modify ssb to use it.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Acked-by: Hauke Mehrtens <hauke@hauke-m.de >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11355/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:36:52 +01:00
Hauke Mehrtens
500fab97c6
MIPS: lantiq: add clk_round_rate()
...
This adds a basic implementation of clk_round_rate()
The clk_round_rate() function is called by multiple drivers and
subsystems now and the lantiq clk driver is supposed to export this,
but doesn't do so, this causes linking problems like this one:
ERROR: "clk_round_rate" [drivers/media/v4l2-core/videodev.ko] undefined!
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
Acked-by: John Crispin <blogic@openwrt.org >
Cc: <stable@vger.kernel.org > # 4.1+
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11358/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:36:48 +01:00
Aaro Koskinen
e1e1611598
MIPS: Add LATENCYTOP support
...
Add LATENCYTOP support for MIPS. Tested on OCTEON.
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11353/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:36:46 +01:00
Julia Lawall
972cfd5502
MIPS: pci-rt3883: drop unneeded of_node_get
...
for_each_child_of_node performs an of_node_get on each iteration, so no
of_node_get is needed on breaking out of the loop when the device_node
structure is saved in another variable.
A simplified semantic match that finds this problem is as follows
(http://coccinelle.lip6.fr ):
// <smpl>
@@
expression root;
local idexpression child;
@@
for_each_child_of_node(root, child) {
...
* of_node_get(child)
...
break;
}
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr >
Cc: kernel-janitors@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Russell King - ARM Linux <linux@arm.linux.org.uk >
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
Cc: Andrew Lunn <andrew@lunn.ch >
Cc: Bjorn Helgaas <bhelgaas@google.com >
Cc: Jason Cooper <jason@lakedaemon.net >
Patchwork: https://patchwork.linux-mips.org/patch/11357/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:36:43 +01:00