/***************************************************************************
 *             __________               __   ___.
 *   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
 *   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
 *   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
 *   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
 *                     \/            \/     \/    \/            \/
 * This file was automatically generated by headergen, DO NOT EDIT it.
 * headergen version: 3.0.0
 * stmp3700 version: 2.4.0
 * stmp3700 authors: Amaury Pouly
 *
 * Copyright (C) 2015 by the authors
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 * KIND, either express or implied.
 *
 ****************************************************************************/
#ifndef __HEADERGEN_STMP3700_RTC_H__
#define __HEADERGEN_STMP3700_RTC_H__

#define HW_RTC_CTRL                             HW(RTC_CTRL)
#define HWA_RTC_CTRL                            (0x8005c000 + 0x0)
#define HWT_RTC_CTRL                            HWIO_32_RW
#define HWN_RTC_CTRL                            RTC_CTRL
#define HWI_RTC_CTRL                            
#define HW_RTC_CTRL_SET                         HW(RTC_CTRL_SET)
#define HWA_RTC_CTRL_SET                        (HWA_RTC_CTRL + 0x4)
#define HWT_RTC_CTRL_SET                        HWIO_32_WO
#define HWN_RTC_CTRL_SET                        RTC_CTRL
#define HWI_RTC_CTRL_SET                        
#define HW_RTC_CTRL_CLR                         HW(RTC_CTRL_CLR)
#define HWA_RTC_CTRL_CLR                        (HWA_RTC_CTRL + 0x8)
#define HWT_RTC_CTRL_CLR                        HWIO_32_WO
#define HWN_RTC_CTRL_CLR                        RTC_CTRL
#define HWI_RTC_CTRL_CLR                        
#define HW_RTC_CTRL_TOG                         HW(RTC_CTRL_TOG)
#define HWA_RTC_CTRL_TOG                        (HWA_RTC_CTRL + 0xc)
#define HWT_RTC_CTRL_TOG                        HWIO_32_WO
#define HWN_RTC_CTRL_TOG                        RTC_CTRL
#define HWI_RTC_CTRL_TOG                        
#define BP_RTC_CTRL_SFTRST                      31
#define BM_RTC_CTRL_SFTRST                      0x80000000
#define BF_RTC_CTRL_SFTRST(v)                   (((v) & 0x1) << 31)
#define BFM_RTC_CTRL_SFTRST(v)                  BM_RTC_CTRL_SFTRST
#define BF_RTC_CTRL_SFTRST_V(e)                 BF_RTC_CTRL_SFTRST(BV_RTC_CTRL_SFTRST__##e)
#define BFM_RTC_CTRL_SFTRST_V(v)                BM_RTC_CTRL_SFTRST
#define BP_RTC_CTRL_CLKGATE                     30
#define BM_RTC_CTRL_CLKGATE                     0x40000000
#define BF_RTC_CTRL_CLKGATE(v)                  (((v) & 0x1) << 30)
#define BFM_RTC_CTRL_CLKGATE(v)                 BM_RTC_CTRL_CLKGATE
#define BF_RTC_CTRL_CLKGATE_V(e)                BF_RTC_CTRL_CLKGATE(BV_RTC_CTRL_CLKGATE__##e)
#define BFM_RTC_CTRL_CLKGATE_V(v)               BM_RTC_CTRL_CLKGATE
#define BP_RTC_CTRL_SUPPRESS_COPY2ANALOG        6
#define BM_RTC_CTRL_SUPPRESS_COPY2ANALOG        0x40
#define BF_RTC_CTRL_SUPPRESS_COPY2ANALOG(v)     (((v) & 0x1) << 6)
#define BFM_RTC_CTRL_SUPPRESS_COPY2ANALOG(v)    BM_RTC_CTRL_SUPPRESS_COPY2ANALOG
#define BF_RTC_CTRL_SUPPRESS_COPY2ANALOG_V(e)   BF_RTC_CTRL_SUPPRESS_COPY2ANALOG(BV_RTC_CTRL_SUPPRESS_COPY2ANALOG__##e)
#define BFM_RTC_CTRL_SUPPRESS_COPY2ANALOG_V(v)  BM_RTC_CTRL_SUPPRESS_COPY2ANALOG
#define BP_RTC_CTRL_FORCE_UPDATE                5
#define BM_RTC_CTRL_FORCE_UPDATE                0x20
#define BF_RTC_CTRL_FORCE_UPDATE(v)             (((v) & 0x1) << 5)
#define BFM_RTC_CTRL_FORCE_UPDATE(v)            BM_RTC_CTRL_FORCE_UPDATE
#define BF_RTC_CTRL_FORCE_UPDATE_V(e)           BF_RTC_CTRL_FORCE_UPDATE(BV_RTC_CTRL_FORCE_UPDATE__##e)
#define BFM_RTC_CTRL_FORCE_UPDATE_V(v)          BM_RTC_CTRL_FORCE_UPDATE
#define BP_RTC_CTRL_WATCHDOGEN                  4
#define BM_RTC_CTRL_WATCHDOGEN                  0x10
#define BF_RTC_CTRL_WATCHDOGEN(v)               (((v) & 0x1) << 4)
#define BFM_RTC_CTRL_WATCHDOGEN(v)              BM_RTC_CTRL_WATCHDOGEN
#define BF_RTC_CTRL_WATCHDOGEN_V(e)             BF_RTC_CTRL_WATCHDOGEN(BV_RTC_CTRL_WATCHDOGEN__##e)
#define BFM_RTC_CTRL_WATCHDOGEN_V(v)            BM_RTC_CTRL_WATCHDOGEN
#define BP_RTC_CTRL_ONEMSEC_IRQ                 3
#define BM_RTC_CTRL_ONEMSEC_IRQ                 0x8
#define BF_RTC_CTRL_ONEMSEC_IRQ(v)              (((v) & 0x1) << 3)
#define BFM_RTC_CTRL_ONEMSEC_IRQ(v)             BM_RTC_CTRL_ONEMSEC_IRQ
#define BF_RTC_CTRL_ONEMSEC_IRQ_V(e)            BF_RTC_CTRL_ONEMSEC_IRQ(BV_RTC_CTRL_ONEMSEC_IRQ__##e)
#define BFM_RTC_CTRL_ONEMSEC_IRQ_V(v)           BM_RTC_CTRL_ONEMSEC_IRQ
#define BP_RTC_CTRL_ALARM_IRQ                   2
#define BM_RTC_CTRL_ALARM_IRQ                   0x4
#define BF_RTC_CTRL_ALARM_IRQ(v)                (((v) & 0x1) << 2)
#define BFM_RTC_CTRL_ALARM_IRQ(v)               BM_RTC_CTRL_ALARM_IRQ
#define BF_RTC_CTRL_ALARM_IRQ_V(e)              BF_RTC_CTRL_ALARM_IRQ(BV_RTC_CTRL_ALARM_IRQ__##e)
#define BFM_RTC_CTRL_ALARM_IRQ_V(v)             BM_RTC_CTRL_ALARM_IRQ
#define BP_RTC_CTRL_ONEMSEC_IRQ_EN              1
#define BM_RTC_CTRL_ONEMSEC_IRQ_EN              0x2
#define BF_RTC_CTRL_ONEMSEC_IRQ_EN(v)           (((v) & 0x1) << 1)
#define BFM_RTC_CTRL_ONEMSEC_IRQ_EN(v)          BM_RTC_CTRL_ONEMSEC_IRQ_EN
#define BF_RTC_CTRL_ONEMSEC_IRQ_EN_V(e)         BF_RTC_CTRL_ONEMSEC_IRQ_EN(BV_RTC_CTRL_ONEMSEC_IRQ_EN__##e)
#define BFM_RTC_CTRL_ONEMSEC_IRQ_EN_V(v)        BM_RTC_CTRL_ONEMSEC_IRQ_EN
#define BP_RTC_CTRL_ALARM_IRQ_EN                0
#define BM_RTC_CTRL_ALARM_IRQ_EN                0x1
#define BF_RTC_CTRL_ALARM_IRQ_EN(v)             (((v) & 0x1) << 0)
#define BFM_RTC_CTRL_ALARM_IRQ_EN(v)            BM_RTC_CTRL_ALARM_IRQ_EN
#define BF_RTC_CTRL_ALARM_IRQ_EN_V(e)           BF_RTC_CTRL_ALARM_IRQ_EN(BV_RTC_CTRL_ALARM_IRQ_EN__##e)
#define BFM_RTC_CTRL_ALARM_IRQ_EN_V(v)          BM_RTC_CTRL_ALARM_IRQ_EN

