<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/atf/plat/rockchip/common/include, branch master</title>
<subtitle>Broadcom-s Trusted Firmware A</subtitle>
<id>https://git.openwrt.org/project/bcm63xx/atf/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/bcm63xx/atf/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/'/>
<updated>2019-08-15T15:30:13Z</updated>
<entry>
<title>Merge changes from topic "rockchip-uart-fixes" into integration</title>
<updated>2019-08-15T15:30:13Z</updated>
<author>
<name>Paul Beesley</name>
</author>
<published>2019-08-15T15:30:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=99becbe3dff999c4a54bf641b5afe846d3ac20a8'/>
<id>urn:sha1:99becbe3dff999c4a54bf641b5afe846d3ac20a8</id>
<content type='text'>
* changes:
  rockchip: rk3399: store actual debug uart information on suspend
  rockchip: move dt-coreboot uart distinction into param handling code
  rockchip: make uart baudrate configurable
  rockchip: px30: add uart5 as option for serial output
</content>
</entry>
<entry>
<title>rockchip: move dt-coreboot uart distinction into param handling code</title>
<updated>2019-08-09T07:40:19Z</updated>
<author>
<name>Heiko Stuebner</name>
</author>
<published>2019-08-05T14:40:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=dd4a0d1618a6367061ab507ea450db98bbf2cc36'/>
<id>urn:sha1:dd4a0d1618a6367061ab507ea450db98bbf2cc36</id>
<content type='text'>
Rockchip platforms can be booted from either u-boot or coreboot.

So far the Coreboot-console was initizalized from a coreboot data struct
in the early_param2 callbacks and dt-based consoles with data from the
rockchip_get_uart_* functions.

But later code may also need this console information for example for
special suspend handling. To make this easy follow a suggestion from
Julius Werner and move the coreboot&lt;-&gt;dt distinction into the
rockchip_get_uart_* functions, thus making correct data about the used
uart available to all Rockchip platform code at all times.

This includes a new rockchip_get_uart_clock as well, because while the
dt-platforms right now always just default the rate defined in a constant
Coreboot provides its own field for the clock rate and we don't want to
loose that information for the console init. Similarly the rk_uart_*
variables should move into the non-Coreboot code, to prevent them from
being marked as unused, which also requires the rk_get_uart_* functions
to move below the actual dt-parsing.

Signed-off-by: Heiko Stuebner &lt;heiko@sntech.de&gt;
Change-Id: I278d595d2aa6c6864187fc8979a9fbff9814feac
</content>
</entry>
<entry>
<title>rockchip: make uart baudrate configurable</title>
<updated>2019-08-05T15:52:06Z</updated>
<author>
<name>Heiko Stuebner</name>
</author>
<published>2019-08-05T12:46:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=30970e0f2979e297831f8ea27466aa3e67992ce4'/>
<id>urn:sha1:30970e0f2979e297831f8ea27466aa3e67992ce4</id>
<content type='text'>
A previous patch already allowed to configure the uart output from the
devicetree, but on Rockchip platforms we also have the issue of different
vendors using different baudrates for their uarts.

For example, rk3399 has a default baudrate of 115200 which is true for
ChromeOS-devices and boards from Theobroma-Systems, while all the boards
using the vendor boot chain actually use a baudrate of 1500000.

Similarly the newly added px30 has a default of said 1500000 but some
boards may want to use the more widely used 115200.

The devicetree stdout-path node already contains the desired baudrate,
so add simple code to parse it from there and override the default,
which stays unchanged.

Signed-off-by: Heiko Stuebner &lt;heiko@sntech.de&gt;
Change-Id: I7412139c3df3073a1996eb508ec08642ec6af90d
</content>
</entry>
<entry>
<title>Switch AARCH32/AARCH64 to __aarch64__</title>
<updated>2019-08-01T20:45:03Z</updated>
<author>
<name>Julius Werner</name>
</author>
<published>2019-07-09T21:02:43Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=402b3cf8766fe2cb4ae462f7ee7761d08a1ba56c'/>
<id>urn:sha1:402b3cf8766fe2cb4ae462f7ee7761d08a1ba56c</id>
<content type='text'>
NOTE: AARCH32/AARCH64 macros are now deprecated in favor of __aarch64__.

