0011-reset-mediatek-mt2701-reset-driver.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 3ba0020ea70ffb5503eff1823be7fa5ceda38286 Mon Sep 17 00:00:00 2001
  2. From: Shunli Wang <shunli.wang@mediatek.com>
  3. Date: Tue, 5 Jan 2016 14:30:22 +0800
  4. Subject: [PATCH 011/102] reset: mediatek: mt2701 reset driver
  5. In infrasys and perifsys, there are many reset
  6. control bits for kinds of modules. These bits are
  7. used as actual reset controllers to be registered
  8. into kernel's generic reset controller framework.
  9. Signed-off-by: Shunli Wang <shunli.wang@mediatek.com>
  10. Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
  11. ---
  12. drivers/clk/mediatek/clk-mt2701.c | 4 ++++
  13. 1 file changed, 4 insertions(+)
  14. --- a/drivers/clk/mediatek/clk-mt2701.c
  15. +++ b/drivers/clk/mediatek/clk-mt2701.c
  16. @@ -665,6 +665,8 @@ static void __init mtk_infrasys_init(str
  17. if (r)
  18. pr_err("%s(): could not register clock provider: %d\n",
  19. __func__, r);
  20. +
  21. + mtk_register_reset_controller(node, 2, 0x30);
  22. }
  23. CLK_OF_DECLARE(mtk_infrasys, "mediatek,mt2701-infracfg", mtk_infrasys_init);
  24. @@ -782,6 +784,8 @@ static void __init mtk_pericfg_init(stru
  25. if (r)
  26. pr_err("%s(): could not register clock provider: %d\n",
  27. __func__, r);
  28. +
  29. + mtk_register_reset_controller(node, 2, 0x0);
  30. }
  31. CLK_OF_DECLARE(mtk_pericfg, "mediatek,mt2701-pericfg", mtk_pericfg_init);