Skip to contentSkip to conversation

Nios2: Altera JATAG UART

PATCH Superseded Juro Bystricky 2 participants 4 messages Feb 8, 2017

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

v2 cover Nios2: Altera JATAG UART

Second version, had to remove a long web link (over 90 chars).

Juro Bystricky (1):
nios2: Add Altera JTAG UART emulation

 default-configs/nios2-softmmu.mak |   1 +
 hw/char/Makefile.objs             |   1 +
 hw/char/altera_juart.c            | 265 ++++++++++++++++++++++++++++++++++++++
 include/hw/char/altera_juart.h    |  44 +++++++
 4 files changed, 311 insertions(+)
 create mode 100644 hw/char/altera_juart.c
 create mode 100644 include/hw/char/altera_juart.h
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/1 nios2: Add Altera JTAG UART emulation

Hardware emulation based on:
https://www.altera.com/en_US/pdfs/literature/ug/ug_embedded_ip.pdf

---
 default-configs/nios2-softmmu.mak |   1 +
 hw/char/Makefile.objs             |   1 +
 hw/char/altera_juart.c            | 265 ++++++++++++++++++++++++++++++++++++++
 include/hw/char/altera_juart.h    |  44 +++++++
 4 files changed, 311 insertions(+)
 create mode 100644 hw/char/altera_juart.c
 create mode 100644 include/hw/char/altera_juart.h
default-configs/nios2-softmmu.mak +1 -0
index 74dc70c..6159846 100644
@@ -4,3 +4,4 @@ CONFIG_NIOS2=y
 CONFIG_SERIAL=y
 CONFIG_PTIMER=y
 CONFIG_ALTERA_TIMER=y
+CONFIG_ALTERA_JUART=y
hw/char/Makefile.objs +1 -0
index 6ea76fe..f0d0e25 100644
@@ -27,5 +27,6 @@ common-obj-$(CONFIG_LM32) += lm32_juart.o
 common-obj-$(CONFIG_LM32) += lm32_uart.o
 common-obj-$(CONFIG_MILKYMIST) += milkymist-uart.o
 common-obj-$(CONFIG_SCLPCONSOLE) += sclpconsole.o sclpconsole-lm.o
+common-obj-$(CONFIG_ALTERA_JUART) += altera_juart.o
 
 obj-$(CONFIG_VIRTIO) += virtio-serial-bus.o
hw/char/altera_juart.c new file +265 -0

265 lines not on this page · raw message

include/hw/char/altera_juart.h new file +44 -0

44 lines not on this page · raw message

Signature · 1 line
2.7.4
#2 lore raw
In reply to Juro Bystricky
Quoted 1 line · Juro Bystricky

Second version, had to remove a long web link (over 90 chars).

Can we have the version with the URL, please? Checkpatch isn't infallible, and usually its errors are more of a "look at this and see if it's fixable" than an unwaivable requirement.

In this case the URL is clearly useful information for future readers and it can't be folded, so the over-long line is fine.

thanks
-- PMM

#3 lore raw

no problem, just sent in a patch v3.
I found a shorter link, so it should keep
checkaptch happy as well.

Quoted 23 lines

-----Original Message-----
From: Peter Maydell [mailto:[email protected]]
Sent: Wednesday, February 8, 2017 3:00 PM
To: Bystricky, Juro <[email protected]>
Cc: QEMU Developers <[email protected]>; Marek Vasut <[email protected]>; [email protected]; Chris Wulff <[email protected]>
Subject: Re: [Qemu-devel] [PATCH v2 0/1] Nios2: Altera JATAG UART

Quoted 1 line · Juro Bystricky

Second version, had to remove a long web link (over 90 chars).

Can we have the version with the URL, please? Checkpatch isn't infallible, and usually its errors are more of a "look at this and see if it's fixable" than an unwaivable requirement.

In this case the URL is clearly useful information for future readers and it can't be folded, so the over-long line is fine.

thanks
-- PMM