All common C compilers pre-define the same macros to signal which
architecture the code is being compiled for: __arm__ for AArch32 (or
earlier versions) and __aarch64__ for AArch64. There's no need for TF-A
to define its own custom macros for this. In order to unify code with
the export headers (which use __aarch64__ to avoid another dependency),
let's deprecate the AARCH32 and AARCH64 macros and switch the code base
over to the pre-defined standard macro. (Since it is somewhat
unintuitive that __arm__ only means AArch32, let's standardize on only
using __aarch64__.)

Change-Id: Ic77de4b052297d77f38fc95f95f65a8ee70cf200
Signed-off-by: Julius Werner &lt;jwerner@chromium.org&gt;
</content>
</entry>
<entry>
<title>Replace __ASSEMBLY__ with compiler-builtin __ASSEMBLER__</title>
<updated>2019-08-01T20:14:12Z</updated>
<author>
<name>Julius Werner</name>
</author>
<published>2019-07-09T20:49:11Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=d5dfdeb65ff5b7f24dded201d2945c7b74565ce8'/>
<id>urn:sha1:d5dfdeb65ff5b7f24dded201d2945c7b74565ce8</id>
<content type='text'>
NOTE: __ASSEMBLY__ macro is now deprecated in favor of __ASSEMBLER__.

All common C compilers predefine a macro called __ASSEMBLER__ when
preprocessing a .S file. There is no reason for TF-A to define it's own
__ASSEMBLY__ macro for this purpose instead. To unify code with the
export headers (which use __ASSEMBLER__ to avoid one extra dependency),
let's deprecate __ASSEMBLY__ and switch the code base over to the
predefined standard.

Change-Id: Id7d0ec8cf330195da80499c68562b65cb5ab7417
Signed-off-by: Julius Werner &lt;jwerner@chromium.org&gt;
</content>
</entry>
<entry>
<title>plat/rockchip: Use new bl31_params_parse_helper()</title>
<updated>2019-07-24T18:04:03Z</updated>
<author>
<name>Julius Werner</name>
</author>
<published>2019-05-30T23:57:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=3e02c7436cf40fb7f7eb4d3038b7fc1ed1eeaa5f'/>
<id>urn:sha1:3e02c7436cf40fb7f7eb4d3038b7fc1ed1eeaa5f</id>
<content type='text'>
The Rockchip platform is a prime candidate for switching to the new
bl31_params_parse_helper(), so switch it over. This will allow BL2
implementations on this platform to transparently switch over to the
version 2 parameter structure.

Change-Id: I540741d2425c93f66c8697ce749a351eb2b3a7e8
Signed-off-by: Julius Werner &lt;jwerner@chromium.org&gt;
</content>
</entry>
<entry>
<title>Factor out cross-BL API into export headers suitable for 3rd party code</title>
<updated>2019-07-24T03:25:34Z</updated>
<author>
<name>Julius Werner</name>
</author>
<published>2019-05-29T04:03:58Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=57bf6057721306d1ad1af1122a831789ded92885'/>
<id>urn:sha1:57bf6057721306d1ad1af1122a831789ded92885</id>
<content type='text'>
This patch adds a new include/export/ directory meant for inclusion in
third-party code. This is useful for cases where third-party code needs
to interact with TF-A interfaces and data structures (such as a custom
BL2-implementation like coreboot handing off to BL31). Directly
including headers from the TF-A repository avoids having to duplicate
all these definitions (and risk them going stale), but with the current
header structure this is not possible because handoff API definitions
are too deeply intertwined with other TF code/headers and chain-include
other headers that will not be available in the other environment.

