mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-12 16:07:30 +00:00
92369844ec
On the A31s the RTC is by default secured. Thus when u-boot loads the kernel in non-secure world, the RTC is unavailable. The SoC has a TrustZone Protection Controller, which can be used to enable non-secure access to the RTC. On the A31 the TZPC doesn't seem to do anything, i.e. changes to its register contents do not affect access to the RTC. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
23 lines
529 B
C
23 lines
529 B
C
/*
|
|
* (C) Copyright 2015 Chen-Yu Tsai <wens@csie.org>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _SUNXI_TZPC_H
|
|
#define _SUNXI_TZPC_H
|
|
|
|
#ifndef __ASSEMBLY__
|
|
struct sunxi_tzpc {
|
|
u32 r0size; /* 0x00 Size of secure RAM region */
|
|
u32 decport0_status; /* 0x04 Status of decode protection port 0 */
|
|
u32 decport0_set; /* 0x08 Set decode protection port 0 */
|
|
u32 decport0_clear; /* 0x0c Clear decode protection port 0 */
|
|
};
|
|
#endif
|
|
|
|
#define SUNXI_TZPC_DECPORT0_RTC (1 << 1)
|
|
|
|
void tzpc_init(void);
|
|
|
|
#endif /* _SUNXI_TZPC_H */
|