gt;
> static inline u16 litex_read16(void __iomem *reg)
> {
> - return (READ_LITEX_SUBREGISTER(reg, 0) << 8)
> - | (READ_LITEX_SUBREGISTER(reg, 1));
> + return litex_get_reg(reg, sizeof(u16));
> }
>
> static inline u32 litex_read32(void __iomem *reg)
> {
> - return (READ_LITEX_SUBREGISTER(reg, 0) << 24)
> - | (READ_LITEX_SUBREGISTER(reg, 1) << 16)
> - | (READ_LITEX_SUBREGISTER(reg, 2) << 8)
> - | (READ_LITEX_SUBREGISTER(reg, 3));
> + return litex_get_reg(reg, sizeof(u32));
> }
>
> static inline u64 litex_read64(void __iomem *reg)
> {
> - return ((u64)READ_LITEX_SUBREGISTER(reg, 0) << 56)
> - | ((u64)READ_LITEX_SUBREGISTER(reg, 1) << 48)
> - | ((u64)READ_LITEX_SUBREGISTER(reg, 2) << 40)
> - | ((u64)READ_LITEX_SUBREGISTER(reg, 3) << 32)
> - | ((u64)READ_LITEX_SUBREGISTER(reg, 4) << 24)
> - | ((u64)READ_LITEX_SUBREGISTER(reg, 5) << 16)
> - | ((u64)READ_LITEX_SUBREGISTER(reg, 6) << 8)
> - | ((u64)READ_LITEX_SUBREGISTER(reg, 7));
> + return litex_get_reg(reg, sizeof(u64));
> }
>
> #endif /* _LINUX_LITEX_H */
> --
> 2.26.2
Best,
Mateusz
--
Mateusz Holenko
Antmicro Ltd | www.antmicro.com
Roosevelta 22, 60-829 Poznan, Poland
: Mateusz Holenko
Reviewed-by: Greg Kroah-Hartman
---
Notes:
Changes in v12:
- added xa_erase call in remove function
- used devm_kzalloc instead of kzalloc
- simplified probe implementation
- switched to non-loop based LiteX CSR accessors
- switched config dependency from
From: Filip Kokosinski
Add documentation for LiteUART devicetree bindings.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
Reviewed-by: Rob Herring
---
Notes:
Changes in v12:
- fixed the description in the yaml file
No changes in v11.
No changes in v10
From: Pawel Czarnecki
This commit adds driver for the FPGA-based LiteX SoC
Controller from LiteX SoC builder.
Co-developed-by: Mateusz Holenko
Signed-off-by: Mateusz Holenko
Signed-off-by: Pawel Czarnecki
---
Notes:
Changes in v12:
- removed unnecssary WARN on a failed validation
This patchset introduces support for LiteX SoC Controller
and LiteUART - serial device from LiteX SoC builder
(https://github.com/enjoy-digital/litex).
In the following patchset I will add
a new mor1kx-based (OpenRISC) platform that
uses this device.
Later I plan to extend this platform by
adding
From: Pawel Czarnecki
Add documentation for LiteX SoC Controller bindings.
Signed-off-by: Pawel Czarnecki
Signed-off-by: Mateusz Holenko
Reviewed-by: Rob Herring
---
Notes:
Changes in v12:
- fixed the description and the example in the yaml file
No changes in v11.
No
From: Filip Kokosinski
Add vendor prefix for LiteX SoC builder.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
Acked-by: Rob Herring
---
Notes:
No changes in v12.
No changes in v11.
No changes in v10.
No changes in v9.
No changes in v8.
No
On Tue, Oct 6, 2020 at 10:38 AM Geert Uytterhoeven wrote:
>
> Hi Mateusz,
>
> On Tue, Oct 6, 2020 at 10:02 AM Mateusz Holenko wrote:
> > On Fri, Sep 25, 2020 at 3:16 PM Geert Uytterhoeven
> > wrote:
> > > On Wed, Sep 23, 2020 at 12:10 PM Mateusz Holenko
Hi Gabriel,
On Fri, Sep 25, 2020 at 5:06 PM Gabriel L. Somlo wrote:
>
> Hi Geert, Mateusz,
>
> On Fri, Sep 25, 2020 at 03:16:02PM +0200, Geert Uytterhoeven wrote:
> > Hi Mateusz,
> >
> > On Wed, Sep 23, 2020 at 12:10 PM Mateusz Holenko
> > wrote:
> >
Hi Geert,
On Fri, Sep 25, 2020 at 3:16 PM Geert Uytterhoeven wrote:
>
> Hi Mateusz,
>
> On Wed, Sep 23, 2020 at 12:10 PM Mateusz Holenko
> wrote:
> > From: Pawel Czarnecki
> >
> > This commit adds driver for the FPGA-based LiteX SoC
> > Controller from
Hi Geert,
On Fri, Sep 25, 2020 at 3:41 PM Geert Uytterhoeven wrote:
>
> Hi Mateusz,
>
> On Wed, Sep 23, 2020 at 12:12 PM Mateusz Holenko
> wrote:
> > From: Filip Kokosinski
> >
> > This commit adds driver for the FPGA-based LiteUART serial controller
> &
Hi Geert,
On Fri, Sep 25, 2020 at 3:16 PM Geert Uytterhoeven wrote:
>
> Hi Mateusz,
>
> On Wed, Sep 23, 2020 at 12:10 PM Mateusz Holenko
> wrote:
> > From: Filip Kokosinski
> >
> > Add documentation for LiteUART devicetree bindings.
> >
> > Signe
Hi Jonathan,
thanks for your review!
On Wed, Sep 23, 2020 at 1:58 PM Jonathan Cameron
wrote:
>
> On Wed, 23 Sep 2020 12:09:06 +0200
> Mateusz Holenko wrote:
>
> > From: Pawel Czarnecki
> >
> > This commit adds driver for the FPGA-based LiteX SoC
> &g
Hi Geert,
On Fri, Sep 25, 2020 at 2:48 PM Geert Uytterhoeven wrote:
>
> Hi Mateusz,
>
> On Wed, Sep 23, 2020 at 12:09 PM Mateusz Holenko
> wrote:
> > From: Pawel Czarnecki
> >
> > Add documentation for LiteX SoC Controller bindings.
> >
> > Sign
From: Pawel Czarnecki
This commit adds driver for the FPGA-based LiteX SoC
Controller from LiteX SoC builder.
Co-developed-by: Mateusz Holenko
Signed-off-by: Mateusz Holenko
Signed-off-by: Pawel Czarnecki
---
Notes:
Changes in v11:
- removed an unnecessary comment left over from
From: Filip Kokosinski
Add documentation for LiteUART devicetree bindings.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
Reviewed-by: Rob Herring
---
Notes:
No changes in v11.
No changes in v10.
No changes in v9.
No changes in v8.
No changes in v7
: Mateusz Holenko
Reviewed-by: Greg Kroah-Hartman
---
Notes:
Changes in v11:
- added Reviewed-by tag
No changes in v10.
No changes in v9.
Changes in v8:
- fixed help messages in LiteUART's KConfig
- removed dependency between LiteUART and LiteX SoC dr
From: Pawel Czarnecki
Add documentation for LiteX SoC Controller bindings.
Signed-off-by: Pawel Czarnecki
Signed-off-by: Mateusz Holenko
Reviewed-by: Rob Herring
---
Notes:
No changes in v11.
No changes in v10.
Changes in v9:
- fixed the `reg` node notation in the DT
This patchset introduces support for LiteX SoC Controller
and LiteUART - serial device from LiteX SoC builder
(https://github.com/enjoy-digital/litex).
In the following patchset I will add
a new mor1kx-based (OpenRISC) platform that
uses this device.
Later I plan to extend this platform by
adding
From: Filip Kokosinski
Add vendor prefix for LiteX SoC builder.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
Acked-by: Rob Herring
---
Notes:
No changes in v11.
No changes in v10.
No changes in v9.
No changes in v8.
No changes in v7.
No changes
On Mon, Sep 14, 2020 at 3:24 PM Stafford Horne wrote:
>
> On Mon, Sep 14, 2020 at 12:33:11PM +0200, Mateusz Holenko wrote:
> > On Fri, Sep 11, 2020 at 2:57 AM Stafford Horne wrote:
> > >
> > > On Wed, Aug 12, 2020 at 02:34:34PM +0200, Mateusz Holenko wrote:
On Fri, Sep 11, 2020 at 2:57 AM Stafford Horne wrote:
>
> On Wed, Aug 12, 2020 at 02:34:34PM +0200, Mateusz Holenko wrote:
> > From: Pawel Czarnecki
> >
> > This commit adds driver for the FPGA-based LiteX SoC
> > Controller from LiteX SoC builder.
> >
From: Filip Kokosinski
Add documentation for LiteUART devicetree bindings.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
Reviewed-by: Rob Herring
---
Notes:
No changes in v10.
No changes in v9.
No changes in v8.
No changes in v7.
Changes in v6
: Mateusz Holenko
---
Notes:
No changes in v10.
No changes in v9.
Changes in v8:
- fixed help messages in LiteUART's KConfig
- removed dependency between LiteUART and LiteX SoC drivers
Changed in v7:
- added missing include directive
Changes in v6:
- Lit
From: Pawel Czarnecki
This commit adds driver for the FPGA-based LiteX SoC
Controller from LiteX SoC builder.
Co-developed-by: Mateusz Holenko
Signed-off-by: Mateusz Holenko
Signed-off-by: Pawel Czarnecki
---
Notes:
Changes in v10:
- added casting to avoid sparse warnings in the SoC
From: Pawel Czarnecki
Add documentation for LiteX SoC Controller bindings.
Signed-off-by: Pawel Czarnecki
Signed-off-by: Mateusz Holenko
Reviewed-by: Rob Herring
---
Notes:
No changes in v10.
Changes in v9:
- fixed the `reg` node notation in the DT example
No changes
From: Filip Kokosinski
Add vendor prefix for LiteX SoC builder.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
Acked-by: Rob Herring
---
Notes:
No changes in v10.
No changes in v9.
No changes in v8.
No changes in v7.
No changes in v6.
No changes
This patchset introduces support for LiteX SoC Controller
and LiteUART - serial device from LiteX SoC builder
(https://github.com/enjoy-digital/litex).
In the following patchset I will add
a new mor1kx-based (OpenRISC) platform that
uses this device.
Later I plan to extend this platform by
adding
From: Filip Kokosinski
Add documentation for LiteUART devicetree bindings.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
Reviewed-by: Rob Herring
---
Notes:
No changes in v9.
No changes in v8.
No changes in v7.
Changes in v6:
- fixed license header
: Mateusz Holenko
---
Notes:
No changes in v9.
Changes in v8:
- fixed help messages in LiteUART's KConfig
- removed dependency between LiteUART and LiteX SoC drivers
Changed in v7:
- added missing include directive
Changes in v6:
- LiteUART ports now stor
From: Pawel Czarnecki
This commit adds driver for the FPGA-based LiteX SoC
Controller from LiteX SoC builder.
Co-developed-by: Mateusz Holenko
Signed-off-by: Mateusz Holenko
Signed-off-by: Pawel Czarnecki
---
Notes:
Changes in v9:
- added exporting of the `litex_set_reg
From: Pawel Czarnecki
Add documentation for LiteX SoC Controller bindings.
Signed-off-by: Pawel Czarnecki
Signed-off-by: Mateusz Holenko
Reviewed-by: Rob Herring
---
Notes:
Changes in v9:
- fixed the `reg` node notation in the DT example
No changes in v8.
No changes in
This patchset introduces support for LiteX SoC Controller
and LiteUART - serial device from LiteX SoC builder
(https://github.com/enjoy-digital/litex).
In the following patchset I will add
a new mor1kx-based (OpenRISC) platform that
uses this device.
Later I plan to extend this platform by
adding
From: Filip Kokosinski
Add vendor prefix for LiteX SoC builder.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
Acked-by: Rob Herring
---
Notes:
No changes in v9.
No changes in v8.
No changes in v7.
No changes in v6.
No changes in v5.
No changes
From: Pawel Czarnecki
This commit adds driver for the FPGA-based LiteX SoC
Controller from LiteX SoC builder.
Co-developed-by: Mateusz Holenko
Signed-off-by: Mateusz Holenko
Signed-off-by: Pawel Czarnecki
---
Notes:
Changes in v8:
- removed `litex_check_accessors()` helper function
From: Filip Kokosinski
Add documentation for LiteUART devicetree bindings.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
Reviewed-by: Rob Herring
---
Notes:
No changes in v8.
No changes in v7.
Changes in v6:
- fixed license header
No changes in v5
: Mateusz Holenko
---
Notes:
Changes in v8:
- fixed help messages in LiteUART's KConfig
- removed dependency between LiteUART and LiteX SoC drivers
Changed in v7:
- added missing include directive
Changes in v6:
- LiteUART ports now stored in xArray
- re
From: Pawel Czarnecki
Add documentation for LiteX SoC Controller bindings.
Signed-off-by: Pawel Czarnecki
Signed-off-by: Mateusz Holenko
Reviewed-by: Rob Herring
---
Notes:
No changes in v8.
No changes in v7.
Changes in v6:
- fixed license header
Changes in v5
This patchset introduces support for LiteX SoC Controller
and LiteUART - serial device from LiteX SoC builder
(https://github.com/enjoy-digital/litex).
In the following patchset I will add
a new mor1kx-based (OpenRISC) platform that
uses this device.
Later I plan to extend this platform by
adding
From: Filip Kokosinski
Add vendor prefix for LiteX SoC builder.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
Acked-by: Rob Herring
---
Notes:
No changes in v8.
No changes in v7.
No changes in v6.
No changes in v5.
No changes in v4.
Changes in
Hi Randy,
On Thu, Jun 4, 2020 at 5:14 PM Randy Dunlap wrote:
>
> Hi--
>
> On 6/4/20 3:14 AM, Mateusz Holenko wrote:
> > +config SERIAL_LITEUART
> > + tristate "LiteUART serial port support"
> > + depends on HAS_IOMEM
> > + depe
: Mateusz Holenko
---
Notes:
Changed in v7:
- added missing include directive
Changes in v6:
- LiteUART ports now stored in xArray
- removed PORT_LITEUART
- fixed formatting
- removed some unnecessary defines
No changes in v5.
Changes in v4:
- fixed
From: Pawel Czarnecki
This commit adds driver for the FPGA-based LiteX SoC
Controller from LiteX SoC builder.
Co-developed-by: Mateusz Holenko
Signed-off-by: Mateusz Holenko
Signed-off-by: Pawel Czarnecki
---
Notes:
No changes in v7.
Changes in v6:
- added dependency on OF
From: Pawel Czarnecki
Add documentation for LiteX SoC Controller bindings.
Signed-off-by: Pawel Czarnecki
Signed-off-by: Mateusz Holenko
Reviewed-by: Rob Herring
---
Notes:
No changes in v7.
Changes in v6:
- fixed license header
Changes in v5:
- added reviewed
From: Filip Kokosinski
Add documentation for LiteUART devicetree bindings.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
Reviewed-by: Rob Herring
---
Notes:
No changes in v7.
Changes in v6:
- fixed license header
No changes in v5.
No changes in v4
From: Filip Kokosinski
Add vendor prefix for LiteX SoC builder.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
Acked-by: Rob Herring
---
Notes:
No changes in v7.
No changes in v6.
No changes in v5.
No changes in v4.
Changes in v3:
- added Acked-by
This patchset introduces support for LiteX SoC Controller
and LiteUART - serial device from LiteX SoC builder
(https://github.com/enjoy-digital/litex).
In the following patchset I will add
a new mor1kx-based (OpenRISC) platform that
uses this device.
Later I plan to extend this platform by
adding
On Thu, Jun 4, 2020 at 9:57 AM Greg Kroah-Hartman
wrote:
>
> On Thu, Jun 04, 2020 at 09:16:25AM +0200, Mateusz Holenko wrote:
> > On Wed, May 27, 2020 at 6:27 PM Mateusz Holenko
> > wrote:
> > >
> > > From: Filip Kokosinski
> > >
> > > This
On Wed, May 27, 2020 at 6:27 PM Mateusz Holenko wrote:
>
> From: Filip Kokosinski
>
> This commit adds driver for the FPGA-based LiteUART serial controller
> from LiteX SoC builder.
>
> The current implementation supports LiteUART configured
> for 32 bit data width
From: Pawel Czarnecki
Add documentation for LiteX SoC Controller bindings.
Signed-off-by: Pawel Czarnecki
Signed-off-by: Mateusz Holenko
Reviewed-by: Rob Herring
---
Notes:
Changes in v6:
- fixed license header
Changes in v5:
- added reviewed-by tag
Changes
From: Pawel Czarnecki
This commit adds driver for the FPGA-based LiteX SoC
Controller from LiteX SoC builder.
Co-developed-by: Mateusz Holenko
Signed-off-by: Mateusz Holenko
Signed-off-by: Pawel Czarnecki
---
Notes:
Changes in v6:
- added dependency on OF || COMPILE_TEST
- used
: Mateusz Holenko
---
Notes:
Changes in v6:
- LiteUART ports now stored in xArray
- removed PORT_LITEUART
- fixed formatting
- removed some unnecessary defines
No changes in v5.
Changes in v4:
- fixed copyright header
- removed a wrong dependency on UARTLITE
From: Filip Kokosinski
Add vendor prefix for LiteX SoC builder.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
Acked-by: Rob Herring
---
Notes:
No changes in v6.
No changes in v5.
No changes in v4.
Changes in v3:
- added Acked-by tag
No
This patchset introduces support for LiteX SoC Controller
and LiteUART - serial device from LiteX SoC builder
(https://github.com/enjoy-digital/litex).
In the following patchset I will add
a new mor1kx-based (OpenRISC) platform that
uses this device.
Later I plan to extend this platform by
adding
From: Filip Kokosinski
Add documentation for LiteUART devicetree bindings.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
Reviewed-by: Rob Herring
---
Notes:
Changes in v6:
- fixed license header
No changes in v5.
No changes in v4.
Changes in v3
On Tue, May 5, 2020 at 4:02 PM Andy Shevchenko
wrote:
>
> On Mon, May 4, 2020 at 4:44 PM Mateusz Holenko wrote:
> > On Tue, Apr 28, 2020 at 5:50 PM Andy Shevchenko
> > wrote:
> > > On Sat, Apr 25, 2020 at 2:45 PM Mateusz Holenko
> > > wrote:
>
> ...
On Wed, Apr 29, 2020 at 5:12 AM Benjamin Herrenschmidt
wrote:
>
> On Sat, 2020-04-25 at 13:42 +0200, Mateusz Holenko wrote:
> > From: Pawel Czarnecki
> >
> > This commit adds driver for the FPGA-based LiteX SoC
> > Controller from LiteX SoC builder.
>
> Sorry
On Tue, Apr 28, 2020 at 5:50 PM Andy Shevchenko
wrote:
>
> On Sat, Apr 25, 2020 at 2:45 PM Mateusz Holenko wrote:
> >
> > From: Filip Kokosinski
> >
> > This commit adds driver for the FPGA-based LiteUART serial controller
> > from LiteX SoC builder.
> &g
From: Filip Kokosinski
This adds support for a basic LiteX-based SoC with a mor1kx soft CPU.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
---
MAINTAINERS | 1 +
arch/openrisc/boot/dts/or1klitex.dts | 49 +++
arch
This patchset adds a new LiteX SoC-based platform
configured for mor1kx (OpenRISC) CPU coupled with
LiteUART serial device.
Details about LiteX can be found at
https://github.com/enjoy-digital/litex.
This platform is intended for further extension
once drivers for other LiteX devices are merged
t
: Mateusz Holenko
---
Changes in v2:
- used register access functions from newly introduced litex.h
- patch number changed from 3 to 4
MAINTAINERS | 1 +
drivers/tty/serial/Kconfig | 30 +++
drivers/tty/serial/Makefile | 1 +
drivers/tty/serial/liteuart.c
From: Filip Kokosinski
Add documentation for LiteUART devicetree bindings.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
---
Changes in v2:
- binding description rewritten to a yaml schema file
- added interrupt line
- fixed unit address
- patch number changed from 2 to 3
It provides helper CSR access functions used by all
LiteX drivers.
Signed-off-by: Mateusz Holenko
---
This commit has been introduced in v2 of the patchset.
MAINTAINERS | 6 +
include/linux/litex.h | 59 +++
2 files changed, 65 insertions
From: Filip Kokosinski
Add vendor prefix for LiteX SoC builder.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
---
No changes in v2.
Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings
LiteUART driver
Mateusz Holenko (1):
litex: add common LiteX header
.../bindings/serial/litex,liteuart.yaml | 38 ++
.../devicetree/bindings/vendor-prefixes.yaml | 2 +
MAINTAINERS | 8 +
drivers/tty/serial/Kconfig| 30
pon., 30 wrz 2019 o 23:32 Rob Herring napisaĆ(a):
>
> On Mon, Sep 30, 2019 at 8:04 AM Mateusz Holenko wrote:
> >
> > From: Filip Kokosinski
> >
> > Add documentation for LiteUART devicetree bindings.
> >
> > Signed-off-by: Filip Koko
: Mateusz Holenko
---
MAINTAINERS | 1 +
drivers/tty/serial/Kconfig | 30 +++
drivers/tty/serial/Makefile | 1 +
drivers/tty/serial/liteuart.c| 382 +++
include/uapi/linux/serial_core.h | 3 +
5 files changed, 417 insertions
From: Filip Kokosinski
Add vendor prefix for LiteX SoC builder.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
---
Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/vendor
This patchset introduces support for LiteUART
- serial device from LiteX SoC builder
(https://github.com/enjoy-digital/litex).
In the following patchset I will add
a new mor1kx-based (OpenRISC) platform that
uses this device.
Later I plan to extend this platform by
adding support for more devices
From: Filip Kokosinski
Add documentation for LiteUART devicetree bindings.
Signed-off-by: Filip Kokosinski
Signed-off-by: Mateusz Holenko
---
.../devicetree/bindings/serial/litex,liteuart.txt| 12
MAINTAINERS | 6 ++
2 files
70 matches
Mail list logo