> Hi we solved the problem thanks to your suggestion. However setting of
> this reg. has to happen timely!!!
> We found that it works if it is written in (backfire r27450):
> --------------------------------------------------------------
> linux-2.6.30.10/arch/mips/ifxmips/setup.c - OpenWrt Backfire (r27450)
> in function plat_time_init
> printk("Enabling UART_0 via PWDCR\n");
> ifxmips_pmu_enable(IFXMIPS_PMU_PWDCR_UART_0);
> 
> 
> linux-2.6.30.10/arch/mips/include/asm/mach-ifxmips/ifxmips_pmu.h
> #define IFXMIPS_PMU_PWDCR_UART_0 0x0080
> -----------------
> 
> You need also to do in linux-2.6.30.10/drivers/leds/leds-ifxmips.c:
> --------------
> ifxmips_port_set_altsel0(IFXMIPS_LED_GPIO_PORT, 11);
> ifxmips_port_clear_altsel1(IFXMIPS_LED_GPIO_PORT, 11);
> ifxmips_port_set_dir_in(IFXMIPS_LED_GPIO_PORT, 11);
> ifxmips_port_clear_open_drain(IFXMIPS_LED_GPIO_PORT, 11);
> ifxmips_port_set_puden(IFXMIPS_LED_GPIO_PORT, 11);
> ifxmips_port_set_pudsel(IFXMIPS_LED_GPIO_PORT, 11);
> ifxmips_port_set_altsel0(IFXMIPS_LED_GPIO_PORT, 12);
> ifxmips_port_clear_altsel1(IFXMIPS_LED_GPIO_PORT, 12);
> ifxmips_port_set_dir_out(IFXMIPS_LED_GPIO_PORT, 12);
> ifxmips_port_set_open_drain(IFXMIPS_LED_GPIO_PORT, 12);
> ifxmips_port_clear_puden(IFXMIPS_LED_GPIO_PORT, 12);
> -----------------
> Spyros

thanks i will rebase this and merge it in the upstream queue

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to