[lkml]   [2010]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [Nios2-dev] [PATCHv3 1/2] serial: Add driver for the Altera JTAG UART
On 03/13/2010 04:48 AM, Andrew Morton wrote:
>> + bool "Altera JTAG UART support"
>> + select SERIAL_CORE
>> + help
>> + This driver supports the Altera JTAG UART port.
>> +
> So this driver will be available on all CPU architectures.
> I'm guessing that the hardware _isn't_ available on all CPU
> architectures? Maybe that's wrong.
It is true that this driver is used mostly with nios2, soft-core
coldfire and arm. But peripherals on FPGA can be made available to
almost any CPU architecture. So I think it might make sense to let it
available to all. Or should we put a "default n" ?

>> +#include<linux/platform_device.h>
>> +#include<linux/io.h>
>> +#include<linux/altera_jtaguart.h>
> Does it make sense to put altera_jtaguart.h into include/linux? Could
> we put it in drivers/serial/?
There is only a platform data structure declaration in the header, which
should be passed through platform device data to the driver. If we put
it in drivers/serial/, then we will need to include
"../../../drivers/serial/altera_jtaguart.h" .

I have written this driver in parallel with the altera_uart driver. We
could have passed the data ( base, irq, freq ) using platform resources.
But I don't know if there is a way to pass ( freq )? Please let me know
if you have any suggestions.

- Thomas

 \ /
  Last update: 2010-03-16 02:33    [W:0.067 / U:5.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site