#define HW_RTC_STAT                         HW(RTC_STAT)
#define HWA_RTC_STAT                        (0x8005c000 + 0x10)
#define HWT_RTC_STAT                        HWIO_32_RW
#define HWN_RTC_STAT                        RTC_STAT
#define HWI_RTC_STAT                        
#define BP_RTC_STAT_RTC_PRESENT             31
#define BM_RTC_STAT_RTC_PRESENT             0x80000000
#define BF_RTC_STAT_RTC_PRESENT(v)          (((v) & 0x1) << 31)
#define BFM_RTC_STAT_RTC_PRESENT(v)         BM_RTC_STAT_RTC_PRESENT
#define BF_RTC_STAT_RTC_PRESENT_V(e)        BF_RTC_STAT_RTC_PRESENT(BV_RTC_STAT_RTC_PRESENT__##e)
#define BFM_RTC_STAT_RTC_PRESENT_V(v)       BM_RTC_STAT_RTC_PRESENT
#define BP_RTC_STAT_ALARM_PRESENT           30
#define BM_RTC_STAT_ALARM_PRESENT           0x40000000
#define BF_RTC_STAT_ALARM_PRESENT(v)        (((v) & 0x1) << 30)
#define BFM_RTC_STAT_ALARM_PRESENT(v)       BM_RTC_STAT_ALARM_PRESENT
#define BF_RTC_STAT_ALARM_PRESENT_V(e)      BF_RTC_STAT_ALARM_PRESENT(BV_RTC_STAT_ALARM_PRESENT__##e)
#define BFM_RTC_STAT_ALARM_PRESENT_V(v)     BM_RTC_STAT_ALARM_PRESENT
#define BP_RTC_STAT_WATCHDOG_PRESENT        29
#define BM_RTC_STAT_WATCHDOG_PRESENT        0x20000000
#define BF_RTC_STAT_WATCHDOG_PRESENT(v)     (((v) & 0x1) << 29)
#define BFM_RTC_STAT_WATCHDOG_PRESENT(v)    BM_RTC_STAT_WATCHDOG_PRESENT
#define BF_RTC_STAT_WATCHDOG_PRESENT_V(e)   BF_RTC_STAT_WATCHDOG_PRESENT(BV_RTC_STAT_WATCHDOG_PRESENT__##e)
#define BFM_RTC_STAT_WATCHDOG_PRESENT_V(v)  BM_RTC_STAT_WATCHDOG_PRESENT
#define BP_RTC_STAT_XTAL32000_PRESENT       28
#define BM_RTC_STAT_XTAL32000_PRESENT       0x10000000
#define BF_RTC_STAT_XTAL32000_PRESENT(v)    (((v) & 0x1) << 28)
#define BFM_RTC_STAT_XTAL32000_PRESENT(v)   BM_RTC_STAT_XTAL32000_PRESENT
#define BF_RTC_STAT_XTAL32000_PRESENT_V(e)  BF_RTC_STAT_XTAL32000_PRESENT(BV_RTC_STAT_XTAL32000_PRESENT__##e)
#define BFM_RTC_STAT_XTAL32000_PRESENT_V(v) BM_RTC_STAT_XTAL32000_PRESENT
#define BP_RTC_STAT_XTAL32768_PRESENT       27
#define BM_RTC_STAT_XTAL32768_PRESENT       0x8000000
#define BF_RTC_STAT_XTAL32768_PRESENT(v)    (((v) & 0x1) << 27)
#define BFM_RTC_STAT_XTAL32768_PRESENT(v)   BM_RTC_STAT_XTAL32768_PRESENT
#define BF_RTC_STAT_XTAL32768_PRESENT_V(e)  BF_RTC_STAT_XTAL32768_PRESENT(BV_RTC_STAT_XTAL32768_PRESENT__##e)
#define BFM_RTC_STAT_XTAL32768_PRESENT_V(v) BM_RTC_STAT_XTAL32768_PRESENT
#define BP_RTC_STAT_STALE_REGS              16
#define BM_RTC_STAT_STALE_REGS              0xff0000
#define BF_RTC_STAT_STALE_REGS(v)           (((v) & 0xff) << 16)
#define BFM_RTC_STAT_STALE_REGS(v)          BM_RTC_STAT_STALE_REGS
#define BF_RTC_STAT_STALE_REGS_V(e)         BF_RTC_STAT_STALE_REGS(BV_RTC_STAT_STALE_REGS__##e)
#define BFM_RTC_STAT_STALE_REGS_V(v)        BM_RTC_STAT_STALE_REGS
#define BP_RTC_STAT_NEW_REGS                8
#define BM_RTC_STAT_NEW_REGS                0xff00
#define BF_RTC_STAT_NEW_REGS(v)             (((v) & 0xff) << 8)
#define BFM_RTC_STAT_NEW_REGS(v)            BM_RTC_STAT_NEW_REGS
#define BF_RTC_STAT_NEW_REGS_V(e)           BF_RTC_STAT_NEW_REGS(BV_RTC_STAT_NEW_REGS__##e)
#define BFM_RTC_STAT_NEW_REGS_V(v)          BM_RTC_STAT_NEW_REGS

