mx6qsabreauto.h:#define CONFIG_MXC_UART_BASE UART4_BASE mx6sabresd.h: #define CONFIG_MXC_UART_BASE UART1_BASE mx6slevk.h:#define CONFIG_MXC_UART_BASE UART1_IPS_BASE_ADDR mx6sx_arm2.h:#define CONFIG_MXC_UART_BASE UART1_BASE mx6sxsabreauto.h:#define CONFIG_MXC_UART_BASE UART1_BASE mx6sxsabresd.h:#define CONFIG_MXC_UART_BASE UART1_BASE
所以 auto 是 UART4, SD是 UART1
這是included by..include/config.h
內容是..
/* Automatically generated - do not edit */ #define CONFIG_IMX_CONFIG board/freescale/mx6qsabreauto/mx6solo.cfg #define CONFIG_MX6SOLO 1 #define CONFIG_DEFAULT_FDT_FILE "imx6dl-sabreauto.dtb" #define CONFIG_DDR_MB 1024 #define CONFIG_SYS_BOOT_NAND 1 #define CONFIG_SYS_NOSMP "nosmp" #define CONFIG_SYS_ARCH "arm" #define CONFIG_SYS_CPU "armv7" #define CONFIG_SYS_BOARD "mx6qsabreauto" #define CONFIG_SYS_VENDOR "freescale" #define CONFIG_SYS_SOC "mx6" #define CONFIG_BOARDDIR board/freescale/mx6qsabreauto #include < config_cmd_defaults.h > #include < config_defaults.h > #include < configs/mx6qsabreauto.h > #include < asm/config.h > #include < config_fallbacks.h > #include < config_uncmd_spl.h >
這是由 mkconfig 產生...
... cat << EOF >> config.h #include < config_cmd_defaults.h > #include < config_defaults.h > #include < configs/${CONFIG_NAME}.h > #include < asm/config.h > ...
其中 CONFIG_NAME 就是..
if [ "$options" ] ; then echo "Configuring for ${BOARD_NAME} - Board: ${CONFIG_NAME}, Options: ${options}" else
還有 pad mux 的部份:
./mx6qsabreauto/mx6qsabreauto.c:326: static void setup_iomux_uart(void) ./mx6sabresd /mx6sabresd.c :250: static void setup_iomux_uart(void)
沒有留言:
張貼留言