bus: ti-sysc: Ignore timer12 on secure omap3
[sfrench/cifs-2.6.git] / drivers / bus / ti-sysc.c
index e5f5f48d69d2fa771660256448301478a6be7cf8..a81a9f10fde775cbd46f01c14fd5b9060be450fd 100644 (file)
@@ -2744,6 +2744,17 @@ static int sysc_init_soc(struct sysc *ddata)
        if (match && match->data)
                sysc_soc->soc = (int)match->data;
 
+       /* Ignore devices that are not available on HS and EMU SoCs */
+       if (!sysc_soc->general_purpose) {
+               switch (sysc_soc->soc) {
+               case SOC_3430 ... SOC_3630:
+                       sysc_add_disabled(0x48304000);  /* timer12 */
+                       break;
+               default:
+                       break;
+               };
+       }
+
        match = soc_device_match(sysc_soc_feat_match);
        if (!match)
                return 0;