History log of /rk3399_rockchip-uboot/drivers/serial/ns16550.c (Results 1 – 25 of 169)
Revision Date Author Comments
# a5d16e51 24-Apr-2022 Joseph Chen <chenjh@rock-chips.com>

serial: ns16550: Add serial rx/tx fifo clear support

Correct the implementaion of clear callback, it should
be reset action but not flush.

flushc() is only used for debug uart.

Signed-off-by: Jose

serial: ns16550: Add serial rx/tx fifo clear support

Correct the implementaion of clear callback, it should
be reset action but not flush.

flushc() is only used for debug uart.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I8d38c9753c77bee37e3c4ae6338ff96c6ad0bf30

show more ...


# 00f93bdf 29-Dec-2020 Joseph Chen <chenjh@rock-chips.com>

drivers: pci: separate SPL & U-Boot proper build

It fixes SPL compile issue after PCI enabled.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ic3d4a464defd2074be083effd25f513ae19d2e01


# 034db995 27-Sep-2020 Joseph Chen <chenjh@rock-chips.com>

dm: serial: support always use uart debug mode

In this mode, uart debug is initialized depends on
configuration from pre-loader or CONFIG_UART_DEBUG_.

The serial is not care about dts "stdout-path"

dm: serial: support always use uart debug mode

In this mode, uart debug is initialized depends on
configuration from pre-loader or CONFIG_UART_DEBUG_.

The serial is not care about dts "stdout-path" and
not register into console framework any more. It's
nice to use pre-loader serial and make serial easy
to configure.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: If4c68229d76b6f1710a35e3ef9a2a91cb306fa9c

show more ...


# 8c22eae6 06-Aug-2020 Joseph Chen <chenjh@rock-chips.com>

dm: serial/16550: rollback to upstream version

rollback to: 02234e4 UPSTREAM: usbtty: fix typos

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I84296fad2b06823afc77477ef4ef11a2f80196

dm: serial/16550: rollback to upstream version

rollback to: 02234e4 UPSTREAM: usbtty: fix typos

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I84296fad2b06823afc77477ef4ef11a2f801960a

show more ...


# 1a4f6af8 02-Mar-2020 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot


# 02c954e5 16-Dec-2019 Joseph Chen <chenjh@rock-chips.com>

serial: ns16550: optimise

- set default clock rate 24000000;
- pre-loader param only applied on target serial debug;
- no special workarund when kernel dtb is enabled since
we have solved phandle

serial: ns16550: optimise

- set default clock rate 24000000;
- pre-loader param only applied on target serial debug;
- no special workarund when kernel dtb is enabled since
we have solved phandle miss match issue.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ic10e1f4120e7e2458773e3fcc5925ba69d062d61

show more ...


# 34027287 05-Dec-2019 Joseph Chen <chenjh@rock-chips.com>

serial: ns16550: gd->serial works when !gd->cur_serial_dev

Make gd->serial only works for UART debug but not other UART driver.
This requires other UART must initialized late than UART debug,
recomm

serial: ns16550: gd->serial works when !gd->cur_serial_dev

Make gd->serial only works for UART debug but not other UART driver.
This requires other UART must initialized late than UART debug,
recommend in board_late_init().

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I9633b5f8a2dfac9c2f9a733207088e5919669209

show more ...


# 7c861306 05-May-2019 Joseph Chen <chenjh@rock-chips.com>

serial: ns16550: implement ops->clear callback

Thus, the flushc() can work normally.

Change-Id: I544ed0ffcbc5564913bf89bf1a83c6d540ae6b6a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>


# 064eb493 09-Oct-2018 Joseph Chen <chenjh@rock-chips.com>

serial: ns16550: support using pre-loader serial

- pass pre-loader serial configure by rk atags;
- it depends on serial aliases to find uart port;
- enabled by CONFIG_ROCKCHIP_USING_PRELOADER_SERIAL