#define HW_RTC_MILLISECONDS             HW(RTC_MILLISECONDS)
#define HWA_RTC_MILLISECONDS            (0x8005c000 + 0x20)
#define HWT_RTC_MILLISECONDS            HWIO_32_RW
#define HWN_RTC_MILLISECONDS            RTC_MILLISECONDS
#define HWI_RTC_MILLISECONDS            
#define HW_RTC_MILLISECONDS_SET         HW(RTC_MILLISECONDS_SET)
#define HWA_RTC_MILLISECONDS_SET        (HWA_RTC_MILLISECONDS + 0x4)
#define HWT_RTC_MILLISECONDS_SET        HWIO_32_WO
#define HWN_RTC_MILLISECONDS_SET        RTC_MILLISECONDS
#define HWI_RTC_MILLISECONDS_SET        
#define HW_RTC_MILLISECONDS_CLR         HW(RTC_MILLISECONDS_CLR)
#define HWA_RTC_MILLISECONDS_CLR        (HWA_RTC_MILLISECONDS + 0x8)
#define HWT_RTC_MILLISECONDS_CLR        HWIO_32_WO
#define HWN_RTC_MILLISECONDS_CLR        RTC_MILLISECONDS
#define HWI_RTC_MILLISECONDS_CLR        
#define HW_RTC_MILLISECONDS_TOG         HW(RTC_MILLISECONDS_TOG)
#define HWA_RTC_MILLISECONDS_TOG        (HWA_RTC_MILLISECONDS + 0xc)
#define HWT_RTC_MILLISECONDS_TOG        HWIO_32_WO
#define HWN_RTC_MILLISECONDS_TOG        RTC_MILLISECONDS
#define HWI_RTC_MILLISECONDS_TOG        
#define BP_RTC_MILLISECONDS_COUNT       0
#define BM_RTC_MILLISECONDS_COUNT       0xffffffff
#define BF_RTC_MILLISECONDS_COUNT(v)    (((v) & 0xffffffff) << 0)
#define BFM_RTC_MILLISECONDS_COUNT(v)   BM_RTC_MILLISECONDS_COUNT
#define BF_RTC_MILLISECONDS_COUNT_V(e)  BF_RTC_MILLISECONDS_COUNT(BV_RTC_MILLISECONDS_COUNT__##e)
#define BFM_RTC_MILLISECONDS_COUNT_V(v) BM_RTC_MILLISECONDS_COUNT

#define HW_RTC_SECONDS              HW(RTC_SECONDS)
#define HWA_RTC_SECONDS             (0x8005c000 + 0x30)
#define HWT_RTC_SECONDS             HWIO_32_RW
#define HWN_RTC_SECONDS             RTC_SECONDS
#define HWI_RTC_SECONDS             
#define HW_RTC_SECONDS_SET          HW(RTC_SECONDS_SET)
#define HWA_RTC_SECONDS_SET         (HWA_RTC_SECONDS + 0x4)
#define HWT_RTC_SECONDS_SET         HWIO_32_WO
#define HWN_RTC_SECONDS_SET         RTC_SECONDS
#define HWI_RTC_SECONDS_SET         
#define HW_RTC_SECONDS_CLR          HW(RTC_SECONDS_CLR)
#define HWA_RTC_SECONDS_CLR         (HWA_RTC_SECONDS + 0x8)
#define HWT_RTC_SECONDS_CLR         HWIO_32_WO
#define HWN_RTC_SECONDS_CLR         RTC_SECONDS
#define HWI_RTC_SECONDS_CLR         
#define HW_RTC_SECONDS_TOG          HW(RTC_SECONDS_TOG)
#define HWA_RTC_SECONDS_TOG         (HWA_RTC_SECONDS + 0xc)
#define HWT_RTC_SECONDS_TOG         HWIO_32_WO
#define HWN_RTC_SECONDS_TOG         RTC_SECONDS
#define HWI_RTC_SECONDS_TOG         
#define BP_RTC_SECONDS_COUNT        0
#define BM_RTC_SECONDS_COUNT        0xffffffff
#define BF_RTC_SECONDS_COUNT(v)     (((v) & 0xffffffff) << 0)
#define BFM_RTC_SECONDS_COUNT(v)    BM_RTC_SECONDS_COUNT
#define BF_RTC_SECONDS_COUNT_V(e)   BF_RTC_SECONDS_COUNT(BV_RTC_SECONDS_COUNT__##e)
#define BFM_RTC_SECONDS_COUNT_V(v)  BM_RTC_SECONDS_COUNT

#define HW_RTC_ALARM                HW(RTC_ALARM)
#define HWA_RTC_ALARM               (0x8005c000 + 0x40)
#define HWT_RTC_ALARM               HWIO_32_RW
#define HWN_RTC_ALARM               RTC_ALARM
#define HWI_RTC_ALARM               
#define HW_RTC_ALARM_SET            HW(RTC_ALARM_SET)
#define HWA_RTC_ALARM_SET           (HWA_RTC_ALARM + 0x4)
#define HWT_RTC_ALARM_SET           HWIO_32_WO
#define HWN_RTC_ALARM_SET           RTC_ALARM
#define HWI_RTC_ALARM_SET           
#define HW_RTC_ALARM_CLR            HW(RTC_ALARM_CLR)
#define HWA_RTC_ALARM_CLR           (HWA_RTC_ALARM + 0x8)
#define HWT_RTC_ALARM_CLR           HWIO_32_WO
#define HWN_RTC_ALARM_CLR           RTC_ALARM
#define HWI_RTC_ALARM_CLR           
#define HW_RTC_ALARM_TOG            HW(RTC_ALARM_TOG)
#define HWA_RTC_ALARM_TOG           (HWA_RTC_ALARM + 0xc)
#define HWT_RTC_ALARM_TOG           HWIO_32_WO
#define HWN_RTC_ALARM_TOG           RTC_ALARM
#define HWI_RTC_ALARM_TOG           
#define BP_RTC_ALARM_VALUE          0
#define BM_RTC_ALARM_VALUE          0xffffffff
#define BF_RTC_ALARM_VALUE(v)       (((v) & 0xffffffff) << 0)
#define BFM_RTC_ALARM_VALUE(v)      BM_RTC_ALARM_VALUE
#define BF_RTC_ALARM_VALUE_V(e)     BF_RTC_ALARM_VALUE(BV_RTC_ALARM_VALUE__##e)
#define BFM_RTC_ALARM_VALUE_V(v)    BM_RTC_ALARM_VALUE

