From: Thomas Chou <thomas@wytron.com.tw>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: nios2-dev@sopc.et.ntust.edu.tw,
Tobias Klauser <tklauser@distanz.ch>,
gregkh@suse.de, linux-kernel@vger.kernel.org,
linux-serial@vger.kernel.org
Subject: Re: [Nios2-dev] [PATCHv3 1/2] serial: Add driver for the Altera JTAG UART
Date: Tue, 16 Mar 2010 08:47:43 +0800 [thread overview]
Message-ID: <4B9ED52F.6050407@wytron.com.tw> (raw)
In-Reply-To: <20100312124835.724eb806.akpm@linux-foundation.org>
On 03/13/2010 04:48 AM, Andrew Morton wrote:
>> +config SERIAL_ALTERA_JTAGUART
>> + 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
next prev parent reply other threads:[~2010-03-16 1:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-05 16:52 [PATCHv3 0/2] serial: Drivers for Altera UARTs Tobias Klauser
2010-03-05 16:52 ` [PATCHv3 1/2] serial: Add driver for the Altera JTAG UART Tobias Klauser
2010-03-12 20:48 ` Andrew Morton
2010-03-15 10:20 ` Tobias Klauser
2010-03-15 10:24 ` [Nios2-dev] " waltergoossens
2010-03-16 0:47 ` Thomas Chou [this message]
2010-03-05 16:52 ` [PATCHv3 2/2] serial: Add driver for the Altera UART Tobias Klauser
2010-03-23 21:54 ` Andrew Morton
2010-03-24 6:47 ` Tobias Klauser
2010-03-24 11:05 ` Andrew Morton
2010-03-24 16:24 ` Tobias Klauser
2010-03-25 0:54 ` Thomas Chou
2010-03-29 13:29 ` Tobias Klauser
2010-03-30 0:18 ` Thomas Chou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B9ED52F.6050407@wytron.com.tw \
--to=thomas@wytron.com.tw \
--cc=akpm@linux-foundation.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=nios2-dev@sopc.et.ntust.edu.tw \
--cc=tklauser@distanz.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox