<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/u-boot/drivers/serial/serial_lpuart.c, branch master</title>
<subtitle>Broadcom-s U-Boot</subtitle>
<id>https://git.openwrt.org/project/bcm63xx/u-boot/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/bcm63xx/u-boot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/'/>
<updated>2018-11-14T17:16:28Z</updated>
<entry>
<title>serial: Remove DM_FLAG_PRE_RELOC flag in various drivers</title>
<updated>2018-11-14T17:16:28Z</updated>
<author>
<name>Bin Meng</name>
</author>
<published>2018-10-24T13:36:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=4687919684e0e4390b9fc20d1809ecaa9dc3cb81'/>
<id>urn:sha1:4687919684e0e4390b9fc20d1809ecaa9dc3cb81</id>
<content type='text'>
When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be
bound before relocation. However due to a bug in the DM core,
the flag only takes effect when devices are statically declared
via U_BOOT_DEVICE(). This bug has been fixed recently by commit
"dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in
lists_bind_fdt()", but with the fix, it has a side effect that
all existing drivers that declared DM_FLAG_PRE_RELOC flag will
be bound before relocation now. This may expose potential boot
failure on some boards due to insufficient memory during the
pre-relocation stage.

To mitigate this potential impact, the following changes are
implemented:

- Remove DM_FLAG_PRE_RELOC flag in the driver, if the driver
  only supports configuration from device tree (OF_CONTROL)
- Keep DM_FLAG_PRE_RELOC flag in the driver only if the device
  is statically declared via U_BOOT_DEVICE()
- Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check, for
  drivers that support both statically declared devices and
  configuration from device tree

Signed-off-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>serial: lpuart: support uclass clk api</title>
<updated>2018-10-22T10:59:02Z</updated>
<author>
<name>Peng Fan</name>
</author>
<published>2018-10-18T22:26:23Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=8f5b6299bc92169d9721962efd3552d756f70692'/>
<id>urn:sha1:8f5b6299bc92169d9721962efd3552d756f70692</id>
<content type='text'>
Modify most APIs to use udevice as the first parameter, then
it will be easy to get the clk reference by using udevice pointer.
Use uclass api to get lpuart clk when CONFIG_CLK is enabled.

Signed-off-by: Peng Fan &lt;peng.fan@nxp.com&gt;
Signed-off-by: Anatolij Gustschin &lt;agust@denx.de&gt;
Cc: Stefano Babic &lt;sbabic@denx.de&gt;
</content>
</entry>
<entry>
<title>serial: lpuart: Enable RX and TX FIFO</title>
<updated>2018-10-22T10:59:02Z</updated>
<author>
<name>Ye Li</name>
</author>
<published>2018-10-18T12:28:32Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=cdc16f61823914ff19fdaddf3ca66ad7b159a1bd'/>
<id>urn:sha1:cdc16f61823914ff19fdaddf3ca66ad7b159a1bd</id>
<content type='text'>
Enable the RX and TX FIFO in LPUART driver to avoid the input lost
during U-Boot boot up.

Signed-off-by: Ye Li &lt;ye.li@nxp.com&gt;
Acked-by: Peng Fan &lt;peng.fan@nxp.com&gt;
Reviewed-by: Anatolij Gustschin &lt;agust@denx.de&gt;
Cc: Stefano Babic &lt;sbabic@denx.de&gt;
</content>
</entry>
<entry>
<title>serial_lpuart: Update lpuart driver to support i.MX8</title>
<updated>2018-10-22T10:59:02Z</updated>
<author>
<name>Peng Fan</name>
</author>
<published>2018-10-18T12:28:31Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=126f884903b647f2c349d0e756d70db3b5144249'/>
<id>urn:sha1:126f884903b647f2c349d0e756d70db3b5144249</id>
<content type='text'>
Add i.MX8 compatible string and cpu type support to lpuart driver,
to use little endian 32 bits configurations.

Also, according to RM, the Receive FIFO Enable (RXFE) field in LPUART
FIFO register is bit 3, so this definition should change to 0x08
(not 0x40) for i.MX8, otherwise the Receive FIFO is not disabled.