#define HW_RTC_WATCHDOG             HW(RTC_WATCHDOG)
#define HWA_RTC_WATCHDOG            (0x8005c000 + 0x50)
#define HWT_RTC_WATCHDOG            HWIO_32_RW
#define HWN_RTC_WATCHDOG            RTC_WATCHDOG
#define HWI_RTC_WATCHDOG            
#define HW_RTC_WATCHDOG_SET         HW(RTC_WATCHDOG_SET)
#define HWA_RTC_WATCHDOG_SET        (HWA_RTC_WATCHDOG + 0x4)
#define HWT_RTC_WATCHDOG_SET        HWIO_32_WO
#define HWN_RTC_WATCHDOG_SET        RTC_WATCHDOG
#define HWI_RTC_WATCHDOG_SET        
#define HW_RTC_WATCHDOG_CLR         HW(RTC_WATCHDOG_CLR)
#define HWA_RTC_WATCHDOG_CLR        (HWA_RTC_WATCHDOG + 0x8)
#define HWT_RTC_WATCHDOG_CLR        HWIO_32_WO
#define HWN_RTC_WATCHDOG_CLR        RTC_WATCHDOG
#define HWI_RTC_WATCHDOG_CLR        
#define HW_RTC_WATCHDOG_TOG         HW(RTC_WATCHDOG_TOG)
#define HWA_RTC_WATCHDOG_TOG        (HWA_RTC_WATCHDOG + 0xc)
#define HWT_RTC_WATCHDOG_TOG        HWIO_32_WO
#define HWN_RTC_WATCHDOG_TOG        RTC_WATCHDOG
#define HWI_RTC_WATCHDOG_TOG        
#define BP_RTC_WATCHDOG_COUNT       0
#define BM_RTC_WATCHDOG_COUNT       0xffffffff
#define BF_RTC_WATCHDOG_COUNT(v)    (((v) & 0xffffffff) << 0)
#define BFM_RTC_WATCHDOG_COUNT(v)   BM_RTC_WATCHDOG_COUNT
#define BF_RTC_WATCHDOG_COUNT_V(e)  BF_RTC_WATCHDOG_COUNT(BV_RTC_WATCHDOG_COUNT__##e)
#define BFM_RTC_WATCHDOG_COUNT_V(v) BM_RTC_WATCHDOG_COUNT

