Difference between revisions of "Hammer Uart2 Configuration"

From eLinux.org
Jump to: navigation, search
m (Using UART2 moved to Hammer Uart2 Configuration: wiki pages are shared with other projects, need hammer specific page name)
(No difference)

Revision as of 09:19, 16 June 2008

It seems that the default setting for the Hammer board is to use RXD2 and TXD2 as RTS and CTS for UART1, which is not available. If you want to have access to UART2 using /dev/ttySAC2 then you need to make a small modification to arch/arm/mach-s3c2410/mach-tct_hammer.c

Add the following lines to the tct_hammer_init function:

       s3c2410_gpio_cfgpin(S3C2410_GPH6, S3C2410_GPH6_TXD2);
       s3c2410_gpio_pullup(S3C2410_GPH6, 1);
       s3c2410_gpio_cfgpin(S3C2410_GPH7, S3C2410_GPH7_RXD2);
       s3c2410_gpio_pullup(S3C2410_GPH7, 1);