<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/u-boot/drivers/core/root.c, branch master</title>
<subtitle>Broadcom-s U-Boot</subtitle>
<id>https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/'/>
<updated>2019-05-21T23:33:23Z</updated>
<entry>
<title>dm: core: Fix dm_extended_scan_fdt()</title>
<updated>2019-05-21T23:33:23Z</updated>
<author>
<name>Patrice Chotard</name>
</author>
<published>2019-05-15T08:07:01Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=ee730a7cd2afe445e53e92b5c37396a5b118f7af'/>
<id>urn:sha1:ee730a7cd2afe445e53e92b5c37396a5b118f7af</id>
<content type='text'>
This function  takes an argument, blob,
but never uses it, instead uses gd-&gt;fdt_blob directly.

Fixes: e81c98649b7a ("dm: core: add clocks node scan")

Reported-by: AKASHI Takahiro &lt;takahiro.akashi@linaro.org&gt;
Signed-off-by: Patrice Chotard &lt;patrice.chotard@st.com&gt;
Reviewed-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
</content>
</entry>
<entry>
<title>dm: core: Change platform specific translation-offset handling</title>
<updated>2019-04-24T02:26:43Z</updated>
<author>
<name>Stefan Roese</name>
</author>
<published>2019-04-12T14:42:28Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=f2100f6f77212e2a5b3db165e84eed911be5c3f6'/>
<id>urn:sha1:f2100f6f77212e2a5b3db165e84eed911be5c3f6</id>
<content type='text'>
Testing has shown that the current DM implementation of a platform /
board specific translation offset, as its needed for the SPL on MVEBU
platforms is buggy. The translation offset is confingured too late,
after the driver bind functions are run. This may result in incorrect
address translations. With the current implementation its not possible
to configure the offset earlier, as the DM code has not run at all.

This patch now removed the set_/get_translation_offset() calls and
moves the translation offset into the GD variable translation_offset.
This variable will get used when CONFIG_TRANSLATION_OFFSET is enabled.
This option is enabled only for MVEBU on ARM32 platforms, where its
currenty needed and configured in the SPL.

Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
Cc: Pierre Bourdon &lt;delroth@gmail.com&gt;
Cc: Baruch Siach &lt;baruch@tkos.co.il&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Heiko Schocher &lt;hs@denx.de&gt;
Cc: Tom Rini &lt;trini@konsulko.com&gt;
Tested-by: Pierre Bourdon &lt;delroth@gmail.com&gt;
Tested-by: Baruch Siach &lt;baruch@tkos.co.il&gt;
</content>
</entry>
<entry>
<title>drivers: core: nullify gd-&gt;dm_root after dm_uninit()</title>
<updated>2018-12-10T06:23:45Z</updated>
<author>
<name>Jean-Jacques Hiblot</name>
</author>
<published>2018-12-07T13:50:54Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=c483f4cec07fcd732ea4c4dfa98b584ed9295b3d'/>
<id>urn:sha1:c483f4cec07fcd732ea4c4dfa98b584ed9295b3d</id>
<content type='text'>
To reset the DM after a new dtb is loaded, we need to call dm_uninit()
and then dm_init(). This fails however because gd-&gt;dm_root is not nullified
by dm_uninit().
Fixing it by setting gd-&gt;dm_root in dm_uninit().

Signed-off-by: Jean-Jacques Hiblot &lt;jjhiblot@ti.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Heiko Schocher &lt;hs@denx.de&gt;
</content>
</entry>
<entry>
<title>dm: core: Mirror the chosen node parse logic in the livetree scanning</title>
<updated>2018-11-14T17:16:27Z</updated>
<author>
<name>Bin Meng</name>
</author>
<published>2018-10-11T05:07:00Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=8e39afcd942cdc52acaec33bce6b807b0dcc8cfe'/>
<id>urn:sha1:8e39afcd942cdc52acaec33bce6b807b0dcc8cfe</id>
<content type='text'>
Commit f2006808f099: ("dm: core: parse chosen node") added a logic
to parse the chosen node during dm_scan_fdt_node(), but unfortunately
it missed adding the same logic in dm_scan_fdt_live(). This mirrors
the logic in the livetree version.