serial: ns16550: support using pre-loader serial

- pass pre-loader serial configure by rk atags;
- it depends on serial aliases to find uart port;
- enabled by CONFIG_ROCKCHIP_USING_PRELOADER_SERIAL;

Change-Id: I6723cccc5e1f3dac77203b4cc19cdac631f5133b
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...


# adde78bf 21-Jun-2018 Joseph Chen <chenjh@rock-chips.com>

serial: ns16550: use fifo and flush console before jumping to OS

with this patch, U-Boot can save a lot of boot time which
depends on how much log we print.

Change-Id: Ib96e9343e9439d251c2c40be1460

serial: ns16550: use fifo and flush console before jumping to OS

with this patch, U-Boot can save a lot of boot time which
depends on how much log we print.

Change-Id: Ib96e9343e9439d251c2c40be14609bc08d638931
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...


# 5034b89c 11-Feb-2018 Kever Yang <kever.yang@rock-chips.com>

serial: ns16550: fix compile warning

Change-Id: I495b9eca5f54105270f9e2311ef29c9b296c0476
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>


# f4b2e958 10-Feb-2018 Kever Yang <kever.yang@rock-chips.com>

serial: ns16550: work around for rockchip kernel dtb support

With kernel dtb support, serial ofnode not able to get cru phandle,
do not return err because rockchip uart always get 24MHz clock.

Chan

serial: ns16550: work around for rockchip kernel dtb support

With kernel dtb support, serial ofnode not able to get cru phandle,
do not return err because rockchip uart always get 24MHz clock.

Change-Id: Ibd76eb553570cdf73a151c038432c0801cd3230f
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>

show more ...


# 0031af9c 26-Aug-2017 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-x86


# 7fded0ce 16-Aug-2017 Stefan Roese <sr@denx.de>

Revert "serial: ns16550: Add RX interrupt buffer support"

This reverts commit 6822cf3ec7c8768b8727573b8f4b2cb3d870b881.

As Bin Meng has tested and pointed out, we don't need the RX interrupt
for th

Revert "serial: ns16550: Add RX interrupt buffer support"

This reverts commit 6822cf3ec7c8768b8727573b8f4b2cb3d870b881.

As Bin Meng has tested and pointed out, we don't need the RX interrupt
for the RX buffer support at all. Just reading all available characters
into a buffer is sufficient to solve the problem with the dropped
characters upon long lines pasted into the U-Boot prompt. Since this
RX buffer support can be implemented in a generic way, without any
device specifica (e.g. for the ns16550), I'll post a new patch with
a new serial RX buffer support for DM, which all DM based serial
drivers can use.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Tom Rini <trini@konsulko.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

show more ...


# 6822cf3e 14-Jul-2017 Stefan Roese <sr@denx.de>

serial: ns16550: Add RX interrupt buffer support

Pasting longer lines into the U-Boot console prompt sometimes leads to
characters missing. One problem here is the small 16-byte FIFO of the
legacy N

serial: ns16550: Add RX interrupt buffer support

Pasting longer lines into the U-Boot console prompt sometimes leads to
characters missing. One problem here is the small 16-byte FIFO of the
legacy NS16550 UART, e.g. on x86 platforms.

This patch now introduces a Kconfig option to enable RX interrupt
buffer support for NS16550 style UARTs. With this option enabled, I was
able paste really long lines into the U-Boot console, without any
characters missing.

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
[trini: Guard ns16550_serial_remove with
CONFIG_IS_ENABLED(SERIAL_PRESENT) to match struct assignment]
Signed-off-by: Tom Rini <trini@konsulko.com>

show more ...


# 8d3a2568 12-Jul-2017 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-dm


# d43ef73b 11-Jul-2017 Tom Rini <trini@konsulko.com>

Merge branch 'master' of git://git.denx.de/u-boot-rockchip


# db9f8f6a 12-Jun-2017 Simon Glass <sjg@chromium.org>

