Vikram,
> -----Original Message-----
> From: [email protected] [mailto:linux-omap-
> [email protected]] On Behalf Of Pandita, Vikram
> Sent: Saturday, September 19, 2009 6:10 AM
> To: [email protected]; [email protected]
> Cc: Pandita, Vikram; Russell King; Kevin Hilman
> Subject: [PATCH 1/2] OMAP1/2/3/4: DEBUG_LL run time detection
> +u32 get_uart_base(void)
> +{
> + static u32 omap_uart_debug_ll_phy_addr;
> +
> + if (omap_uart_debug_ll_phy_addr)
> + return omap_uart_debug_ll_phy_addr;
> +
> + /* Add logic here for new platforms, using __machine_arch_type */
> +
> + /* TODO: REVISIT -- Check Completeness
> + * DEFINE PHY ADDRESS for EACH BOARD HERE: omap1/2/3/4 */
> +#if defined(CONFIG_ARCH_OMAP1)
> + switch (__machine_arch_type) {
> + case MACH_TYPE_OMAP_PALMTT:
> + case MACH_TYPE_SX1:
> + /* UART2 */
> + omap_uart_debug_ll_phy_addr = (u32 *)0xfffb0800;
> + break;
> + default:
> + /* UART1 */
> + omap_uart_debug_ll_phy_addr = (u32 *)0xfffb0000;
> + break;
> + }
> +#endif
> +
> +#if defined(CONFIG_ARCH_OMAP2)
> + switch (__machine_arch_type) {
> + case MACH_TYPE_NOKIA_N800:
> + case MACH_TYPE_NOKIA_N810:
> + case MACH_TYPE_NOKIA_N810_WIMAX:
> + /* UART3 */
> + omap_uart_debug_ll_phy_addr = (u32 *)0x4806e000;
> + break;
> + default:
> + /* UART1 */
> + omap_uart_debug_ll_phy_addr = (u32 *)0x4806a000;
> + break;
> + }
> +#endif
> +
> +#if defined(CONFIG_ARCH_OMAP3)
> + switch (__machine_arch_type) {
> + case MACH_TYPE_OMAP_LDP:
> + case MACH_TYPE_OVERO:
> + case MACH_TYPE_OMAP3_PANDORA:
> + case MACH_TYPE_NOKIA_RX51:
> + case MACH_TYPE_OMAP3_BEAGLE:
> + /* UART3 */
> + omap_uart_debug_ll_phy_addr = 0x49020000;
> + break;
> + case MACH_TYPE_OMAP_ZOOM2:
> + /* EXTERNEL UART */
> + omap_uart_debug_ll_phy_addr = 0x10000000;
> + break;
> + default:
> + /* UART1 */
> + omap_uart_debug_ll_phy_addr = 0x4806a000;
> + break;
> + }
> +#endif
> +
> +#ifdef CONFIG_ARCH_OMAP4
> + switch (__machine_arch_type) {
> + /* OMAP3: UART1 */
> + case MACH_TYPE_OMAP_4430SDP:
> + default:
> + omap_uart_debug_ll_phy_addr = (u32 *)0x4806a000;
> + break;
> + }
> +#endif
> +
> + return omap_uart_debug_ll_phy_addr;
> +}
This makes only UART1 as a DEBUG_LL option for OMAP4. Will we not have options
any more to select rest of the UARTs for DEBUG_LL as it was supported with
previous Russell's implementation?
Regards,
Santosh
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html