--- zzzz-none-000/linux-2.6.39.4/arch/x86/include/asm/serial.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/arch/x86/include/asm/serial.h 2021-11-10 13:38:14.000000000 +0000 @@ -1,3 +1,10 @@ +/****************************************************************** + + Includes Intel Corporation's changes/modifications dated: 07/2011. + Changed/modified portions - Copyright(c) 2011, Intel Corporation. + +******************************************************************/ + #ifndef _ASM_X86_SERIAL_H #define _ASM_X86_SERIAL_H @@ -8,7 +15,17 @@ * clock, since the 16550A is capable of handling a top speed of 1.5 * megabits/second; but this requires the faster clock. */ +/* + * The following code is for Intel Media SOC Gen3 base support. +*/ +#ifdef CONFIG_GEN3_UART +/* + * The Intel Media SOC Gen3 has a high freqency clock. +*/ +#define BASE_BAUD ( 14745600 / 16 ) +#else #define BASE_BAUD ( 1843200 / 16 ) +#endif /* Standard COM flags (except for COM4, because of the 8514 problem) */ #ifdef CONFIG_SERIAL_DETECT_IRQ @@ -19,11 +36,33 @@ #define STD_COM4_FLAGS ASYNC_BOOT_AUTOCONF #endif +/* + * The following code is for Intel Media SOC Gen3 base support. +*/ +#ifdef CONFIG_GEN3_UART +/* + * Definition of the serial port for Intel Media SOC Gen3. +*/ +#ifdef CONFIG_SMP +#define SERIAL_PORT_DFNS \ + /* UART CLK PORT IRQ FLAGS */ \ + { 0, BASE_BAUD, 0x3F8, 38, STD_COM_FLAGS }, /* ttyS0 */ \ + { 0, BASE_BAUD, 0x2F8, 38, STD_COM_FLAGS }, /* ttyS1 */ \ + { 0, BASE_BAUD, 0x3E8, 38, STD_COM_FLAGS }, /* ttyS2 */ +#else +#define SERIAL_PORT_DFNS \ + /* UART CLK PORT IRQ FLAGS */ \ + { 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS }, /* ttyS0 */ \ + { 0, BASE_BAUD, 0x2F8, 4, STD_COM_FLAGS }, /* ttyS1 */ \ + { 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS }, /* ttyS2 */ +#endif +#else #define SERIAL_PORT_DFNS \ /* UART CLK PORT IRQ FLAGS */ \ { 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS }, /* ttyS0 */ \ { 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS }, /* ttyS1 */ \ { 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS }, /* ttyS2 */ \ { 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS }, /* ttyS3 */ +#endif #endif /* _ASM_X86_SERIAL_H */