<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/u-boot/arch/sh/cpu/sh4, 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-05-07T13:34:12Z</updated>
<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>sh: share the correct version of start.S among all cpus</title>
<updated>2016-12-03T02:32:53Z</updated>
<author>
<name>Vladimir Zapolskiy</name>
</author>
<published>2016-11-27T22:15:34Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=3500581ef3461c7cf5ca6fef7b45dd2dee0df28e'/>
<id>urn:sha1:3500581ef3461c7cf5ca6fef7b45dd2dee0df28e</id>
<content type='text'>
It is easy to note that SH2/SH3/SH4 start.S code is practically
the same with a minor difference for SH2 where a short data header is
present. To avoid unwanted code duplication and to automatically
convert SH2 and SH3 platforms to generic board support move fixed SH4
start.S into arch/sh/lib/start.S and share it among all platforms.

Signed-off-by: Vladimir Zapolskiy &lt;vz@mleia.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>sh4: fix start.S by calling board_init_f() after first code relocation</title>
<updated>2016-12-03T02:32:53Z</updated>
<author>
<name>Vladimir Zapolskiy</name>
</author>
<published>2016-11-27T22:15:33Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=9c141b2bd72f9e51bd627580be7ffca93ba9b2d4'/>
<id>urn:sha1:9c141b2bd72f9e51bd627580be7ffca93ba9b2d4</id>
<content type='text'>
Like on ARM platform keep the first code relocation from a U-boot
image storage to RAM at CONFIG_SYS_TEXT_BASE, then pass execution to a
generic board_init_f() with empty GD flags. If CONFIG_SYS_TEXT_BASE is
equal to a calculated by board_init_f() relocation address there will
be no more code and data copy, however it's worth to mention that the
first copy happens even if $pc on _start is the same as
CONFIG_SYS_TEXT_BASE, on practice this works without a problem.

Also note that _sh_start is renamed back to _start to correct
gd-&gt;mon_len calculation by setup_mon_len(), the opposite rename was
done in pre-generic board commit 2024b968ee9 ("sh: Fix build in start.S").

Signed-off-by: Vladimir Zapolskiy &lt;vz@mleia.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>sh: add shared relocate_code() function and call board_init_r()</title>
<updated>2016-12-03T02:32:52Z</updated>
<author>
<name>Vladimir Zapolskiy</name>
</author>
<published>2016-11-27T22:15:32Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=bccf09e0e16f812dd61c4972a1125b58a221a87d'/>
<id>urn:sha1:bccf09e0e16f812dd61c4972a1125b58a221a87d</id>
<content type='text'>
Commits b61e90e6fd83 ("sh: Drop the arch-specific board init") and
f41e6088eb1a ("sh: Fix build errors for generic board") left code and
data relocation done in start.S, however further actual U-boot
configuration is not started anymore. Practically SH boards with the
code relocated into the expected position by start.S still can be
booted, so the change adds this option and provides an option how to
relocate code for board_init_r() execution.

Signed-off-by: Vladimir Zapolskiy &lt;vz@mleia.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>sh4: cache: move exported cache manipulation functions into cache.c</title>
<updated>2016-12-03T02:32:42Z</updated>
<author>
<name>Vladimir Zapolskiy</name>
</author>
<published>2016-11-27T22:15:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=b33718c614afc8f60285311ab587ff1228e5bd29'/>
<id>urn:sha1:b33718c614afc8f60285311ab587ff1228e5bd29</id>
<content type='text'>
No functional change, moving cache manipulation functions into cache.c
allows to collect all of them in a single location and as a pleasant
side effect cache_control() function can be unexported now.

Signed-off-by: Vladimir Zapolskiy &lt;vz@mleia.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>sh: cache: don't modify CCR from P1 area</title>
<updated>2016-12-03T02:32:41Z</updated>
<author>
<name>Vladimir Zapolskiy</name>
</author>
<published>2016-11-27T22:15:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=6ab8b961de4e883dc61fb7dfd22a9ac7ab359250'/>
<id>urn:sha1:6ab8b961de4e883dc61fb7dfd22a9ac7ab359250</id>
<content type='text'>
cache_wback_all() is a local function and it is called from
cache_control() only, which is in turn jumps to P2 area.

The change fixes an issue when cache_wback_all() returns from P2 to
P1, however cache_control() continues to manipulate with CCR
register, according to the User's Manual this is restricted.

Signed-off-by: Vladimir Zapolskiy &lt;vz@mleia.com&gt;
</content>
</entry>
<entry>
<title>sh: cache use jump_to_P2() and back_to_P1() from asm/system.h</title>
<updated>2016-12-03T02:32:41Z</updated>
<author>
<name>Vladimir Zapolskiy</name>
</author>
<published>2016-11-27T22:15:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=c230a378381475acbaeed6f16a45e44c6c92e2c1'/>
<id>urn:sha1:c230a378381475acbaeed6f16a45e44c6c92e2c1</id>
<content type='text'>
Both jump_to_P2() and back_to_P1() functions are found in asm/system.h
header file and functionally they are the same, don't redefine them.

Signed-off-by: Vladimir Zapolskiy &lt;vz@mleia.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>sh4: cache: correct flush_cache() to writeback and invalidate</title>
<updated>2016-12-03T02:32:39Z</updated>
<author>
<name>Vladimir Zapolskiy</name>
</author>
<published>2016-11-27T22:15:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=0f62bf633f287b8e9af1384d0ef1857fc5e8363e'/>
<id>urn:sha1:0f62bf633f287b8e9af1384d0ef1857fc5e8363e</id>
<content type='text'>
In common usecases flush_cache() assumes both cache invalidation and
write-back to memory, instead of doing cache invalidation only with
the wrapped 'ocbi' instruction pin flush_cache() to cache invalidation
with memory write-back done by 'ocbp'.

Signed-off-by: Vladimir Zapolskiy &lt;vz@mleia.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>sh4: cache: correct dcache flush to invalidate with write-back</title>
<updated>2016-12-03T02:32:39Z</updated>
<author>
<name>Vladimir Zapolskiy</name>
</author>
<published>2016-11-27T22:15:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=ee47c4cb2b3413b3ee0edd2207de46d715b2628c'/>
<id>urn:sha1:ee47c4cb2b3413b3ee0edd2207de46d715b2628c</id>
<content type='text'>
In common usecases flush_cache() assumes both cache invalidation and
write-back to memory, thus in flush_dcache_range() implementation
change SH4 cache write-back only instruction 'ocbwb' with cache purge
instruction 'ocbp', according to the User's Manual there should be no
performance penalty for that.

Note that under circumstances only cache invalidation is expected from
flush_cache() call, in these occasional cases the current version of
flush_cache() works, which is a wrapper over invalidate_dcache_range()
at the moment, this will be fixed in the following change.

Signed-off-by: Vladimir Zapolskiy &lt;vz@mleia.com&gt;
</content>
</entry>
<entry>
<title>sh: Fix build errors for generic board</title>
<updated>2016-05-27T19:39:51Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2016-05-15T00:49:29Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=f41e6088eb1a32fdb717110dde66165728e484aa'/>
<id>urn:sha1:f41e6088eb1a32fdb717110dde66165728e484aa</id>
<content type='text'>
This includes the following fixes:
- Define needed __init_end symbol - see initr_reloc_global_data()
- Drop SH-specific struct bd_info
- Add an empty relocate_code() function

This prevents build errors with generic board, but the code will still need
work. Perhaps this is a better alternative than deleting the code.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
</feed>
