Skip to content

Commit a677d87

Browse files
committed
Merge tag 'omap-for-v6.19/drivers-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap into soc/drivers
ti-sysc: allow OMAP2 and OMAP4 timers to be reserved on AM33xx * tag 'omap-for-v6.19/drivers-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap: ti-sysc: allow OMAP2 and OMAP4 timers to be reserved on AM33xx Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 0363169 + 3f61783 commit a677d87

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

drivers/bus/ti-sysc.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ enum sysc_soc {
4848
SOC_UNKNOWN,
4949
SOC_2420,
5050
SOC_2430,
51+
SOC_AM33,
5152
SOC_3430,
5253
SOC_AM35,
5354
SOC_3630,
@@ -2912,6 +2913,7 @@ static void ti_sysc_idle(struct work_struct *work)
29122913
static const struct soc_device_attribute sysc_soc_match[] = {
29132914
SOC_FLAG("OMAP242*", SOC_2420),
29142915
SOC_FLAG("OMAP243*", SOC_2430),
2916+
SOC_FLAG("AM33*", SOC_AM33),
29152917
SOC_FLAG("AM35*", SOC_AM35),
29162918
SOC_FLAG("OMAP3[45]*", SOC_3430),
29172919
SOC_FLAG("OMAP3[67]*", SOC_3630),
@@ -3117,10 +3119,15 @@ static int sysc_check_active_timer(struct sysc *ddata)
31173119
* can be dropped if we stop supporting old beagleboard revisions
31183120
* A to B4 at some point.
31193121
*/
3120-
if (sysc_soc->soc == SOC_3430 || sysc_soc->soc == SOC_AM35)
3122+
switch (sysc_soc->soc) {
3123+
case SOC_AM33:
3124+
case SOC_3430:
3125+
case SOC_AM35:
31213126
error = -ENXIO;
3122-
else
3127+
break;
3128+
default:
31233129
error = -EBUSY;
3130+
}
31243131

31253132
if ((ddata->cfg.quirks & SYSC_QUIRK_NO_RESET_ON_INIT) &&
31263133
(ddata->cfg.quirks & SYSC_QUIRK_NO_IDLE))

0 commit comments

Comments
 (0)