The new approach aims to solve this by separating only the parts that
are really needed into these special headers that are self-contained and
will not chain-include other (non-export) headers. TF-A code should
never include them directly but should instead always include the
respective wrapper header, which will include the required prerequisites
(like &lt;stdint.h&gt;) before including the export header. Third-party code
can include the export headers via its own wrappers that make sure the
necessary definitions are available in whatever way that environment can
provide them.

Change-Id: Ifd769320ba51371439a8e5dd5b79c2516c3b43ab
Signed-off-by: Julius Werner &lt;jwerner@chromium.org&gt;
</content>
</entry>
<entry>
<title>plat/rockchip: Switch to use new common BL aux parameter library</title>
<updated>2019-07-24T03:25:30Z</updated>
<author>
<name>Julius Werner</name>
</author>
<published>2019-05-25T03:37:58Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=c1185ffde17cf2fdf50aac172a0be9e2d7669fd0'/>
<id>urn:sha1:c1185ffde17cf2fdf50aac172a0be9e2d7669fd0</id>
<content type='text'>
This patch changes all Rockchip platforms to use the new common BL aux
parameter helpers. Since the parameter space is now cleanly split in
generic and vendor-specific parameters and the COREBOOT_TABLE
parameter is now generic, the parameter type number for that parameter
has to change. Since it only affects coreboot which always builds TF as
a submodule and includes its headers directly to get these constants,
this should not cause any issues. In general, after this point, we
should avoid changing already assigned parameter type numbers whenever
possible.

Change-Id: Ic99ddd1e91ff5e5fe212fa30c793a0b8394c9dad
Signed-off-by: Julius Werner &lt;jwerner@chromium.org&gt;
</content>
</entry>
<entry>
<title>rockchip: Allow console device to be set by DTB.</title>
<updated>2019-05-01T15:52:53Z</updated>
<author>
<name>Christoph Müllner</name>
</author>
<published>2019-04-19T12:16:27Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=220c33a2c5e5590fff774559c5fc81c81b7052f3'/>
<id>urn:sha1:220c33a2c5e5590fff774559c5fc81c81b7052f3</id>
<content type='text'>
Currently the compile-time constant PLAT_RK_UART_BASE defines
which UART is used as console device. E.g. on RK3399 it is set
to UART2. That means, that a single bl31 image can not be used
for two boards, which just differ on the UART console.

This patch addresses this limitation by parsing the "stdout-path"
property from the "chosen" node in the DTB. The expected property
string is expected to have the form "serialN:XXX", with
N being either 0, 1, 2, 3 or 4. When the property is found, it will
be used to override PLAT_RK_UART_BASE.

Tested on RK3399-Q7, with a stdout-path of "serial0:115200n8".

Signed-off-by: Christoph Müllner &lt;christophm30@gmail.com&gt;
Change-Id: Iafe1320e77ab006c121f8d52745d54cef68a48c7
</content>
</entry>
<entry>
<title>rockchip: add common aarch32 support</title>
<updated>2019-04-25T11:37:56Z</updated>
<author>
<name>Heiko Stuebner</name>
</author>
<published>2019-03-14T21:11:34Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=82e18f89982141f1f3a0f493d15f99bfc874ffd3'/>
<id>urn:sha1:82e18f89982141f1f3a0f493d15f99bfc874ffd3</id>
<content type='text'>
There are a number or ARMv7 Rockchip SoCs that are very similar in their
bringup routines to the existing arm64 SoCs, so there is quite a high
commonality possible here.

Things like virtualization also need psci and hyp-mode and instead of
trying to cram this into bootloaders like u-boot, barebox or coreboot
(all used in the field), re-use the existing infrastructure in TF-A
for this (both Rockchip plat support and armv7 support in general).

So add core support for aarch32 Rockchip SoCs, with actual soc support
following in a separate patch.

Signed-off-by: Heiko Stuebner &lt;heiko@sntech.de&gt;
Change-Id: I298453985b5d8434934fc0c742fda719e994ba0b
</content>
</entry>
</feed>
