1
0

019-sid-add-efuse-support-for-h3-a83t.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. From 70fe24ed93fa90eb407d18a5fc9d9ad85ac9184c Mon Sep 17 00:00:00 2001
  2. From: Chen-Yu Tsai <wens@csie.org>
  3. Date: Wed, 27 Jan 2016 16:34:43 +0800
  4. Subject: [PATCH] sunxi: Support SID e-fuses on A83T and H3
  5. On the A83T and H3, the SID block is at a different address.
  6. Furthurmore, the e-fuses are at an offset of 0x200 within the
  7. hardware's address space.
  8. Signed-off-by: Chen-Yu Tsai <wens@csie.org>
  9. Acked-by: Hans de Goede <hdegoede@redhat.com>
  10. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  11. ---
  12. arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 7 +++++++
  13. 1 file changed, 7 insertions(+)
  14. --- a/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h
  15. +++ b/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h
  16. @@ -82,7 +82,14 @@
  17. #define SUNXI_AD_DA_BASE 0x01c22c00
  18. #define SUNXI_KEYPAD_BASE 0x01c23000
  19. #define SUNXI_TZPC_BASE 0x01c23400
  20. +
  21. +#if defined(CONFIG_MACH_SUN8I_A83T) || defined(CONFIG_MACH_SUN8I_H3)
  22. +/* SID address space starts at 0x01c1400, but e-fuse is at offset 0x200 */
  23. +#define SUNXI_SID_BASE 0x01c14200
  24. +#else
  25. #define SUNXI_SID_BASE 0x01c23800
  26. +#endif
  27. +
  28. #define SUNXI_SJTAG_BASE 0x01c23c00
  29. #define SUNXI_TP_BASE 0x01c25000