2011-06-29 14:13:07     BF537-STAMP Adding UART drivers / Board Support

Document created by Aaronwu Employee on Aug 27, 2013
Version 1Show Document
  • View in full screen mode

2011-06-29 14:13:07     BF537-STAMP Adding UART drivers / Board Support


Message: 101869   


I am at a bit of a loss as where to start, but I will attempt to explain what I want to do:


I have a BF537-STAMP board I have been poking around with quite a bit, and I have a good feeling for the hardware pieces on the stock board.  I want to add a tertiary UART to the ASYNC Memory Bank.  I am planning on using a 16550 compatible TL16C754B that should allow me to use the existing serial_8250.h driver.  For the sake of the argument, I will just assume to use the ASYNC bank #2 (memory map of 0x20100000 to 0x201FFFFF), and I will only be using one of the 4 UARTs from the TL16C754B. 


Electrically, I will be tying A1-A3 from the BF537-STAMP to A0-A2 of the TL16C754B. /AMS1 will connect to the first UART's chip select.  Similarly, I know D0-D8 of the bfin route to D0-D8 of the TL16C754B, though I am not sure where to tie the interrupts into the bfin.  I can figure these portions out.


What I do not have a good handle on is correctly modifying <uclinux-dist>/arch/blackfin/mach-bf537/boards/stamp-uart.c.  I have copied stamp.c to stamp-uart.c and follow the directions from https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:customizing_for_your_board.




I have added the following sections:


#include <linux/serial_8250.h>




I know I am not correctly doing this, and do not expect this even to come close to working


#if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE)

struct uart_port bfin_mmaped_uarts = {

    .uartclk = 1843200*14,

    .mapbase = 0x20100000, //ASYNC bank 1




In the creation of stamp_devices[]:


#if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE)






Are there any solid resources on how to configure the nessary files so I can add a few UARTs, or pointers on how to begin?






2011-06-29 15:32:30     Re: BF537-STAMP Adding UART drivers / Board Support

Mike Frysinger (UNITED STATES)

Message: 101870   


look at arch/blackfin/mach-bf533/boards/H8606.c.  they're using two uarts connected via the async bank.