diff options
author | Stafford Horne <shorne@gmail.com> | 2022-06-12 20:53:44 +0900 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2022-09-04 07:02:56 +0100 |
commit | 65f5144e1726c36c97df7e70484250941aafaa27 (patch) | |
tree | 9b52b2dcbead78aa6d7c14c1378fa5b52d5f1676 /include | |
parent | 0fd8a106efb6bc2e55b3e9629b106d13a7214570 (diff) |
goldfish_rtc: Add big-endian property
Add a new property "big-endian" to allow configuring the RTC as either
little or big endian, the default is little endian.
Currently overriding the default to big endian is only used by the m68k
virt platform. New platforms should prefer to use little endian and not
set this.
Cc: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/rtc/goldfish_rtc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/rtc/goldfish_rtc.h b/include/hw/rtc/goldfish_rtc.h index 79ca7daf5d..162be33863 100644 --- a/include/hw/rtc/goldfish_rtc.h +++ b/include/hw/rtc/goldfish_rtc.h @@ -42,6 +42,8 @@ struct GoldfishRTCState { uint32_t irq_pending; uint32_t irq_enabled; uint32_t time_high; + + bool big_endian; }; #endif |