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

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