Thread (55 messages) flat view 55 messages, 7 authors, 2007-10-02

Re: [PATCH 01/18] Virtex: Add uartlite bootwrapper driver

From: Peter Korsgaard <jacmet@sunsite.dk>
Date: 2007-10-02 15:04:47

quoted
quoted
quoted
quoted
"Grant" == Grant Likely [off-list ref] writes:
Hi,

 Grant> +static int uartlite_open(void)
 Grant> +{
 Grant> +	/* Clear the RX FIFO */
 Grant> +	out_be32(reg_base + 0x0C, 0x2);
 Grant> +	return 0;
 Grant> +}
 Grant> +
 Grant> +static void uartlite_putc(unsigned char c)
 Grant> +{
 Grant> +	while ((in_be32(reg_base + 0x8) & 0x08) != 0); /* spin */
 Grant> +	out_be32(reg_base + 0x4, c);

RX, TX, STATUS and CONTROL defines for the registers would be nice for
readability.

-- 
Bye, Peter Korsgaard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help