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" ?+config SERIAL_ALTERA_JTAGUARTSo this driver will be available on all CPU architectures.
+ bool "Altera JTAG UART support"
+ select SERIAL_CORE
+ help
+ This driver supports the Altera JTAG UART port.
+
I'm guessing that the hardware _isn't_ available on all CPU
architectures? Maybe that's wrong.
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" .+#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/?