Skip to content

Commit 11bbd5b

Browse files
mibrunnergregkh
authored andcommitted
pch_uart: Add Kontron COMe-mTT10 uart clock quirk
Add UART clock quirk for the Kontron COMe-mTT10 module. The board has previously been called nanoETXexpress-TT, therefore this is also checked. As suggested by Darren Hart the comparison in this patch version is placed after the FRI2 checks to ensure it will also work with possible upcoming changes to the FRI2 firmware. This patch follows the patchset submitted by Darren Hart at commit a46f553. Signed-off-by: Michael Brunner <[email protected]> Acked-by: Darren Hart <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 867c902 commit 11bbd5b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/tty/serial/pch_uart.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ enum {
210210
#define CMITC_UARTCLK 192000000 /* 192.0000 MHz */
211211
#define FRI2_64_UARTCLK 64000000 /* 64.0000 MHz */
212212
#define FRI2_48_UARTCLK 48000000 /* 48.0000 MHz */
213+
#define NTC1_UARTCLK 64000000 /* 64.0000 MHz */
213214

214215
struct pch_uart_buffer {
215216
unsigned char *buf;
@@ -388,6 +389,12 @@ static int pch_uart_get_uartclk(void)
388389
if (cmp && strstr(cmp, "Fish River Island II"))
389390
return FRI2_48_UARTCLK;
390391

392+
/* Kontron COMe-mTT10 (nanoETXexpress-TT) */
393+
cmp = dmi_get_system_info(DMI_BOARD_NAME);
394+
if (cmp && (strstr(cmp, "COMe-mTT") ||
395+
strstr(cmp, "nanoETXexpress-TT")))
396+
return NTC1_UARTCLK;
397+
391398
return DEFAULT_UARTCLK;
392399
}
393400

0 commit comments

Comments
 (0)