Signed-off-by: Peng Fan &lt;peng.fan@nxp.com&gt;
Reviewed-by: Anatolij Gustschin &lt;agust@denx.de&gt;
Cc: Stefano Babic &lt;sbabic@denx.de&gt;
</content>
</entry>
<entry>
<title>SPDX: Convert all of our single license tags to Linux Kernel style</title>
<updated>2018-05-07T13:34:12Z</updated>
<author>
<name>Tom Rini</name>
</author>
<published>2018-05-06T21:58:06Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=83d290c56fab2d38cd1ab4c4cc7099559c1d5046'/>
<id>urn:sha1:83d290c56fab2d38cd1ab4c4cc7099559c1d5046</id>
<content type='text'>
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from.  So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry.  Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.

In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.

This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents.  There's also a few places where I found we did not have a tag
and have introduced one.

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>serial: lpuart: Proper device identification</title>
<updated>2018-01-15T20:44:09Z</updated>
<author>
<name>Sriram Dash</name>
</author>
<published>2018-01-10T06:27:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=a2bbfc54805a1278cc3901e17923220c74fb8e83'/>
<id>urn:sha1:a2bbfc54805a1278cc3901e17923220c74fb8e83</id>
<content type='text'>
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 &lt;sriram.dash@nxp.com&gt;
Acked-by: Peng Fan &lt;peng.fan@nxp.com&gt;
Reviewed-by: York Sun &lt;york.sun@nxp.com&gt;
</content>
</entry>
<entry>
<title>dm: core: Replace of_offset with accessor (part 2)</title>
<updated>2017-06-01T13:03:04Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2017-05-17T23:18:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=da409ccc4ae62a0bf7111e2f4419fdbfd1ba3d89'/>
<id>urn:sha1:da409ccc4ae62a0bf7111e2f4419fdbfd1ba3d89</id>
<content type='text'>
At present devices use a simple integer offset to record the device tree
node associated with the device. In preparation for supporting a live
device tree, which uses a node pointer instead, refactor existing code to
access this field through an inline function.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>dm: Rename dev_addr..() functions</title>
<updated>2017-06-01T13:03:01Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2017-05-17T23:18:05Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=a821c4af79e4f5ce9b629b20473863397bbe9b10'/>
<id>urn:sha1:a821c4af79e4f5ce9b629b20473863397bbe9b10</id>
<content type='text'>
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 &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>serial: lpuart: add i.MX7ULP support</title>
<updated>2017-03-17T08:27:08Z</updated>
<author>
<name>Peng Fan</name>
</author>
<published>2017-02-22T08:21:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=7edf5c45f0d7f78ba370013cf513e3e8356c5202'/>
<id>urn:sha1:7edf5c45f0d7f78ba370013cf513e3e8356c5202</id>
<content type='text'>
Add i.MX7ULP support.
The buadrate calculation on i.MX7ULP is different,so add a new setbrg
function for i.MX7ULP.
Add a enum lpuart_devtype for runtime check for different platforms.

Signed-off-by: Peng Fan &lt;peng.fan@nxp.com&gt;
Cc: Stefano Babic &lt;sbabic@denx.de&gt;
Cc: Bhuvanchandra DV &lt;bhuvanchandra.dv@toradex.com&gt;
Cc: York Sun &lt;york.sun@nxp.com&gt;
Cc: Shaohui Xie &lt;Shaohui.Xie@nxp.com&gt;
Cc: Alison Wang &lt;b18965@freescale.com&gt;
</content>
</entry>
<entry>
<title>serial: lpuart: restructure lpuart driver</title>
<updated>2017-03-17T08:27:08Z</updated>
<author>
<name>Peng Fan</name>
</author>
<published>2017-02-22T08:21:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=c40d612b1a6e1c63f27089d1d8fa3016164cacdb'/>
<id>urn:sha1:c40d612b1a6e1c63f27089d1d8fa3016164cacdb</id>
<content type='text'>
Drop CONFIG_LPUART_32B_REG.
Move the register structure to a common file include/fsl_lpuart.h
Define lpuart_serial_platdata structure which includes the reg base and flags.
For 32Bit register access, use lpuart_read32/lpuart_write32 which handles
big/little endian.
For 8Bit register access, still use the orignal code.

Signed-off-by: Peng Fan &lt;peng.fan@nxp.com&gt;
Reviewed-by : Stefano Babic &lt;sbabic@denx.de&gt;
Cc: Bhuvanchandra DV &lt;bhuvanchandra.dv@toradex.com&gt;
Cc: York Sun &lt;york.sun@nxp.com&gt;
Cc: Shaohui Xie &lt;Shaohui.Xie@nxp.com&gt;
Cc: Alison Wang &lt;b18965@freescale.com&gt;
</content>
</entry>
</feed>
