2 * PROJECT: ReactOS Boot Loader
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: boot/armllb/hw/versatile/hwinit.c
5 * PURPOSE: LLB Hardware Initialization Routines for Versatile
6 * PROGRAMMERS: ReactOS Portable Systems Group
15 /* Setup the CLCD (PL110) */
16 LlbHwVersaClcdInitialize();
18 /* Setup the UART (PL011) */
19 LlbHwVersaUartInitialize();
21 /* Setup the KMI (PL050) */
22 LlbHwVersaKmiInitialize();
26 // Should go to hwdev.c
30 LlbHwLoadOsLoaderFromRam(VOID
)
32 ULONG Base
, RootFs
, Size
;
36 /* On versatile we load the RAMDISK with initrd */
37 LlbEnvGetRamDiskInformation(&RootFs
, &Size
);
39 /* The OS Loader is at 0x20000, always */
42 /* Read image offset */
43 Offset
= LlbEnvRead("rdoffset");
45 /* Set parameters for the OS loader */
46 sprintf(CommandLine
, "rdbase=0x%x rdsize=0x%x rdoffset=%s", RootFs
, Size
, Offset
);
47 LlbSetCommandLine(CommandLine
);
49 /* Return the OS loader base address */
50 return (POSLOADER_INIT
)Base
;