| 修改完上面的代码后,就可以在配置文件里添加配置信息,并修改调试调试串口号了。打开/include/configs/davinci_dm6467_evm.c,找到串口配置部分,修改如下: 
  1 /*====================*/
 2 /* Serial Driver info */
 3 /*====================*/
 4 #define CONFIG_SYS_NS16550
 5 #define CONFIG_SYS_NS16550_SERIAL
 6 #define CONFIG_SYS_NS16550_REG_SIZE    4         /* NS16550 register size, byteorder */
 7 //#define CONFIG_SYS_NS16550_COM1        0x01c20000    /* Base address of UART0 */
 8 //#define CONFIG_CONS_INDEX        1        /* use UART0 for console */
 9 //#define CONFIG_SYS_NS16550_COM2        0x01c20400    /* Base address of UART1 */
10 //#define CONFIG_CONS_INDEX        2        /* use UART1 for console */
11 #define CONFIG_SYS_NS16550_COM3        0x01c20800    /* Base address of UART2 */
12 #define CONFIG_CONS_INDEX        3        /* use UART2 for console */
13 #define CONFIG_SYS_NS16550_CLK        24000000    /* Input clock to NS16550 */
14 #define CONFIG_BAUDRATE            115200        /* Default baud rate */
15 #define CONFIG_SYS_BAUDRATE_TABLE    { 9600, 19200, 38400, 57600, 115200 }
 |