Can UART2DM used for debugging purpose on MSM7x27A?
MSM7x27A have the two UARTDM cores, UART1DM and UART2DM and three Legacy UART cores, UART1, UART2, UART3 exits.
If OEMS board is using the UART1DM for BT, UART1 core can be used console for debugging purpose. Both UART1DM and UART cores are using different GPIOs and UART1DM used for BT chipset mostly.
There is also other option, OEMS can use UART2DM for debugging purpose.
Configuration changes:-
# Do make kernelconfig, Go to Device Drivers --> Character Devices--> Serial Drivers--> "MSM on-chip serial support". Deselect the same.
# In same step above menu, select "MSM UART High Speed: Legacy mode Serial Driver" and "MSM High Speed serial legacy mode console support".
# Also disable SDC4 and SDC3 8-bit support from Device Drivers-->MMC/SD/SDIO Card Support and deselect Qualcomm SDC3 Support from the same.
# Go to System type menu and select Use Shared GPIOs into UART Mode which enables CONFIG_MSM_SHARED_GPIO_FOR_UART2DM.
#Add ttyHSL0 into device/qcom/msm7627a/BoardConfig.mk file or copy below line in the same.
BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200n8 androidboot.hardware=qcom
# Check the .config file Check if CONFIG_SERIAL_MSM=y and CONFIG_SERIAL_MSM_CONSOLE=y are enabled or not.
Using EBI2 Gpios for UART2DM-
The above configuration changes will enable UART2DM with (GPIO_108, GPIO_19, GPIO_20, GPIO_21).
For customer designs that use 8-bit eMMC boot instead (i.e. GPIOs 19-21 and 108 will be used for the 8-bit eMMC boot), then EBI2 interface will be un-used.
Hence customers can make use of UART2_DM port muxed behind EBI2 interface in the case of eMMC boot.
EBI2_A_D_6, EBI2_A_D_7, EBI2_A_D_8, EBI2_A_D_9 can be configured as UART2DM gpio's. Please refer to the Software interface manual for this.
Setting bit 4 of this TMUX_EBI2 register to 1, will allow the usage of UART2_DM port behind EBI2 interface, when the customer design intends to use eMMC boot.
No comments:
Post a Comment