#define HW_RTC_PERSISTENT0                          HW(RTC_PERSISTENT0)
#define HWA_RTC_PERSISTENT0                         (0x8005c000 + 0x60)
#define HWT_RTC_PERSISTENT0                         HWIO_32_RW
#define HWN_RTC_PERSISTENT0                         RTC_PERSISTENT0
#define HWI_RTC_PERSISTENT0                         
#define HW_RTC_PERSISTENT0_SET                      HW(RTC_PERSISTENT0_SET)
#define HWA_RTC_PERSISTENT0_SET                     (HWA_RTC_PERSISTENT0 + 0x4)
#define HWT_RTC_PERSISTENT0_SET                     HWIO_32_WO
#define HWN_RTC_PERSISTENT0_SET                     RTC_PERSISTENT0
#define HWI_RTC_PERSISTENT0_SET                     
#define HW_RTC_PERSISTENT0_CLR                      HW(RTC_PERSISTENT0_CLR)
#define HWA_RTC_PERSISTENT0_CLR                     (HWA_RTC_PERSISTENT0 + 0x8)
#define HWT_RTC_PERSISTENT0_CLR                     HWIO_32_WO
#define HWN_RTC_PERSISTENT0_CLR                     RTC_PERSISTENT0
#define HWI_RTC_PERSISTENT0_CLR                     
#define HW_RTC_PERSISTENT0_TOG                      HW(RTC_PERSISTENT0_TOG)
#define HWA_RTC_PERSISTENT0_TOG                     (HWA_RTC_PERSISTENT0 + 0xc)
#define HWT_RTC_PERSISTENT0_TOG                     HWIO_32_WO
#define HWN_RTC_PERSISTENT0_TOG                     RTC_PERSISTENT0
#define HWI_RTC_PERSISTENT0_TOG                     
#define BP_RTC_PERSISTENT0_SPARE_ANALOG             18
#define BM_RTC_PERSISTENT0_SPARE_ANALOG             0xfffc0000
#define BF_RTC_PERSISTENT0_SPARE_ANALOG(v)          (((v) & 0x3fff) << 18)
#define BFM_RTC_PERSISTENT0_SPARE_ANALOG(v)         BM_RTC_PERSISTENT0_SPARE_ANALOG
#define BF_RTC_PERSISTENT0_SPARE_ANALOG_V(e)        BF_RTC_PERSISTENT0_SPARE_ANALOG(BV_RTC_PERSISTENT0_SPARE_ANALOG__##e)
#define BFM_RTC_PERSISTENT0_SPARE_ANALOG_V(v)       BM_RTC_PERSISTENT0_SPARE_ANALOG
#define BP_RTC_PERSISTENT0_AUTO_RESTART             17
#define BM_RTC_PERSISTENT0_AUTO_RESTART             0x20000
#define BF_RTC_PERSISTENT0_AUTO_RESTART(v)          (((v) & 0x1) << 17)
#define BFM_RTC_PERSISTENT0_AUTO_RESTART(v)         BM_RTC_PERSISTENT0_AUTO_RESTART
#define BF_RTC_PERSISTENT0_AUTO_RESTART_V(e)        BF_RTC_PERSISTENT0_AUTO_RESTART(BV_RTC_PERSISTENT0_AUTO_RESTART__##e)
#define BFM_RTC_PERSISTENT0_AUTO_RESTART_V(v)       BM_RTC_PERSISTENT0_AUTO_RESTART
#define BP_RTC_PERSISTENT0_DISABLE_PSWITCH          16
#define BM_RTC_PERSISTENT0_DISABLE_PSWITCH          0x10000
#define BF_RTC_PERSISTENT0_DISABLE_PSWITCH(v)       (((v) & 0x1) << 16)
#define BFM_RTC_PERSISTENT0_DISABLE_PSWITCH(v)      BM_RTC_PERSISTENT0_DISABLE_PSWITCH
#define BF_RTC_PERSISTENT0_DISABLE_PSWITCH_V(e)     BF_RTC_PERSISTENT0_DISABLE_PSWITCH(BV_RTC_PERSISTENT0_DISABLE_PSWITCH__##e)
#define BFM_RTC_PERSISTENT0_DISABLE_PSWITCH_V(v)    BM_RTC_PERSISTENT0_DISABLE_PSWITCH
#define BP_RTC_PERSISTENT0_LOWERBIAS                14
#define BM_RTC_PERSISTENT0_LOWERBIAS                0xc000
#define BF_RTC_PERSISTENT0_LOWERBIAS(v)             (((v) & 0x3) << 14)
#define BFM_RTC_PERSISTENT0_LOWERBIAS(v)            BM_RTC_PERSISTENT0_LOWERBIAS
#define BF_RTC_PERSISTENT0_LOWERBIAS_V(e)           BF_RTC_PERSISTENT0_LOWERBIAS(BV_RTC_PERSISTENT0_LOWERBIAS__##e)
#define BFM_RTC_PERSISTENT0_LOWERBIAS_V(v)          BM_RTC_PERSISTENT0_LOWERBIAS
#define BP_RTC_PERSISTENT0_DISABLE_XTALOK           13
#define BM_RTC_PERSISTENT0_DISABLE_XTALOK           0x2000
#define BF_RTC_PERSISTENT0_DISABLE_XTALOK(v)        (((v) & 0x1) << 13)
#define BFM_RTC_PERSISTENT0_DISABLE_XTALOK(v)       BM_RTC_PERSISTENT0_DISABLE_XTALOK
#define BF_RTC_PERSISTENT0_DISABLE_XTALOK_V(e)      BF_RTC_PERSISTENT0_DISABLE_XTALOK(BV_RTC_PERSISTENT0_DISABLE_XTALOK__##e)
#define BFM_RTC_PERSISTENT0_DISABLE_XTALOK_V(v)     BM_RTC_PERSISTENT0_DISABLE_XTALOK
#define BP_RTC_PERSISTENT0_MSEC_RES                 8
#define BM_RTC_PERSISTENT0_MSEC_RES                 0x1f00
#define BF_RTC_PERSISTENT0_MSEC_RES(v)              (((v) & 0x1f) << 8)
#define BFM_RTC_PERSISTENT0_MSEC_RES(v)             BM_RTC_PERSISTENT0_MSEC_RES
#define BF_RTC_PERSISTENT0_MSEC_RES_V(e)            BF_RTC_PERSISTENT0_MSEC_RES(BV_RTC_PERSISTENT0_MSEC_RES__##e)
#define BFM_RTC_PERSISTENT0_MSEC_RES_V(v)           BM_RTC_PERSISTENT0_MSEC_RES
#define BP_RTC_PERSISTENT0_ALARM_WAKE               7
#define BM_RTC_PERSISTENT0_ALARM_WAKE               0x80
#define BF_RTC_PERSISTENT0_ALARM_WAKE(v)            (((v) & 0x1) << 7)
#define BFM_RTC_PERSISTENT0_ALARM_WAKE(v)           BM_RTC_PERSISTENT0_ALARM_WAKE
#define BF_RTC_PERSISTENT0_ALARM_WAKE_V(e)          BF_RTC_PERSISTENT0_ALARM_WAKE(BV_RTC_PERSISTENT0_ALARM_WAKE__##e)
#define BFM_RTC_PERSISTENT0_ALARM_WAKE_V(v)         BM_RTC_PERSISTENT0_ALARM_WAKE
#define BP_RTC_PERSISTENT0_XTAL32_FREQ              6
#define BM_RTC_PERSISTENT0_XTAL32_FREQ              0x40
#define BF_RTC_PERSISTENT0_XTAL32_FREQ(v)           (((v) & 0x1) << 6)
#define BFM_RTC_PERSISTENT0_XTAL32_FREQ(v)          BM_RTC_PERSISTENT0_XTAL32_FREQ
#define BF_RTC_PERSISTENT0_XTAL32_FREQ_V(e)         BF_RTC_PERSISTENT0_XTAL32_FREQ(BV_RTC_PERSISTENT0_XTAL32_FREQ__##e)
#define BFM_RTC_PERSISTENT0_XTAL32_FREQ_V(v)        BM_RTC_PERSISTENT0_XTAL32_FREQ
#define BP_RTC_PERSISTENT0_XTAL32KHZ_PWRUP          5
#define BM_RTC_PERSISTENT0_XTAL32KHZ_PWRUP          0x20
#define BF_RTC_PERSISTENT0_XTAL32KHZ_PWRUP(v)       (((v) & 0x1) << 5)
#define BFM_RTC_PERSISTENT0_XTAL32KHZ_PWRUP(v)      BM_RTC_PERSISTENT0_XTAL32KHZ_PWRUP
#define BF_RTC_PERSISTENT0_XTAL32KHZ_PWRUP_V(e)     BF_RTC_PERSISTENT0_XTAL32KHZ_PWRUP(BV_RTC_PERSISTENT0_XTAL32KHZ_PWRUP__##e)
#define BFM_RTC_PERSISTENT0_XTAL32KHZ_PWRUP_V(v)    BM_RTC_PERSISTENT0_XTAL32KHZ_PWRUP
#define BP_RTC_PERSISTENT0_XTAL24MHZ_PWRUP          4
#define BM_RTC_PERSISTENT0_XTAL24MHZ_PWRUP          0x10
#define BF_RTC_PERSISTENT0_XTAL24MHZ_PWRUP(v)       (((v) & 0x1) << 4)
#define BFM_RTC_PERSISTENT0_XTAL24MHZ_PWRUP(v)      BM_RTC_PERSISTENT0_XTAL24MHZ_PWRUP
#define BF_RTC_PERSISTENT0_XTAL24MHZ_PWRUP_V(e)     BF_RTC_PERSISTENT0_XTAL24MHZ_PWRUP(BV_RTC_PERSISTENT0_XTAL24MHZ_PWRUP__##e)
#define BFM_RTC_PERSISTENT0_XTAL24MHZ_PWRUP_V(v)    BM_RTC_PERSISTENT0_XTAL24MHZ_PWRUP
#define BP_RTC_PERSISTENT0_LCK_SECS                 3
#define BM_RTC_PERSISTENT0_LCK_SECS                 0x8
#define BF_RTC_PERSISTENT0_LCK_SECS(v)              (((v) & 0x1) << 3)
#define BFM_RTC_PERSISTENT0_LCK_SECS(v)             BM_RTC_PERSISTENT0_LCK_SECS
#define BF_RTC_PERSISTENT0_LCK_SECS_V(e)            BF_RTC_PERSISTENT0_LCK_SECS(BV_RTC_PERSISTENT0_LCK_SECS__##e)
#define BFM_RTC_PERSISTENT0_LCK_SECS_V(v)           BM_RTC_PERSISTENT0_LCK_SECS
#define BP_RTC_PERSISTENT0_ALARM_EN                 2
#define BM_RTC_PERSISTENT0_ALARM_EN                 0x4
#define BF_RTC_PERSISTENT0_ALARM_EN(v)              (((v) & 0x1) << 2)
#define BFM_RTC_PERSISTENT0_ALARM_EN(v)             BM_RTC_PERSISTENT0_ALARM_EN
#define BF_RTC_PERSISTENT0_ALARM_EN_V(e)            BF_RTC_PERSISTENT0_ALARM_EN(BV_RTC_PERSISTENT0_ALARM_EN__##e)
#define BFM_RTC_PERSISTENT0_ALARM_EN_V(v)           BM_RTC_PERSISTENT0_ALARM_EN
#define BP_RTC_PERSISTENT0_ALARM_WAKE_EN            1
#define BM_RTC_PERSISTENT0_ALARM_WAKE_EN            0x2
#define BF_RTC_PERSISTENT0_ALARM_WAKE_EN(v)         (((v) & 0x1) << 1)
#define BFM_RTC_PERSISTENT0_ALARM_WAKE_EN(v)        BM_RTC_PERSISTENT0_ALARM_WAKE_EN
#define BF_RTC_PERSISTENT0_ALARM_WAKE_EN_V(e)       BF_RTC_PERSISTENT0_ALARM_WAKE_EN(BV_RTC_PERSISTENT0_ALARM_WAKE_EN__##e)
#define BFM_RTC_PERSISTENT0_ALARM_WAKE_EN_V(v)      BM_RTC_PERSISTENT0_ALARM_WAKE_EN
#define BP_RTC_PERSISTENT0_CLOCKSOURCE              0
#define BM_RTC_PERSISTENT0_CLOCKSOURCE              0x1
#define BF_RTC_PERSISTENT0_CLOCKSOURCE(v)           (((v) & 0x1) << 0)
#define BFM_RTC_PERSISTENT0_CLOCKSOURCE(v)          BM_RTC_PERSISTENT0_CLOCKSOURCE
#define BF_RTC_PERSISTENT0_CLOCKSOURCE_V(e)         BF_RTC_PERSISTENT0_CLOCKSOURCE(BV_RTC_PERSISTENT0_CLOCKSOURCE__##e)
#define BFM_RTC_PERSISTENT0_CLOCKSOURCE_V(v)        BM_RTC_PERSISTENT0_CLOCKSOURCE

