# HG changeset patch # User Paul Boddie # Date 1714855975 -7200 # Node ID 6f492d79dbc0d9e61af3bf7c06256371e20c7f65 # Parent 16d7ccdedcf0d309db64954c5d006e24d84e00e4 Added JZ4780-specific register details. diff -r 16d7ccdedcf0 -r 6f492d79dbc0 pkg/devices/lib/rtc/include/rtc-defs.h --- a/pkg/devices/lib/rtc/include/rtc-defs.h Sat May 04 01:31:54 2024 +0200 +++ b/pkg/devices/lib/rtc/include/rtc-defs.h Sat May 04 22:52:55 2024 +0200 @@ -39,7 +39,8 @@ Hibernate_wakeup_status = 0x030, // HWRSR Hibernate_scratch_pattern = 0x034, // HSPR Hibernate_write_enable_pattern = 0x03c, // WENR - Hibernate_wakeup_pin_configure = 0x048, // WKUPPINCR + Hibernate_wakeup_pin_configure = 0x048, // WKUPPINCR (X1600) + Power_on_control_register = 0x048, // PWRONCR (JZ4780) }; // Field definitions. @@ -122,4 +123,10 @@ Wakeup_pin_extended_press_enable = 0x0000000f, // P_RST_LEN }; +enum Power_on_control_register_bits : unsigned +{ + Power_off_assert_length_mask = 0x000000f0, // PWROFF_LEN + Power_on_enable = 0x00000001, // PWRON_EN +}; + #endif /* __cplusplus */