John Crispin
16eccef68f
MIPS: ralink: Add missing pinmux.
...
The mt7620 has a pin that can be used to generate an external reference
clock. The pinmux setup was missing the definition of said pin. This patch
adds it.
Signed-off-by: John Crispin <john@phrozen.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14898/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2017-01-03 16:34:47 +01:00
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
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
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
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
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
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