#define HW_RTC_PERSISTENT1                                  HW(RTC_PERSISTENT1)
#define HWA_RTC_PERSISTENT1                                 (0x8005c000 + 0x70)
#define HWT_RTC_PERSISTENT1                                 HWIO_32_RW
#define HWN_RTC_PERSISTENT1                                 RTC_PERSISTENT1
#define HWI_RTC_PERSISTENT1                                 
#define HW_RTC_PERSISTENT1_SET                              HW(RTC_PERSISTENT1_SET)
#define HWA_RTC_PERSISTENT1_SET                             (HWA_RTC_PERSISTENT1 + 0x4)
#define HWT_RTC_PERSISTENT1_SET                             HWIO_32_WO
#define HWN_RTC_PERSISTENT1_SET                             RTC_PERSISTENT1
#define HWI_RTC_PERSISTENT1_SET                             
#define HW_RTC_PERSISTENT1_CLR                              HW(RTC_PERSISTENT1_CLR)
#define HWA_RTC_PERSISTENT1_CLR                             (HWA_RTC_PERSISTENT1 + 0x8)
#define HWT_RTC_PERSISTENT1_CLR                             HWIO_32_WO
#define HWN_RTC_PERSISTENT1_CLR                             RTC_PERSISTENT1
#define HWI_RTC_PERSISTENT1_CLR                             
#define HW_RTC_PERSISTENT1_TOG                              HW(RTC_PERSISTENT1_TOG)
#define HWA_RTC_PERSISTENT1_TOG                             (HWA_RTC_PERSISTENT1 + 0xc)
#define HWT_RTC_PERSISTENT1_TOG                             HWIO_32_WO
#define HWN_RTC_PERSISTENT1_TOG                             RTC_PERSISTENT1
#define HWI_RTC_PERSISTENT1_TOG                             
#define BP_RTC_PERSISTENT1_GENERAL                          0
#define BM_RTC_PERSISTENT1_GENERAL                          0xffffffff
#define BV_RTC_PERSISTENT1_GENERAL__SPARE3                  0x4000
#define BV_RTC_PERSISTENT1_GENERAL__SDRAM_BOOT              0x2000
#define BV_RTC_PERSISTENT1_GENERAL__ENUMERATE_500MA_TWICE   0x1000
#define BV_RTC_PERSISTENT1_GENERAL__USB_BOOT_PLAYER_MODE    0x800
#define BV_RTC_PERSISTENT1_GENERAL__SKIP_CHECKDISK          0x400
#define BV_RTC_PERSISTENT1_GENERAL__USB_LOW_POWER_MODE      0x200
#define BV_RTC_PERSISTENT1_GENERAL__OTG_HNP_BIT             0x100
#define BV_RTC_PERSISTENT1_GENERAL__OTG_ATL_ROLE_BIT        0x80
#define BV_RTC_PERSISTENT1_GENERAL__SDRAM_CS_HI             0x40
#define BV_RTC_PERSISTENT1_GENERAL__SDRAM_CS_LO             0x20
#define BV_RTC_PERSISTENT1_GENERAL__SDRAM_NDX_3             0x10
#define BV_RTC_PERSISTENT1_GENERAL__SDRAM_NDX_2             0x8
#define BV_RTC_PERSISTENT1_GENERAL__SDRAM_NDX_1             0x4
#define BV_RTC_PERSISTENT1_GENERAL__SDRAM_NDX_0             0x2
#define BV_RTC_PERSISTENT1_GENERAL__ETM_ENABLE              0x1
#define BF_RTC_PERSISTENT1_GENERAL(v)                       (((v) & 0xffffffff) << 0)
#define BFM_RTC_PERSISTENT1_GENERAL(v)                      BM_RTC_PERSISTENT1_GENERAL
#define BF_RTC_PERSISTENT1_GENERAL_V(e)                     BF_RTC_PERSISTENT1_GENERAL(BV_RTC_PERSISTENT1_GENERAL__##e)
#define BFM_RTC_PERSISTENT1_GENERAL_V(v)                    BM_RTC_PERSISTENT1_GENERAL

#define HW_RTC_PERSISTENT2                  HW(RTC_PERSISTENT2)
#define HWA_RTC_PERSISTENT2                 (0x8005c000 + 0x80)
#define HWT_RTC_PERSISTENT2                 HWIO_32_RW
#define HWN_RTC_PERSISTENT2                 RTC_PERSISTENT2
#define HWI_RTC_PERSISTENT2                 
#define HW_RTC_PERSISTENT2_SET              HW(RTC_PERSISTENT2_SET)
#define HWA_RTC_PERSISTENT2_SET             (HWA_RTC_PERSISTENT2 + 0x4)
#define HWT_RTC_PERSISTENT2_SET             HWIO_32_WO
#define HWN_RTC_PERSISTENT2_SET             RTC_PERSISTENT2
#define HWI_RTC_PERSISTENT2_SET             
#define HW_RTC_PERSISTENT2_CLR              HW(RTC_PERSISTENT2_CLR)
#define HWA_RTC_PERSISTENT2_CLR             (HWA_RTC_PERSISTENT2 + 0x8)
#define HWT_RTC_PERSISTENT2_CLR             HWIO_32_WO
#define HWN_RTC_PERSISTENT2_CLR             RTC_PERSISTENT2
#define HWI_RTC_PERSISTENT2_CLR             
#define HW_RTC_PERSISTENT2_TOG              HW(RTC_PERSISTENT2_TOG)
#define HWA_RTC_PERSISTENT2_TOG             (HWA_RTC_PERSISTENT2 + 0xc)
#define HWT_RTC_PERSISTENT2_TOG             HWIO_32_WO
#define HWN_RTC_PERSISTENT2_TOG             RTC_PERSISTENT2
#define HWI_RTC_PERSISTENT2_TOG             
#define BP_RTC_PERSISTENT2_GENERAL          0
#define BM_RTC_PERSISTENT2_GENERAL          0xffffffff
#define BF_RTC_PERSISTENT2_GENERAL(v)       (((v) & 0xffffffff) << 0)
#define BFM_RTC_PERSISTENT2_GENERAL(v)      BM_RTC_PERSISTENT2_GENERAL
#define BF_RTC_PERSISTENT2_GENERAL_V(e)     BF_RTC_PERSISTENT2_GENERAL(BV_RTC_PERSISTENT2_GENERAL__##e)
#define BFM_RTC_PERSISTENT2_GENERAL_V(v)    BM_RTC_PERSISTENT2_GENERAL

