Sashka Nochkin
86ce9a340e
mips: mt7620: fallback to SDRAM when syscfg0 does not have a valid value for the memory type
...
Mediatek MT7620 SoC has syscfg0 bits where it sets the type of memory being used.
However, sometimes those bits are not set properly (reading "11"). In this case, the SoC assumes SDRAM.
The patch below reflects that.
Signed-off-by: Sashka Nochkin <linux-mips@durdom.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13135/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2016-05-13 15:39:43 +02:00
John Crispin
97b921087f
MIPS: Change my email address
...
The old address is no longer valid. Use the my new one instead.
Signed-off-by: John Crispin <john@phrozen.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13201/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2016-05-13 14:02:18 +02:00
John Crispin
1df7addb96
MIPS: ralink: add MT7621 support
...
MT7621 is based on a 1004k core. This patch adds support for the SoC. The
timer and IRQ is just boiler plate as GIC has recently been moved to
generic places in the kernel and just works.
Signed-off-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11990/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2016-01-20 00:39:20 +01:00
John Crispin
418d29c870
MIPS: ralink: Unify SoC id handling
...
This makes detection a lot easier for audio, wifi, ... drivers.
Signed-off-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11440/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:56 +01:00
John Crispin
81857db913
MIPS: ralink: Add support for mt7688
...
MT7688 is similar tot he MT7628 but has a different wifi radio.
Signed-off-by: John Crispin <blogic@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11439/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-11-11 08:37:54 +01:00
Kevin Cernekee
d631fc6070
MIPS: Create a common <asm/mach-generic/war.h>
...
11 platforms require at least one of these workarounds to be enabled; 22
platforms do not. In the latter case we can fall back to a generic version.
Note that this also deletes an orphaned reference to RM9000_CDEX_SMP_WAR.
Suggested-by: Arnd Bergmann <arnd@arndb.de >
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Signed-off-by: Andrew Bresticker <abrestic@chromium.org >
Reviewed-by: James Hogan <james.hogan@imgtec.com >
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: Ezequiel Garcia <ezequiel.garcia@imgtec.com >
Cc: James Hartley <james.hartley@imgtec.com >
Cc: James Hogan <james.hogan@imgtec.com >
Patchwork: https://patchwork.linux-mips.org/patch/9567/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2015-03-31 11:59:40 +02:00
John Crispin
53263a1c68
MIPS: ralink: add mt7628an support
...
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8031/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:24 +01:00
John Crispin
1dc5c2cfc1
MIPS: ralink: add support for MT7620n
...
This is the small version of MT7620a.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/8030/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-11-24 07:45:24 +01:00
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
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
Ralf Baechle
8a8bbf2a93
MIPS: Ralink: Remove surviving RM9000 bits.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-05-23 15:12:40 +02:00
Gabor Juhos
9852ba6a91
MIPS: ralink: mt7620: Add cpu-feature-override header
...
Override certain CPU features to help GCC to optimize
the generated code. Saves about 150KB in the vmlinux
image with a generic configuration.
text data bss dec hex filename
3824158 134820 234192 4193170
3ffb92 vmlinux.no-override
3664054 138804 234192 4037050 3d99ba vmlinux.override
Signed-off-by: Gabor Juhos <juhosg@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5759/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2013-09-04 16:58:31 +02:00
Gabor Juhos
ded1e9d727
MIPS: ralink: mt7620: Improve clock frequency detection
...
The current code assumes that the peripheral clock always
runs at 40MHz which is not true in all configuration. The
peripheral clock can also use the reference clock instead
of the fixed 40MHz rate. If the reference clock runs at a
different rate, various peripheries are behaving incorrectly.
Additionally, the currectly calculated system clock is also
wrong. The actual value what the code computes is the rate
of the DRAM which can be different from the system clock.
Add new helper functions to get the rate of the different
clocks and use the correct values for the registered clock
devices.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5755/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2013-09-04 16:57:05 +02:00
John Crispin
51e3960784
MIPS: ralink: add memory definition for MT7620
...
Populate struct soc_info with the data that describes our RAM window.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/5183/
2013-05-08 01:19:12 +02:00
John Crispin
fe98f612a1
MIPS: ralink: add memory definition for RT3883
...
Populate struct soc_info with the data that describes our RAM window.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/5182/
2013-05-08 01:19:12 +02:00
John Crispin
38d5b81cde
MIPS: ralink: add memory definition for RT2880
...
Populate struct soc_info with the data that describes our RAM window.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/5181/
2013-05-08 01:19:11 +02:00
John Crispin
dafecee8bb
MIPS: ralink: add memory definition for RT305x
...
Populate struct soc_info with the data that describes our RAM window.
As memory detection fails on RT5350 we read the amount of available memory
from the system controller.
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/5180/
2013-05-08 01:19:11 +02:00
Gabor Juhos
de3eb02a53
MIPS: ralink: add cpu-feature-overrides.h
...
Add cpu-feature-overrides.h for RT288x, RT305x and RT3883.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org >
Signed-off-by: John Crispin <blogic@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/5175/
2013-05-08 01:19:10 +02:00
John Crispin
594bde683d
MIPS: ralink: adds support for MT7620 SoC family
...
Add support code for mt7620 SOC.
The code detects the SoC and registers the clk / pinmux settings.
Signed-off-by: John Crispin <blogic@openwrt.org >
Acked-by: Gabor Juhos <juhosg@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/5177/
2013-05-08 01:19:09 +02:00
John Crispin
293840b999
MIPS: ralink: adds support for RT3883 SoC family
...
Add support code for rt3883 SOC.
The code detects the SoC and registers the clk / pinmux settings.
Signed-off-by: John Crispin <blogic@openwrt.org >
Signed-off-by: Gabor Juhos <juhosg@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/5185/
2013-05-08 01:19:09 +02:00
John Crispin
80fb55a951
MIPS: ralink: adds support for RT2880 SoC family
...
Add support code for rt2880 SOC.
The code detects the SoC and registers the clk / pinmux settings.
Signed-off-by: John Crispin <blogic@openwrt.org >
Signed-off-by: Gabor Juhos <juhosg@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/5176/
2013-05-08 01:19:09 +02:00
John Crispin
8ddc2513fb
MIPS: ralink: add RT5350 sdram register defines
...
Add a few missing defines that are needed to make memory detection work on the
RT5350.
Signed-off-by: John Crispin <blogic@openwrt.org >
Acked-by: Gabor Juhos <juhosg@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/5169/
2013-05-08 01:19:08 +02:00
John Crispin
bb19fea238
MIPS: ralink: add RT3352 register defines
...
Add a few missing defines that are needed to make USB and clock detection work
on the RT3352.
Signed-off-by: John Crispin <blogic@openwrt.org >
Acked-by: Gabor Juhos <juhosg@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/5166/
2013-05-08 01:19:07 +02:00
John Crispin
2809b31770
MIPS: ralink: adds support for RT305x SoC family
...
Add support code for rt3050, rt3052, rt3350, rt3352 and rt5350 SOC.
The code detects the SoC and registers the clk / pinmux settings.
Signed-off-by: John Crispin <blogic@openwrt.org >
Signed-off-by: Gabor Juhos <juhosg@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/4896/
2013-02-17 01:25:31 +01:00
John Crispin
8563991026
MIPS: ralink: adds include files
...
Before we start adding the platform code we add the common include files.
Signed-off-by: John Crispin <blogic@openwrt.org >
Signed-off-by: Gabor Juhos <juhosg@openwrt.org >
Patchwork: http://patchwork.linux-mips.org/patch/4893/
2013-02-17 01:25:28 +01:00