The weird thing is that commit f2006808f099 did update the test case
to test such logic, but even if I reset to that commit, the test case
still fails, and I have no idea how it could pass.

With this fix, the following 2 test cases now pass:

Test: dm_test_bus_children: bus.c
test/dm/bus.c:112, dm_test_bus_children(): num_devices ==
list_count_items(&amp;uc-&gt;dev_head): Expected 7, got 6

Test: dm_test_fdt: test-fdt.c
test/dm/test-fdt.c:184, dm_test_fdt(): num_devices ==
list_count_items(&amp;uc-&gt;dev_head): Expected 7, got 6

Fixes: f2006808f099 ("dm: core: parse chosen node")
Signed-off-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in lists_bind_fdt()</title>
<updated>2018-11-14T17:16:27Z</updated>
<author>
<name>Bin Meng</name>
</author>
<published>2018-10-11T05:06:58Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=8d773c4ab3f77a5a6ceed974d00083a312454660'/>
<id>urn:sha1:8d773c4ab3f77a5a6ceed974d00083a312454660</id>
<content type='text'>
Currently the comments of several APIs (eg: dm_init_and_scan()) say:

@pre_reloc_only: If true, bind only drivers with the DM_FLAG_PRE_RELOC
flag. If false bind all drivers.

The 'Pre-Relocation Support' chapter in doc/driver-model/README.txt
documents the same that both device tree properties and driver flag
are supported.

However the implementation only checks these special device tree
properties without checking the driver flag at all. This updates
lists_bind_fdt() to consider both scenarios.

Signed-off-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Squashed in http://patchwork.ozlabs.org/patch/996473/ :
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>dm: fdt: scan for devices under /firmware too</title>
<updated>2018-10-07T14:47:38Z</updated>
<author>
<name>Jens Wiklander</name>
</author>
<published>2018-09-25T14:40:05Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=747558d014577526bf2e8d9fe9ca748fdbf75d8a'/>
<id>urn:sha1:747558d014577526bf2e8d9fe9ca748fdbf75d8a</id>
<content type='text'>
Just as /chosen may contain devices /firmware may contain devices, scan
for devices under /firmware too.

Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Jens Wiklander &lt;jens.wiklander@linaro.org&gt;
</content>
</entry>
<entry>
<title>dm: core: Scan "/firmware" node by default</title>
<updated>2018-09-18T14:12:21Z</updated>
<author>
<name>Rajan Vaja</name>
</author>
<published>2018-08-10T08:45:34Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=1712ca21924bff678f19fd3141f435408d23bdbf'/>
<id>urn:sha1:1712ca21924bff678f19fd3141f435408d23bdbf</id>
<content type='text'>
All Linux firmware drivers are put under "/firmware" node
and it has support to populate "/firmware" node by default.

u-boot and Linux can share same DTB. In this case, driver
probe for devices under "/firmware" will not be invoked
as "/firmware" does not have its own "compatible" property.

This patch scans "/firmware" node by default like "/clocks".

Signed-off-by: Rajan Vaja &lt;rajan.vaja@xilinx.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>dm: core: Move "/clock" node scan into function</title>
<updated>2018-09-18T14:12:21Z</updated>
<author>
<name>Rajan Vaja</name>
</author>
<published>2018-08-10T08:45:33Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=68d215d907b1512a8089f47a9d47d02a9a3b179e'/>
<id>urn:sha1:68d215d907b1512a8089f47a9d47d02a9a3b179e</id>
<content type='text'>
Create separate function for scanning node by path and
move "/clock" node scan code into that function.

This will be usable if scanning of more node is required.

Signed-off-by: Rajan Vaja &lt;rajan.vaja@xilinx.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&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-03.infra.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>dm: core: make fixed-clock dt scan live dt compatible</title>
<updated>2018-04-01T14:15:11Z</updated>
<author>
<name>Andy Yan</name>
</author>
<published>2018-03-01T06:08:15Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=bcfdf055f8956b784085bafa14f1731cc141c414'/>
<id>urn:sha1:bcfdf055f8956b784085bafa14f1731cc141c414</id>
<content type='text'>
dm_scan_fdt_node can't work when live dt is active,
we should use dm_scan_fdt_live instead.

Signed-off-by: Andy Yan &lt;andy.yan@rock-chips.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
</feed>
