ReactOS 0.4.16-dev-2208-g6350669
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
13static
16 _In_ UCHAR Bcd)
17{
18 return ((Bcd & 0xF0) >> 4) * 10 + (Bcd & 0x0F);
19}
20
24{
26}
27
31{
32 return 48000000;
33}
34
38{
39 return 0x48318000;
40}
41
45{
46 return 0;
47}
48
51{
52 /* Issue the GET_TIME request on the RTC control register */
53 LlbHwOmap3TwlWrite1(0x4B, 0x29, 0x41);
54
55 /* Read the BCD registers and convert them */
62 LlbTime.Year += (LlbTime.Year > 80) ? 1900 : 2000;
63 return 0;
64}
65
66/* 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
#define _In_
Definition: no_sal2.h:158
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
static UCHAR BCD_INT(_In_ UCHAR Bcd)
Definition: hwinfo.c:15
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
unsigned char UCHAR
Definition: xmlstorage.h:181