]> git.sur5r.net Git - u-boot/commitdiff
ARM: DRA7/ OMAP5: implement Auxiliary Control Register configuration
authorNishanth Menon <nm@ti.com>
Mon, 27 Jul 2015 21:26:06 +0000 (16:26 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 13 Aug 2015 00:47:50 +0000 (20:47 -0400)
Implement logic for ACR(Auxiliary Control Register) configuration using
ROM Code smc service.

Suggested-by: Richard Woodruff <r-woodruff2@ti.com>
Suggested-by: Brad Griffis <bgriffis@ti.com>
Reviewed-by: Brad Griffis <bgriffis@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm/cpu/armv7/omap5/hwinit.c
arch/arm/include/asm/arch-omap5/sys_proto.h

index 39f8d0d5e20013d7a269e29682db436fbc18f8af..bc19aebc6db7d9b084b54763cfffda551ecf9088 100644 (file)
@@ -418,3 +418,9 @@ void v7_arch_cp15_set_l2aux_ctrl(u32 l2auxctrl, u32 cpu_midr,
 {
        omap_smc1(OMAP5_SERVICE_L2ACTLR_SET, l2auxctrl);
 }
+
+void v7_arch_cp15_set_acr(u32 acr, u32 cpu_midr, u32 cpu_rev_comb,
+                         u32 cpu_variant, u32 cpu_rev)
+{
+       omap_smc1(OMAP5_SERVICE_ACR_SET, acr);
+}
index 6da8297c7292ec5329196fab082d45f93d9b12a5..7fcb7838940369c8613d1ce731b050a30f3d15d4 100644 (file)
@@ -81,5 +81,6 @@ static inline u32 usec_to_32k(u32 usec)
 }
 
 #define OMAP5_SERVICE_L2ACTLR_SET    0x104
+#define OMAP5_SERVICE_ACR_SET        0x107
 
 #endif