On 24/3/2012 7:01 μμ, Conor O'Gorman wrote:
On Thu, 2012-03-22 at 18:44 +0100, John Crispin wrote:
On 22/03/12 17:48, Spyridon Tompros wrote:
As a workaround We've tried to implement another USB port by using an
external Vinculum VNC1L Chip. It works connected to a serial port. The
problem we encounter now is that the UART0 port of the Danube seems
dead.... We discovered that even if we write the respective register
(MCON), it remains incactive. Moreover we've tried to include the UART0
as console from the make menuconfig util and the result was the same.

Has anybody activated the second serial port of Danube?

Hi,

It has worked in the past, but i have not tried it in a while, i have a
twinpass baord with 2 serial ports and will add this on my todo list for
tomorrow

Might be a problem in (not) setting the PMU_PWDSR (Power Down Register).
UART0 appears to default to off. Might be some CGU actions needed also.

Conor


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

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
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to