mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-25 08:02:57 +00:00
mediatek: backport upstream patches related to mt7629 support
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
This commit is contained in:
parent
46a97fe316
commit
109e614d90
@ -0,0 +1,51 @@
|
||||
From 2663146427cedb9d7582cfa481d5d5611fb3138a Mon Sep 17 00:00:00 2001
|
||||
From: Ryder Lee <ryder.lee@mediatek.com>
|
||||
Date: Tue, 29 Jan 2019 12:28:48 +0800
|
||||
Subject: [PATCH] Revert "ARM: mediatek: add MT7623a smp bringup code"
|
||||
|
||||
This reverts commit 3b99ab7deca1e5f4229b4bdecd005d71e22cfc60.
|
||||
|
||||
The compatible "mediatek,mt7623a" is useless, so remove it.
|
||||
|
||||
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
|
||||
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
|
||||
---
|
||||
arch/arm/mach-mediatek/mediatek.c | 2 --
|
||||
arch/arm/mach-mediatek/platsmp.c | 1 -
|
||||
2 files changed, 3 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c
|
||||
index 6910b4e0d913..c3cf215773b2 100644
|
||||
--- a/arch/arm/mach-mediatek/mediatek.c
|
||||
+++ b/arch/arm/mach-mediatek/mediatek.c
|
||||
@@ -30,7 +30,6 @@ static void __init mediatek_timer_init(void)
|
||||
|
||||
if (of_machine_is_compatible("mediatek,mt6589") ||
|
||||
of_machine_is_compatible("mediatek,mt7623") ||
|
||||
- of_machine_is_compatible("mediatek,mt7623a") ||
|
||||
of_machine_is_compatible("mediatek,mt8135") ||
|
||||
of_machine_is_compatible("mediatek,mt8127")) {
|
||||
/* turn on GPT6 which ungates arch timer clocks */
|
||||
@@ -50,7 +49,6 @@ static const char * const mediatek_board_dt_compat[] = {
|
||||
"mediatek,mt6589",
|
||||
"mediatek,mt6592",
|
||||
"mediatek,mt7623",
|
||||
- "mediatek,mt7623a",
|
||||
"mediatek,mt8127",
|
||||
"mediatek,mt8135",
|
||||
NULL,
|
||||
diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c
|
||||
index 6882ff07aaa6..51e85562098c 100644
|
||||
--- a/arch/arm/mach-mediatek/platsmp.c
|
||||
+++ b/arch/arm/mach-mediatek/platsmp.c
|
||||
@@ -60,7 +60,6 @@ static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = {
|
||||
static const struct of_device_id mtk_smp_boot_infos[] __initconst = {
|
||||
{ .compatible = "mediatek,mt6589", .data = &mtk_mt6589_boot },
|
||||
{ .compatible = "mediatek,mt7623", .data = &mtk_mt7623_boot },
|
||||
- { .compatible = "mediatek,mt7623a", .data = &mtk_mt7623_boot },
|
||||
{},
|
||||
};
|
||||
|
||||
--
|
||||
2.21.0
|
||||
|
@ -0,0 +1,57 @@
|
||||
From a43379dddf1ba14b6a9d50d95175117bbdf52ed2 Mon Sep 17 00:00:00 2001
|
||||
From: Ryder Lee <ryder.lee@mediatek.com>
|
||||
Date: Tue, 29 Jan 2019 12:31:18 +0800
|
||||
Subject: [PATCH] arm: mediatek: add MT7629 smp bring up code
|
||||
|
||||
Add support for booting secondary CPUs on MT7629.
|
||||
|
||||
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
|
||||
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
|
||||
---
|
||||
arch/arm/mach-mediatek/Kconfig | 4 ++++
|
||||
arch/arm/mach-mediatek/mediatek.c | 1 +
|
||||
arch/arm/mach-mediatek/platsmp.c | 1 +
|
||||
3 files changed, 6 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig
|
||||
index 91cc461f7b04..11ed264f0731 100644
|
||||
--- a/arch/arm/mach-mediatek/Kconfig
|
||||
+++ b/arch/arm/mach-mediatek/Kconfig
|
||||
@@ -26,6 +26,10 @@ config MACH_MT7623
|
||||
bool "MediaTek MT7623 SoCs support"
|
||||
default ARCH_MEDIATEK
|
||||
|
||||
+config MACH_MT7629
|
||||
+ bool "MediaTek MT7629 SoCs support"
|
||||
+ default ARCH_MEDIATEK
|
||||
+
|
||||
config MACH_MT8127
|
||||
bool "MediaTek MT8127 SoCs support"
|
||||
default ARCH_MEDIATEK
|
||||
diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c
|
||||
index c3cf215773b2..b6a81ba1ce32 100644
|
||||
--- a/arch/arm/mach-mediatek/mediatek.c
|
||||
+++ b/arch/arm/mach-mediatek/mediatek.c
|
||||
@@ -49,6 +49,7 @@ static const char * const mediatek_board_dt_compat[] = {
|
||||
"mediatek,mt6589",
|
||||
"mediatek,mt6592",
|
||||
"mediatek,mt7623",
|
||||
+ "mediatek,mt7629",
|
||||
"mediatek,mt8127",
|
||||
"mediatek,mt8135",
|
||||
NULL,
|
||||
diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c
|
||||
index 51e85562098c..c9d7c0458452 100644
|
||||
--- a/arch/arm/mach-mediatek/platsmp.c
|
||||
+++ b/arch/arm/mach-mediatek/platsmp.c
|
||||
@@ -60,6 +60,7 @@ static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = {
|
||||
static const struct of_device_id mtk_smp_boot_infos[] __initconst = {
|
||||
{ .compatible = "mediatek,mt6589", .data = &mtk_mt6589_boot },
|
||||
{ .compatible = "mediatek,mt7623", .data = &mtk_mt7623_boot },
|
||||
+ { .compatible = "mediatek,mt7629", .data = &mtk_mt7623_boot },
|
||||
{},
|
||||
};
|
||||
|
||||
--
|
||||
2.21.0
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,34 @@
|
||||
From 9cca9b3e55989f8b227d05897877648d67910a6d Mon Sep 17 00:00:00 2001
|
||||
From: Guochun Mao <guochun.mao@mediatek.com>
|
||||
Date: Wed, 16 Jan 2019 10:12:04 +0800
|
||||
Subject: [PATCH] mtd: spi-nor: mtk-quadspi: add SNOR_HWCAPS_READ to
|
||||
spi_nor_hwcaps mask
|
||||
|
||||
SNOR_HWCAPS_READ should be supported by this controller, so add this
|
||||
flag to spi_nor_hwcaps mask.
|
||||
|
||||
Signed-off-by: Guochun Mao <guochun.mao@mediatek.com>
|
||||
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
|
||||
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
|
||||
Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
|
||||
---
|
||||
drivers/mtd/spi-nor/mtk-quadspi.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/drivers/mtd/spi-nor/mtk-quadspi.c b/drivers/mtd/spi-nor/mtk-quadspi.c
|
||||
index 5442993b71ff..d9eed6844ba1 100644
|
||||
--- a/drivers/mtd/spi-nor/mtk-quadspi.c
|
||||
+++ b/drivers/mtd/spi-nor/mtk-quadspi.c
|
||||
@@ -431,7 +431,8 @@ static int mtk_nor_init(struct mtk_nor *mtk_nor,
|
||||
struct device_node *flash_node)
|
||||
{
|
||||
const struct spi_nor_hwcaps hwcaps = {
|
||||
- .mask = SNOR_HWCAPS_READ_FAST |
|
||||
+ .mask = SNOR_HWCAPS_READ |
|
||||
+ SNOR_HWCAPS_READ_FAST |
|
||||
SNOR_HWCAPS_READ_1_1_2 |
|
||||
SNOR_HWCAPS_PP,
|
||||
};
|
||||
--
|
||||
2.21.0
|
||||
|
Loading…
Reference in New Issue
Block a user