HSCIF support
cover HSCIF support
Hi!
This set implements HSCIF support for the r8a7790. Since the Lager board doesn't actually have these wired up -- except HSCIF1, but those pins are needed for the serial console -- it has not received real-world testing. The timing seems to work out, however, and the HSCIF is virtually identical to the SCIF anyway as far as the features actually used by the driver are concerned, so not all that much can go wrong.
The set also contains a patch that switches the SCIFs to the internal clock. While the Lager board does have an external clock and it seems to work with SCIF0, it does not seem to do anything for SCIF1 or the HSCIFs, and the internal clock works just fine for all interfaces.
Comments are welcome.
CU
Uli
Ulrich Hecht (5):
serial: sh-sci: HSCIF support
ARM: shmobile: r8a7790: HSCIF support
sh-pfc: r8a7790: add HSCIF pin groups
ARM: shmobile: r8a7790: don't use external clock for SCIFs
ARM: shmobile: lager: map HSCIF0/1 to unused pins
arch/arm/mach-shmobile/board-lager.c | 4 + arch/arm/mach-shmobile/clock-r8a7790.c | 6 +- arch/arm/mach-shmobile/setup-r8a7790.c | 16 ++- drivers/pinctrl/sh-pfc/pfc-r8a7790.c | 181 ++++++++++++++++++++++++++++++++ drivers/tty/serial/sh-sci.c | 102 ++++++++++++++++-- include/linux/serial_sci.h | 12 ++- include/uapi/linux/serial_core.h | 3 + 7 files changed, 310 insertions(+), 14 deletions(-)
Signature · 1 line
1.7.10.4
Hi Ulrich,
Thanks for your work on this. Just a quick comment regarding testing from me:
Quoted 5 lines · Ulrich Hecht
Hi!
This set implements HSCIF support for the r8a7790. Since the Lager board doesn't actually have these wired up -- except HSCIF1, but those pins are needed for the serial console -- it has not received real-world testing.
I may be misunderstanding, but I believe it should be possible to test these HSCIF patches using the serial console port configured as HSCIF? Or is there any reason why we can't do that?
Cheers,
/ magnus
Quoted 8 lines · Magnus Damm
Quoted 3 lines · Ulrich Hecht
This set implements HSCIF support for the r8a7790. Since the Lager board doesn't actually have these wired up -- except HSCIF1, but those pins are needed for the serial console -- it has not received real-world testing.
I may be misunderstanding, but I believe it should be possible to test these HSCIF patches using the serial console port configured as HSCIF? Or is there any reason why we can't do that?
No, not really. I must have filed that under "dead end" when I tried it earlier and it didn't work (because of the missing BRG clock, but I didn't know that at the time).
Anyway, I tried it and it officially works now.
CU
Uli