#define HW_RTC_PERSISTENT3                  HW(RTC_PERSISTENT3)
#define HWA_RTC_PERSISTENT3                 (0x8005c000 + 0x90)
#define HWT_RTC_PERSISTENT3                 HWIO_32_RW
#define HWN_RTC_PERSISTENT3                 RTC_PERSISTENT3
#define HWI_RTC_PERSISTENT3                 
#define HW_RTC_PERSISTENT3_SET              HW(RTC_PERSISTENT3_SET)
#define HWA_RTC_PERSISTENT3_SET             (HWA_RTC_PERSISTENT3 + 0x4)
#define HWT_RTC_PERSISTENT3_SET             HWIO_32_WO
#define HWN_RTC_PERSISTENT3_SET             RTC_PERSISTENT3
#define HWI_RTC_PERSISTENT3_SET             
#define HW_RTC_PERSISTENT3_CLR              HW(RTC_PERSISTENT3_CLR)
#define HWA_RTC_PERSISTENT3_CLR             (HWA_RTC_PERSISTENT3 + 0x8)
#define HWT_RTC_PERSISTENT3_CLR             HWIO_32_WO
#define HWN_RTC_PERSISTENT3_CLR             RTC_PERSISTENT3
#define HWI_RTC_PERSISTENT3_CLR             
#define HW_RTC_PERSISTENT3_TOG              HW(RTC_PERSISTENT3_TOG)
#define HWA_RTC_PERSISTENT3_TOG             (HWA_RTC_PERSISTENT3 + 0xc)
#define HWT_RTC_PERSISTENT3_TOG             HWIO_32_WO
#define HWN_RTC_PERSISTENT3_TOG             RTC_PERSISTENT3
#define HWI_RTC_PERSISTENT3_TOG             
#define BP_RTC_PERSISTENT3_GENERAL          0
#define BM_RTC_PERSISTENT3_GENERAL          0xffffffff
#define BF_RTC_PERSISTENT3_GENERAL(v)       (((v) & 0xffffffff) << 0)
#define BFM_RTC_PERSISTENT3_GENERAL(v)      BM_RTC_PERSISTENT3_GENERAL
#define BF_RTC_PERSISTENT3_GENERAL_V(e)     BF_RTC_PERSISTENT3_GENERAL(BV_RTC_PERSISTENT3_GENERAL__##e)
#define BFM_RTC_PERSISTENT3_GENERAL_V(v)    BM_RTC_PERSISTENT3_GENERAL

#define HW_RTC_PERSISTENT4                  HW(RTC_PERSISTENT4)
#define HWA_RTC_PERSISTENT4                 (0x8005c000 + 0xa0)
#define HWT_RTC_PERSISTENT4                 HWIO_32_RW
#define HWN_RTC_PERSISTENT4                 RTC_PERSISTENT4
#define HWI_RTC_PERSISTENT4                 
#define HW_RTC_PERSISTENT4_SET              HW(RTC_PERSISTENT4_SET)
#define HWA_RTC_PERSISTENT4_SET             (HWA_RTC_PERSISTENT4 + 0x4)
#define HWT_RTC_PERSISTENT4_SET             HWIO_32_WO
#define HWN_RTC_PERSISTENT4_SET             RTC_PERSISTENT4
#define HWI_RTC_PERSISTENT4_SET             
#define HW_RTC_PERSISTENT4_CLR              HW(RTC_PERSISTENT4_CLR)
#define HWA_RTC_PERSISTENT4_CLR             (HWA_RTC_PERSISTENT4 + 0x8)
#define HWT_RTC_PERSISTENT4_CLR             HWIO_32_WO
#define HWN_RTC_PERSISTENT4_CLR             RTC_PERSISTENT4
#define HWI_RTC_PERSISTENT4_CLR             
#define HW_RTC_PERSISTENT4_TOG              HW(RTC_PERSISTENT4_TOG)
#define HWA_RTC_PERSISTENT4_TOG             (HWA_RTC_PERSISTENT4 + 0xc)
#define HWT_RTC_PERSISTENT4_TOG             HWIO_32_WO
#define HWN_RTC_PERSISTENT4_TOG             RTC_PERSISTENT4
#define HWI_RTC_PERSISTENT4_TOG             
#define BP_RTC_PERSISTENT4_GENERAL          0
#define BM_RTC_PERSISTENT4_GENERAL          0xffffffff
#define BF_RTC_PERSISTENT4_GENERAL(v)       (((v) & 0xffffffff) << 0)
#define BFM_RTC_PERSISTENT4_GENERAL(v)      BM_RTC_PERSISTENT4_GENERAL
#define BF_RTC_PERSISTENT4_GENERAL_V(e)     BF_RTC_PERSISTENT4_GENERAL(BV_RTC_PERSISTENT4_GENERAL__##e)
#define BFM_RTC_PERSISTENT4_GENERAL_V(v)    BM_RTC_PERSISTENT4_GENERAL

