Skip to content

Commit 4bba9bf

Browse files
committed
bus: ti-sysc: Ignore timer12 on secure omap3
Some early omap3 boards use timer12 for system timer, but for secure SoCs like on n900 it's not accessible. Likely we will be configuring unavailable devices for other SoCs too based on runtime SoC detection, so let's use a switch to start with. Cc: Grygorii Strashko <[email protected]> Cc: Keerthy <[email protected]> Cc: Lokesh Vutla <[email protected]> Cc: Rob Herring <[email protected]> Cc: Tero Kristo <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 16aed29 commit 4bba9bf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/bus/ti-sysc.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2744,6 +2744,17 @@ static int sysc_init_soc(struct sysc *ddata)
27442744
if (match && match->data)
27452745
sysc_soc->soc = (int)match->data;
27462746

2747+
/* Ignore devices that are not available on HS and EMU SoCs */
2748+
if (!sysc_soc->general_purpose) {
2749+
switch (sysc_soc->soc) {
2750+
case SOC_3430 ... SOC_3630:
2751+
sysc_add_disabled(0x48304000); /* timer12 */
2752+
break;
2753+
default:
2754+
break;
2755+
};
2756+
}
2757+
27472758
match = soc_device_match(sysc_soc_feat_match);
27482759
if (!match)
27492760
return 0;

0 commit comments

Comments
 (0)