25 Nov, 2019
1 commit
11 Nov, 2019
1 commit
01 Nov, 2019
1 commit
14 Mar, 2019
1 commit
-
Fix coverity issue:
CID 43787: Buffer not null terminated (BUFFER_SIZE_WARNING)
buffer_size_warning: Calling strncpy with a maximum size argument
of 32 bytes on destination array sdev.name of size 32 bytes might
leave the destination string unterminated.Test: Coverity scan pass.
Change-Id: Ib10e631bab893cb9cd1484082229f806b02849ba
Signed-off-by: Luo Ji
12 Mar, 2019
1 commit
-
Trusty is not supported for xen so we don't need to check
the keyslot package or rollback index in spl. Reassign the
dram address for spl and u-boot to avoid conflicts.Support serial init functions to enable debug console
in spl when xen is running.Test: Boot and A/B slot switch on imx8qm_mek.
Change-Id: If6829252f1ec2e32255f951715c8747181951fd0
Signed-off-by: Ji Luo
Reviewed-by: Peng Fan
03 Jan, 2019
1 commit
-
The tstc function in Non-DM driver does not check the LPUART_FLAG_REGMAP_32BIT_REG
flag, it always use 8 bits register version and cause issue in 8QM/QXP SPL.Signed-off-by: Ye Li
Acked-by: Peng Fan
15 Nov, 2018
2 commits
-
Support output/input using `xl console [domid]`.
Signed-off-by: Peng Fan
Reviewed-by: Peng Fan
Reviewed-by: Flynn xu -
Introduce puts hook for dm serial driver.
Signed-off-by: Peng Fan
Reviewed-by: Peng Fan
Reviewed-by: Flynn xu
12 Nov, 2018
1 commit
-
Change-Id: I5969217e400ab494f9a74662d1d228fcf2e2d465
10 Aug, 2018
1 commit
-
In case CONFIG_DM is not enabled, the driver needs to be initialized through
serial_initfunc. All the ops are implemented again this time using the
lpuart_serial_data.Signed-off-by: Abel Vesa
14 Jun, 2018
1 commit
-
Add simple debug output when uboot runs in a VM.
Needs DM_SERIAL disabled, and XEN_DEBUG_SERIAL enabled.Signed-off-by: Peng Fan
(cherry picked from commit b41475b83c8d7c83bd6069f4fea05d3405e81e50)
27 Apr, 2018
3 commits
-
Enable the RX and TX FIFO in LPUART driver to avoid the input lost
during u-boot boot up.Signed-off-by: Ye Li
Acked-by: Peng Fan
(cherry picked from commit e8079cd6e5940ab9b3b89da03cf109d46a47aa0e) -
Accroding to RM, the Receive FIFO Enable (RXFE) field in LPUART FIFO register
is bit 3, so the definition should change to 0x08 not 0x40.
Otherwise the Receive FIFO is not disabled.Signed-off-by: Ye Li
Reviewed-by: Peng Fan
(cherry picked from commit b949b7c8dc5492dd08a2e2828fc686bd190ea094) -
Add i.MX8 compatible string and cpu type support to lpuart driver,
to use little endian 32 bits configurations.Signed-off-by: Ye Li
(cherry picked from commit 0b1a70b2e3f519d6bf6c34f0df3a81ff1a4852cb)
10 Mar, 2018
2 commits
-
After the UART was initialized, we may still have bogus data in the
RX queue if it was enabled with incorrect pin muxing before.So let's flush the RX queue whenever we initialize baud rates.
This fixes a regression with the dynamic pinmuxing code when enable_uart=1
is not set in config.txt on Raspberry Pis that use pl011 for serial.Fixes: caf2233b28 ("bcm283x: Add pinctrl driver")
Reported-by: Göran Lundberg
Reported-by: Peter Robinson
Signed-off-by: Alexander Graf
Tested-by: Peter Robinson
Tested-by: Tuomas Tynkkynen -
After the UART was initialized, we may still have bogus data in the
RX queue if it was enabled with incorrect pin muxing before.So let's flush the RX queue whenever we initialize baud rates.
This fixes a regression with the dynamic pinmuxing code when enable_uart=1
is not set in config.txt.Fixes: caf2233b28 ("bcm283x: Add pinctrl driver")
Reported-by: Göran Lundberg
Reported-by: Peter Robinson
Signed-off-by: Alexander Graf
Tested-by: Peter Robinson
Tested-by: Tuomas Tynkkynen
23 Feb, 2018
1 commit
-
Do a explicit check for CONFIG_SYS_BIG_ENDIAN and
CONFIG_SYS_LITTLE_ENDIAN to avoid errors on platforms where both
are undefined (x86).Signed-off-by: Bernhard Messerklinger
Reviewed-by: Hannes Schmelzer
16 Feb, 2018
1 commit
-
Cosmetic change, replace CONFIG_* with CONFIG_IS_ENABLED(*) .
Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu
29 Jan, 2018
12 commits
-
Commit 608b0c4ad4e5ec0c ("serial: Use next serial device if probing fails")
added code to search for more serial devices if the default one was not
probed correctly.Unfortunately, that breaks omap3_evm. So while investigating why that is
the case, let's disable the full search for everyone but bcm283x where it
is needed.Fixes: 608b0c4ad4e5ec0c ("serial: Use next serial device if probing fails")
Reported-by: Derald D. Woods
Signed-off-by: Alexander Graf -
On bcm2835 we need to ensure we only access serial devices that are
muxed to the serial output pins of the pin header. To achieve this
for the pl011 device, add a bcm2835 specific pl011 wrapper device
that does this check but otherwise behaves like a pl011 device.Signed-off-by: Alexander Graf
-
Setting config options using headers is deprecated. This patch converts
the BCM2835 Mini-UART to Kconfig.Signed-off-by: Alexander Graf
-
We want to use Kconfig logic to depend on whether pl01x devices
are built in, so let's convert their inclusion selection to Kconfig.This round goes to pl01x.
Signed-off-by: Alexander Graf
-
We want to use Kconfig logic to depend on whether pl01x devices
are built in, so let's convert their inclusion selection to Kconfig.This round goes to pl011.
Signed-off-by: Alexander Graf
-
We want to use Kconfig logic to depend on whether pl01x devices
are built in, so let's convert their inclusion selection to Kconfig.This round goes to pl010.
Signed-off-by: Alexander Graf
-
The fdtdec API is deprecated, convert the pl010 and pl011 devices to
use the dev_read API instead.Signed-off-by: Alexander Graf
-
The bcm283x mini-uart is only really usable as U-Boot serial output
when it is muxed to the UART pins of the RPi pin header.So fail probing in case it is not muxed correctly, as in that case
firmware did not initialize it properly either.Signed-off-by: Alexander Graf
-
The serial initialization doesn't always quite work for me, so let's
always skip it for now. We know that firmware on the RPi initializes
us properly already.Signed-off-by: Alexander Graf
-
The fdtdec API got deprecated in favor of dev_read calls.
Use those instead.Signed-off-by: Alexander Graf
-
We are switching to a model where a serial device doesn't even get probed when
it's not muxed properly, so we don't need device specific disabling
functionality anymore.Signed-off-by: Alexander Graf
-
Currently our serial device search chokes on the fact that the serial
probe function could fail. If it does, instead of searching for the next
usable serial device, it just quits.This patch changes the fallback logic so that even when a serial device
was not probed correctly, we just try the next ones until we find one that
works.Signed-off-by: Alexander Graf
Reviewed-by: Simon Glass
28 Jan, 2018
2 commits
-
Clarify the computation precedence in two ternary operator
constructions.Reviewed-by: Simon Glass
Signed-off-by: Mario Six
26 Jan, 2018
1 commit
25 Jan, 2018
3 commits
-
Add support for RZ/A1 series SoCs.
Signed-off-by: Chris Brandt
-
Use the common RCAR_GEN2 config option instead of enumerating
each SoC and having a lengthy ifdef clause. No functional change.Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu -
Replace fdtdec_get_addr() with devfdt_get_addr() as the later one is
the current recommended practice.Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu
24 Jan, 2018
1 commit
-
wait_for_bit callers use the 32 bit LE version
Signed-off-by: Álvaro Fernández Rojas
Reviewed-by: Daniel Schwierzeck
Reviewed-by: Jagan Teki
20 Jan, 2018
1 commit
-
Now this driver is used across stm32f4, stm32f7 and stm32h7
SoCs family, give it a generic name.Signed-off-by: Patrice Chotard
Reviewed-by: Vikas Manocha
16 Jan, 2018
1 commit
-
Identify and distinguish between platform device type of MX7ULP
and LS1021A.This is a fix to commit 7edf5c45("serial: lpuart: add i.MX7ULP
support").Signed-off-by: Sriram Dash
Acked-by: Peng Fan
Reviewed-by: York Sun
10 Jan, 2018
1 commit
-
Remove serial_stm32.c driver and uart init from board file,
use available DM serial_stm32x7.c driver compatible for
STM32F4/F7 and H7 SoCs.The serial_stm32x7.c driver will be renamed later with a more
generic name as it's shared with all STM32 Socs.Signed-off-by: Patrice Chotard