#define HW_RTC_PERSISTENT5                  HW(RTC_PERSISTENT5)
#define HWA_RTC_PERSISTENT5                 (0x8005c000 + 0xb0)
#define HWT_RTC_PERSISTENT5                 HWIO_32_RW
#define HWN_RTC_PERSISTENT5                 RTC_PERSISTENT5
#define HWI_RTC_PERSISTENT5                 
#define HW_RTC_PERSISTENT5_SET              HW(RTC_PERSISTENT5_SET)
#define HWA_RTC_PERSISTENT5_SET             (HWA_RTC_PERSISTENT5 + 0x4)
#define HWT_RTC_PERSISTENT5_SET             HWIO_32_WO
#define HWN_RTC_PERSISTENT5_SET             RTC_PERSISTENT5
#define HWI_RTC_PERSISTENT5_SET             
#define HW_RTC_PERSISTENT5_CLR              HW(RTC_PERSISTENT5_CLR)
#define HWA_RTC_PERSISTENT5_CLR             (HWA_RTC_PERSISTENT5 + 0x8)
#define HWT_RTC_PERSISTENT5_CLR             HWIO_32_WO
#define HWN_RTC_PERSISTENT5_CLR             RTC_PERSISTENT5
#define HWI_RTC_PERSISTENT5_CLR             
#define HW_RTC_PERSISTENT5_TOG              HW(RTC_PERSISTENT5_TOG)
#define HWA_RTC_PERSISTENT5_TOG             (HWA_RTC_PERSISTENT5 + 0xc)
#define HWT_RTC_PERSISTENT5_TOG             HWIO_32_WO
#define HWN_RTC_PERSISTENT5_TOG             RTC_PERSISTENT5
#define HWI_RTC_PERSISTENT5_TOG             
#define BP_RTC_PERSISTENT5_GENERAL          0
#define BM_RTC_PERSISTENT5_GENERAL          0xffffffff
#define BF_RTC_PERSISTENT5_GENERAL(v)       (((v) & 0xffffffff) << 0)
#define BFM_RTC_PERSISTENT5_GENERAL(v)      BM_RTC_PERSISTENT5_GENERAL
#define BF_RTC_PERSISTENT5_GENERAL_V(e)     BF_RTC_PERSISTENT5_GENERAL(BV_RTC_PERSISTENT5_GENERAL__##e)
#define BFM_RTC_PERSISTENT5_GENERAL_V(v)    BM_RTC_PERSISTENT5_GENERAL

#define HW_RTC_DEBUG                            HW(RTC_DEBUG)
#define HWA_RTC_DEBUG                           (0x8005c000 + 0xc0)
#define HWT_RTC_DEBUG                           HWIO_32_RW
#define HWN_RTC_DEBUG                           RTC_DEBUG
#define HWI_RTC_DEBUG                           
#define HW_RTC_DEBUG_SET                        HW(RTC_DEBUG_SET)
#define HWA_RTC_DEBUG_SET                       (HWA_RTC_DEBUG + 0x4)
#define HWT_RTC_DEBUG_SET                       HWIO_32_WO
#define HWN_RTC_DEBUG_SET                       RTC_DEBUG
#define HWI_RTC_DEBUG_SET                       
#define HW_RTC_DEBUG_CLR                        HW(RTC_DEBUG_CLR)
#define HWA_RTC_DEBUG_CLR                       (HWA_RTC_DEBUG + 0x8)
#define HWT_RTC_DEBUG_CLR                       HWIO_32_WO
#define HWN_RTC_DEBUG_CLR                       RTC_DEBUG
#define HWI_RTC_DEBUG_CLR                       
#define HW_RTC_DEBUG_TOG                        HW(RTC_DEBUG_TOG)
#define HWA_RTC_DEBUG_TOG                       (HWA_RTC_DEBUG + 0xc)
#define HWT_RTC_DEBUG_TOG                       HWIO_32_WO
#define HWN_RTC_DEBUG_TOG                       RTC_DEBUG
#define HWI_RTC_DEBUG_TOG                       
#define BP_RTC_DEBUG_WATCHDOG_RESET_MASK        1
#define BM_RTC_DEBUG_WATCHDOG_RESET_MASK        0x2
#define BF_RTC_DEBUG_WATCHDOG_RESET_MASK(v)     (((v) & 0x1) << 1)
#define BFM_RTC_DEBUG_WATCHDOG_RESET_MASK(v)    BM_RTC_DEBUG_WATCHDOG_RESET_MASK
#define BF_RTC_DEBUG_WATCHDOG_RESET_MASK_V(e)   BF_RTC_DEBUG_WATCHDOG_RESET_MASK(BV_RTC_DEBUG_WATCHDOG_RESET_MASK__##e)
#define BFM_RTC_DEBUG_WATCHDOG_RESET_MASK_V(v)  BM_RTC_DEBUG_WATCHDOG_RESET_MASK
#define BP_RTC_DEBUG_WATCHDOG_RESET             0
#define BM_RTC_DEBUG_WATCHDOG_RESET             0x1
#define BF_RTC_DEBUG_WATCHDOG_RESET(v)          (((v) & 0x1) << 0)
#define BFM_RTC_DEBUG_WATCHDOG_RESET(v)         BM_RTC_DEBUG_WATCHDOG_RESET
#define BF_RTC_DEBUG_WATCHDOG_RESET_V(e)        BF_RTC_DEBUG_WATCHDOG_RESET(BV_RTC_DEBUG_WATCHDOG_RESET__##e)
#define BFM_RTC_DEBUG_WATCHDOG_RESET_V(v)       BM_RTC_DEBUG_WATCHDOG_RESET

#define HW_RTC_VERSION              HW(RTC_VERSION)
#define HWA_RTC_VERSION             (0x8005c000 + 0xd0)
#define HWT_RTC_VERSION             HWIO_32_RW
#define HWN_RTC_VERSION             RTC_VERSION
#define HWI_RTC_VERSION             
#define BP_RTC_VERSION_MAJOR        24
#define BM_RTC_VERSION_MAJOR        0xff000000
#define BF_RTC_VERSION_MAJOR(v)     (((v) & 0xff) << 24)
#define BFM_RTC_VERSION_MAJOR(v)    BM_RTC_VERSION_MAJOR
#define BF_RTC_VERSION_MAJOR_V(e)   BF_RTC_VERSION_MAJOR(BV_RTC_VERSION_MAJOR__##e)
#define BFM_RTC_VERSION_MAJOR_V(v)  BM_RTC_VERSION_MAJOR
#define BP_RTC_VERSION_MINOR        16
#define BM_RTC_VERSION_MINOR        0xff0000
#define BF_RTC_VERSION_MINOR(v)     (((v) & 0xff) << 16)
#define BFM_RTC_VERSION_MINOR(v)    BM_RTC_VERSION_MINOR
#define BF_RTC_VERSION_MINOR_V(e)   BF_RTC_VERSION_MINOR(BV_RTC_VERSION_MINOR__##e)
#define BFM_RTC_VERSION_MINOR_V(v)  BM_RTC_VERSION_MINOR
#define BP_RTC_VERSION_STEP         0
#define BM_RTC_VERSION_STEP         0xffff
#define BF_RTC_VERSION_STEP(v)      (((v) & 0xffff) << 0)
#define BFM_RTC_VERSION_STEP(v)     BM_RTC_VERSION_STEP
#define BF_RTC_VERSION_STEP_V(e)    BF_RTC_VERSION_STEP(BV_RTC_VERSION_STEP__##e)
#define BFM_RTC_VERSION_STEP_V(v)   BM_RTC_VERSION_STEP

#endif /* __HEADERGEN_STMP3700_RTC_H__*/