dm: serial: ns16550: Convert to livetree

Update this driver to support a live device tree.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tes

dm: serial: ns16550: Convert to livetree

Update this driver to support a live device tree.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-on: Beaver, Jetson-TK1

show more ...


# 3d40479f 07-Jun-2017 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

rockchip: ns16550: dm: convert fdt_get to dev_read

With the new dev_read functions available, we can convert the rockchip
architecture-specific drivers and common drivers used by these devices
over

rockchip: ns16550: dm: convert fdt_get to dev_read

With the new dev_read functions available, we can convert the rockchip
architecture-specific drivers and common drivers used by these devices
over to the dev_read family of calls.

This covers the serial driver (ns16550 and compatible) used for the
Rockchip devices.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>

show more ...


# a821c4af 17-May-2017 Simon Glass <sjg@chromium.org>

dm: Rename dev_addr..() functions

These support the flat device tree. We want to use the dev_read_..()
prefix for functions that support both flat tree and live tree. So rename
the existing function

dm: Rename dev_addr..() functions

These support the flat device tree. We want to use the dev_read_..()
prefix for functions that support both flat tree and live tree. So rename
the existing functions to avoid confusion.

In the end we will have:

1. dev_read_addr...() - works on devices, supports flat/live tree
2. devfdt_get_addr...() - current functions, flat tree only
3. of_get_address() etc. - new functions, live tree only

All drivers will be written to use 1. That function will in turn call
either 2 or 3 depending on whether the flat or live tree is in use.

Note this involves changing some dead code - the imx_lpi2c.c file.

Signed-off-by: Simon Glass <sjg@chromium.org>

show more ...


# 89024ddc 13-May-2017 Tom Rini <trini@konsulko.com>

TI: Drop 'CONFIG_OMAP'

In the two cases in the code where we use CONFIG_OMAP as a useful test
currently we can make use of CONFIG_ARCH_OMAP2PLUS instead. With that
changed we can drop all defines o

TI: Drop 'CONFIG_OMAP'

In the two cases in the code where we use CONFIG_OMAP as a useful test
currently we can make use of CONFIG_ARCH_OMAP2PLUS instead. With that
changed we can drop all defines of CONFIG_OMAP. While in here,
CONFIG_OMAP3430 is only defined and then never used, so drop.

Signed-off-by: Tom Rini <trini@konsulko.com>

show more ...


# a52cf086 22-Apr-2017 Lokesh Vutla <lokeshvutla@ti.com>

serial: omap: Support debug UART

Add debug UART functions to permit omap specific ns16550 to
provide an early debug UART. This is mostly in common with
DEBUG_UART_NS16550 except for Mode definition

serial: omap: Support debug UART

Add debug UART functions to permit omap specific ns16550 to
provide an early debug UART. This is mostly in common with
DEBUG_UART_NS16550 except for Mode definition register which
is required for selecting UART mode(16x auto-baud or 13x mode).

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>

show more ...


# b7b24a7a 13-Apr-2017 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-dm

Here with some DM changes as well as the long-standing AT91 DM/DT
conversion patches which I have picked up via dm.


# 6f8c351e 27-Mar-2017 Alexandru Gagniuc <alex.g@adaptrum.com>

serial: ns16550: Link in the DM driver when when using platdata

Do not condition the compilation of the U_BOOT_DRIVER by !OF_PLATDATA.
This is inconsistent with the majority of other drivers. This a

serial: ns16550: Link in the DM driver when when using platdata

Do not condition the compilation of the U_BOOT_DRIVER by !OF_PLATDATA.
This is inconsistent with the majority of other drivers. This also
blocks OF_PLATDATA boards with an 16550-compatible serial from using
serial in SPL.

Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Added tweak for rock to avoid a TPL build failure:
Signed-off-by: Simon Glass <sjg@chromium.org>

show more ...


# 21342d4a 08-Feb-2017 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-dm


1234567