]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
bus: ti-sysc: Detect UARTs for SYSC_QUIRK_LEGACY_IDLE quirk on omap4
authorTony Lindgren <tony@atomide.com>
Mon, 16 Apr 2018 17:25:32 +0000 (10:25 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 1 May 2018 13:54:17 +0000 (06:54 -0700)
Starting with omap4, UARTs have different revision register that we need to
detect to enable SYSC_QUIRK_LEGACY_IDLE. Otherwise UARTs won't idle properly.

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c

index b7cf5cdc6891bcaaff48c5189367e5a29c813a92..2cb9dbb537e0e582de7676516c2b8fded06d2a8c 100644 (file)
@@ -880,6 +880,9 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = {
                   SYSC_QUIRK_LEGACY_IDLE),
        SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x00000052, 0xffffffff,
                   SYSC_QUIRK_LEGACY_IDLE),
+       /* Uarts on omap4 and later */
+       SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x50411e03, 0xffffffff,
+                  SYSC_QUIRK_LEGACY_IDLE),
 };
 
 static void sysc_init_revision_quirks(struct sysc *ddata)