/*-1* Copyright 2015 Luiz Otavio O Souza <[email protected]>2* All rights reserved.3*4* Redistribution and use in source and binary forms, with or without5* modification, are permitted provided that the following conditions6* are met:7* 1. Redistributions of source code must retain the above copyright8* notice, this list of conditions and the following disclaimer.9* 2. Redistributions in binary form must reproduce the above copyright10* notice, this list of conditions and the following disclaimer in the11* documentation and/or other materials provided with the distribution.12*13* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND14* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE15* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE16* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE17* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL18* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS19* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)20* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT21* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY22* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF23* SUCH DAMAGE.24*/2526#ifndef _AM335X_RTCREG_H_27#define _AM335X_RTCREG_H_2829#define RTC_SECONDS 0x0030#define RTC_MINUTES 0x0431#define RTC_HOURS 0x0832#define RTC_DAYS 0x0c33#define RTC_MONTHS 0x1034#define RTC_YEARS 0x1435#define RTC_WEEK 0x1836#define RTC_CTRL 0x4037#define RTC_CTRL_DISABLE (1U << 6)38#define RTC_CTRL_RUN (1U << 0)39#define RTC_STATUS 0x4440#define RTC_STATUS_ALARM2 (1U << 7)41#define RTC_STATUS_ALARM (1U << 6)42#define RTC_STATUS_1D_EVENT (1U << 5)43#define RTC_STATUS_1H_EVENT (1U << 4)44#define RTC_STATUS_1M_EVENT (1U << 3)45#define RTC_STATUS_1S_EVENT (1U << 2)46#define RTC_STATUS_RUN (1U << 1)47#define RTC_STATUS_BUSY (1U << 0)48#define RTC_INTR 0x4849#define RTC_INTR_ALARM2 (1U << 4)50#define RTC_INTR_ALARM (1U << 3)51#define RTC_INTR_TIMER (1U << 2)52#define RTC_OSC 0x5453#define RTC_OSC_32KCLK_EN (1U << 6)54#define RTC_OSC_OSC32K_GZ (1U << 4)55#define RTC_OSC_32KCLK_SEL (1U << 3)56#define RTC_OSC_RES_SELECT (1U << 2)57#define RTC_OSC_SW2 (1U << 1)58#define RTC_OSC_SW1 (1U << 0)59#define RTC_KICK0R 0x6c60#define RTC_KICK0R_PASS 0x83e70b1361#define RTC_KICK1R 0x7062#define RTC_KICK1R_PASS 0x95a4f1e063#define RTC_REVISION 0x7464#define RTC_ALARM2_SECONDS 0x8065#define RTC_ALARM2_MINUTES 0x8466#define RTC_ALARM2_HOURS 0x8867#define RTC_ALARM2_DAYS 0x8c68#define RTC_ALARM2_MONTHS 0x9069#define RTC_ALARM2_YEARS 0x9470#define RTC_PMIC 0x9871#define PMIC_PWR_ENABLE (1U << 16)7273#endif /* _AM335X_RTCREG_H_ */747576