036-ARM-qcom-add-SMEM-device-node-to-IPQ806x-dts.patch 966 B

123456789101112131415161718192021222324252627282930313233343536
  1. From f212be3a6134db8dd7c5f6f0987536a669401fae Mon Sep 17 00:00:00 2001
  2. From: Mathieu Olivari <mathieu@codeaurora.org>
  3. Date: Fri, 14 Aug 2015 11:17:20 -0700
  4. Subject: [PATCH 2/3] ARM: qcom: add SMEM device node to IPQ806x dts
  5. SMEM is used on IPQ806x to store various board related information such
  6. as boot device and flash partition layout. We'll declare it as a device
  7. so we can make use of it thanks to the new SMEM soc driver.
  8. Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
  9. ---
  10. arch/arm/boot/dts/qcom-ipq8064.dtsi | 8 +++++++-
  11. 1 file changed, 7 insertions(+), 1 deletion(-)
  12. --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
  13. +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
  14. @@ -54,7 +54,7 @@
  15. no-map;
  16. };
  17. - smem@41000000 {
  18. + smem: smem@41000000 {
  19. reg = <0x41000000 0x200000>;
  20. no-map;
  21. };
  22. @@ -304,4 +304,10 @@
  23. #hwlock-cells = <1>;
  24. };
  25. +
  26. + smem {
  27. + compatible = "qcom,smem";
  28. + memory-region = <&smem>;
  29. + hwlocks = <&sfpb_mutex 3>;
  30. + };
  31. };