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
30 Nov, 2017
1 commit
-
Unify the CONFIG_R8A7795 and CONFIG_R8A7796 as CONFIG_RCAR_GEN3
so that every time we add a new SoC, we won't have to add more
stuff to this list.Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu
28 Nov, 2017
1 commit
-
Move cadence/zynq serial driver via Kconfig
Signed-off-by: Michal Simek
Reviewed-by: Simon Glass
17 Nov, 2017
1 commit
-
In U-boot, serial_tstc was use to determine is there have a character in
serial console that pending for read. If there is no "pending" function
implemented in serial driver, the serial-uclass will return "true(1)"
to indicate there have a character pending to read.Thus, read a character from nulldev serial will result in continuous
getting -EAGAIN return which might lead system to hang.This commit is to fix a bug in nulldev serial which implement "pending"
function in nulldev serial to always indicate there is no character in
console that pending for read.Signed-off-by: Wilson Lee
Cc: Joe Hershberger
Cc: Keng Soon Cheah
Cc: Chen Yee Chew
Cc: Bin Meng
06 Nov, 2017
2 commits
-
Uniformize STMicroelectronics copyrights headers for STM32
related code.Signed-off-by: Patrice Chotard
-
Uniformize all STMicroelectronics copyrights headers for STi
related code.Signed-off-by: Patrice Chotard
16 Oct, 2017
1 commit
-
Fix typos in USB tty driver.
Signed-off-by: Heinrich Schuchardt
11 Oct, 2017
1 commit
09 Oct, 2017
6 commits
-
This driver is currently used by STM32F7 and STM32H7 SoCs.
As CONFIG_CLK and OF_CONTROL flags are set by default for these
2 SoCs, this flag becomes useless in this driver, so remove it.Signed-off-by: Patrice Chotard
-
stm32f4 doesn't support FIFO and OVERRUN feature.
The enable bit is not at the same location in CR1
register than for STM32F7 and STM32H7.Signed-off-by: Patrice Chotard
-
Add fifo mode support for rx and tx.
As only STM32H7 supports this feature, add has_fifo flag
to uart configuration to use fifo only when possible.Signed-off-by: Patrice Chotard
-
STM32F4 serial IP is similar to F7 and H7, but registers
are not located at the same offset and some feature are
only supported by F7 and H7 version.Registers offset must be added for each version and also
some flags indicated the supported feature.Update registers name to match with datasheet (sr to isr,
rx_dr to rdr and tx_dr to tdr) and remove unused regs
(cr2, gtpr, rtor, and rqr).Signed-off-by: Patrice Chotard
-
This patch remove the extra compatibility string "st,stm32h7-usart"
and "st,stm32f7-usart" to avoid confusion, save some time & space.Signed-off-by: Patrice Chotard
Reviewed-by: Vikas Manocha -
Use BIT() macro and GENMASK() macro
Signed-off-by: Patrice Chotard
Reviewed-by: Vikas Manocha
24 Sep, 2017
1 commit
-
If the clock framework provides the driver with valid clock,
enable them, otherwise the SCIF might not work if the clock
are not enabled prior to the driver probe.Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu
Signed-off-by: Nobuhiro Iwamatsu
22 Sep, 2017
1 commit
-
STM32F7 and STM32H7 shares the same UART block, add
STM32H7 compatible string.Signed-off-by: Patrice Chotard
Reviewed-by: Simon Glass
13 Sep, 2017
1 commit
-
Some device the serial console's initialization cannot run early during
the boot process. Hence, nulldev serial device is helpful on that
situation.For example, if the serial module was implemented in FPGA. Serial
initialization is prohibited to run until the FPGA was programmed.This commit is to adding nulldev serial driver. This will allows the
default console to be specified as a nulldev.Signed-off-by: Joe Hershberger
Signed-off-by: Keng Soon Cheah
Cc: Chen Yee Chew
24 Aug, 2017
2 commits
-
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 buffer support
for all DM based serial drivers. 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
Cc: Simon Glass
Cc: Bin Meng
Cc: Tom Rini
Reviewed-by: Bin Meng
Tested-by: Bin Meng -
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
Cc: Simon Glass
Cc: Bin Meng
Cc: Tom Rini
Reviewed-by: Bin Meng
16 Aug, 2017
1 commit
-
We are now using an env_ prefix for environment functions. Rename these
two functions for consistency. Also add function comments in common.h.Quite a few places use getenv() in a condition context, provoking a
warning from checkpatch. These are fixed up in this patch also.Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass
03 Aug, 2017
2 commits
-
Since we now have clock driver on the RCar Gen3 , obtain the clock
configuration using the clock framework functions. In case this
fails, fall back to the original code for pulling the clock config
directly out of OF.Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu
Signed-off-by: Nobuhiro Iwamatsu -
Convert the SH Serial to Kconfig using tools/moveconfig.py tool
and a bit of manual adjustment to cater for failed conversions.Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu
Signed-off-by: Nobuhiro Iwamatsu
01 Aug, 2017
1 commit
-
With driver model the serial device is often not called "serial". Mark
driver-model stdio devices so that they can be detected and we can look up
the uclass. This is a more reliable way of finding out whether the console
is connected to a serial device or not.Signed-off-by: Simon Glass
31 Jul, 2017
1 commit
-
Add CONFIG_STM32X7_SERIAL as a Kconfig option.
Signed-off-by: Patrice Chotard
Reviewed-by: Vikas Manocha
27 Jul, 2017
1 commit
-
Some platforms have very limited SRAM to run SPL code, so there may
not be the same amount space for a malloc pool before relocation in
the SPL stage as the normal U-Boot stage.Make SPL and (the full) U-Boot stage use independent SYS_MALLOC_F_LEN,
so the size of pre-relocation malloc pool can be configured memory
space independently.Signed-off-by: Andy Yan
Reviewed-by: Tom Rini
Acked-by: Philipp Tomsich
Reviewed-by: Philipp Tomsich
[fixed up commit-message:]
Signed-off-by: Philipp Tomsich
26 Jul, 2017
2 commits
-
Replace proprietary clock_get() by clk_get_rate()
The stm32x7 serial driver is now "generic" and can be used
by other STM32 SoCs.Signed-off-by: Patrice Chotard
Acked-by: Vikas MANOCHA -
This allow to remove include/dm/platform_data/serial_stm32x7.h
which was included in the past by stm32x7 driver and by
stm32f746-disco.c board file.
Since patch 42bf5e7c27 "serial: stm32f7: add device tree support"
this file is no more needed in board file.Signed-off-by: Patrice Chotard
Acked-by: Vikas MANOCHA
24 Jul, 2017
1 commit
-
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
Reviewed-by: Simon Glass
Cc: Bin Meng
[trini: Guard ns16550_serial_remove with
CONFIG_IS_ENABLED(SERIAL_PRESENT) to match struct assignment]
Signed-off-by: Tom Rini
23 Jul, 2017
1 commit
-
commit 2eb48ff7a210d ("powerpc, 8260: remove support for mpc8260")
removed support for 8260 CPU.This patch remove some remainders.
Signed-off-by: Christophe Leroy
12 Jul, 2017
9 commits
-
Add support for the debug UART to assist with early debugging.
Enable it for i.CoreM6 as an example.Signed-off-by: Jagan Teki
Reviewed-by: Simon Glass -
- Remove space between #define to macro
- Add tab between macro and valueSigned-off-by: Jagan Teki
Reviewed-by: Simon Glass -
Move the common baud generation code into _mxc_serial_setbrg
so-that dm and non-dm can call this func.Signed-off-by: Jagan Teki
Reviewed-by: Simon Glass -
Move the common initialization code into _mxc_serial_init
so-that dm and non-dm can call this func.Signed-off-by: Jagan Teki
Reviewed-by: Simon Glass -
Control reg write should be part of setbrg for better
buadrate generation, so move cr1 and cr2 write to
mxc_serial_setbrgSigned-off-by: Jagan Teki
Reviewed-by: Simon Glass -
Use RFDIV in dm-code instead of numeric value, so-that
it can be common for dm and non-dm.Signed-off-by: Jagan Teki
Reviewed-by: Simon Glass -
This patch will add common reg space for non-dm and
dm code and non-dm reg space can be accessed using
mxc_base.This will
- get rid of __REG volatile assignments
- Make common reg_space by removing unneeded macrosSigned-off-by: Jagan Teki
Reviewed-by: Simon Glass -
Add support for a live device tree to the core serial uclass.
Signed-off-by: Simon Glass
Tested-by: Marcel Ziswiler
Tested-on: Beaver, Jetson-TK1