ReactOS 0.4.16-dev-197-g92996da
hwinfo.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Boot Loader
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: boot/armllb/hw/omap3-zoom2/hwinfo.c
5 * PURPOSE: LLB Hardware Info Routines for OMAP3 ZOOM2
6 * PROGRAMMERS: ReactOS Portable Systems Group
7 */
8
9#include "precomp.h"
10
12
13#define BCD_INT(bcd) (((bcd & 0xf0) >> 4) * 10 + (bcd &0x0f))
14
18{
20}
21
25{
26 return 48000000;
27}
28
32{
33 return 0x48318000;
34}
35
39{
40 return 0;
41}
42
45{
46 /* Issue the GET_TIME request on the RTC control register */
47 LlbHwOmap3TwlWrite1(0x4B, 0x29, 0x41);
48
49 /* Read the BCD registers and convert them */
56 LlbTime.Year += (LlbTime.Year > 80) ? 1900 : 2000;
57 return 0;
58}
59
60/* EOF */
VOID NTAPI LlbHwOmap3TwlWrite1(IN UCHAR ChipAddress, IN UCHAR RegisterAddress, IN UCHAR Value)
Definition: hwtwl40x.c:61
UCHAR NTAPI LlbHwOmap3TwlRead1(IN UCHAR ChipAddress, IN UCHAR RegisterAddress)
Definition: hwtwl40x.c:15
#define MACH_TYPE_OMAP_ZOOM2
Definition: machtype.h:30
ULONG NTAPI LlbHwGetSerialUart(VOID)
Definition: hwinfo.c:34
ULONG NTAPI LlbHwGetBoardType(VOID)
Definition: hwinfo.c:13
ULONG LlbHwRtcRead(VOID)
Definition: hwinfo.c:132
ULONG NTAPI LlbHwGetPClk(VOID)
Definition: hwinfo.c:20
ULONG NTAPI LlbHwGetTmr0Base(VOID)
Definition: hwinfo.c:27
#define BCD_INT(bcd)
Definition: hwinfo.c:13
TIMEINFO LlbTime
Definition: hwinfo.c:11
Definition: fw.h:10
USHORT Month
Definition: fw.h:12
USHORT Day
Definition: fw.h:13
USHORT Minute
Definition: fw.h:15
USHORT Hour
Definition: fw.h:14
USHORT Second
Definition: fw.h:16
USHORT Year
Definition: fw.h:11
#define NTAPI
Definition: typedefs.h:36
uint32_t ULONG
Definition: typedefs.h:59