0028-ARM-mediatek-add-MT7623-smp-bringup-code.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From d088a94afc768683a881b627b6737442158e7db6 Mon Sep 17 00:00:00 2001
  2. From: John Crispin <blogic@openwrt.org>
  3. Date: Tue, 5 Jan 2016 17:24:28 +0100
  4. Subject: [PATCH 028/102] ARM: mediatek: add MT7623 smp bringup code
  5. Add support for booting secondary CPUs on MT7623.
  6. Signed-off-by: John Crispin <blogic@openwrt.org>
  7. Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
  8. ---
  9. arch/arm/mach-mediatek/platsmp.c | 7 +++++++
  10. 1 file changed, 7 insertions(+)
  11. --- a/arch/arm/mach-mediatek/platsmp.c
  12. +++ b/arch/arm/mach-mediatek/platsmp.c
  13. @@ -44,6 +44,12 @@ static const struct mtk_smp_boot_info mt
  14. { 0x38, 0x3c, 0x40 },
  15. };
  16. +static const struct mtk_smp_boot_info mtk_mt7623_boot = {
  17. + 0x10202000, 0x34,
  18. + { 0x534c4131, 0x4c415332, 0x41534c33 },
  19. + { 0x38, 0x3c, 0x40 },
  20. +};
  21. +
  22. static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = {
  23. { .compatible = "mediatek,mt8135", .data = &mtk_mt8135_tz_boot },
  24. { .compatible = "mediatek,mt8127", .data = &mtk_mt8135_tz_boot },
  25. @@ -51,6 +57,7 @@ static const struct of_device_id mtk_tz_
  26. static const struct of_device_id mtk_smp_boot_infos[] __initconst = {
  27. { .compatible = "mediatek,mt6589", .data = &mtk_mt6589_boot },
  28. + { .compatible = "mediatek,mt7623", .data = &mtk_mt7623_boot },
  29. };
  30. static void __iomem *mtk_smp_base;