From: Harald Welte Date: Sun, 6 Apr 2008 12:04:21 +0200 Subject: [U-Boot-Users] s3c2440 -- serial_init In-Reply-To: <331126.21783.qm@web94613.mail.in2.yahoo.com> References: <331126.21783.qm@web94613.mail.in2.yahoo.com> Message-ID: <20080406100421.GF3574@prithivi.gnumonks.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Mar 28, 2008 at 04:58:37PM +0530, Tiju wrote: > Hi all > > I am trying to port u-boot to a s3c2440 samsung processor. > > I applied the smdk2440 boards patch (almost similar architecture) and > trying to modify it for our board's requirement. But during the > serial_init it goes to the _serial_putc and then after certain loops > it goes to the hang function and hangs there. this sounds like a flow control issue. The s3c24xx boards support hardware flow control handling, i.e. their TX FIFO will not transmit any more characters unless the RTS/CTS handshake allows it to. Since the u-boot serial code does an endless loop waiting for the next character, it will busy-wait there. Please note that this is true even for UARTs that don't even have RTS/CTS. Don't use hw flow control on them. Another possible cause could be lack of proper GPIO configuration for the RTS/CTS pins, missing connection on the board, broken serial cable. Basically anthing that affects RTS/CTS from within the s3c24xx and the PC on the other side. -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.denx.de/pipermail/u-boot/attachments/20080406/ba4eb1bf/attachment.pgp