2015-12-17 00:03:40 -05:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2011-2015, Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-18 17:01:01 -08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-12-17 00:03:40 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief System/hardware module for the ia32 platform
|
|
|
|
*
|
|
|
|
* This module provides routines to initialize and support board-level hardware
|
|
|
|
* for the ia32 platform.
|
|
|
|
*/
|
|
|
|
|
2016-12-23 08:35:34 -05:00
|
|
|
#include <kernel.h>
|
2015-12-17 08:54:35 -05:00
|
|
|
#include "soc.h"
|
2019-06-25 15:54:01 -04:00
|
|
|
#include <drivers/uart.h>
|
2015-12-17 00:03:40 -05:00
|
|
|
#include <device.h>
|
|
|
|
#include <init.h>
|
2019-06-29 11:00:39 -07:00
|
|
|
#include <ia32/mmustructs.h>
|
2017-07-11 09:59:30 -07:00
|
|
|
#include <linker/linker-defs.h>
|
2017-05-22 11:25:47 +05:30
|
|
|
|
|
|
|
#ifdef CONFIG_X86_MMU
|
2017-07-11 09:59:30 -07:00
|
|
|
MMU_BOOT_REGION(CONFIG_LOAPIC_BASE_ADDRESS, KB(4), MMU_ENTRY_WRITE);
|
2018-11-13 15:15:23 +01:00
|
|
|
MMU_BOOT_REGION(DT_IOAPIC_BASE_ADDRESS, MB(1), MMU_ENTRY_WRITE);
|
2017-10-11 13:55:06 -07:00
|
|
|
#ifdef CONFIG_HPET_TIMER
|
2017-07-11 09:59:30 -07:00
|
|
|
MMU_BOOT_REGION(CONFIG_HPET_TIMER_BASE_ADDRESS, KB(4), MMU_ENTRY_WRITE);
|
2017-10-11 13:55:06 -07:00
|
|
|
#endif
|
2018-07-31 12:44:34 +03:00
|
|
|
|
|
|
|
#ifdef CONFIG_ETH_E1000
|
2018-11-13 15:15:23 +01:00
|
|
|
MMU_BOOT_REGION(DT_ETH_E1000_BASE_ADDRESS, KB(128), MMU_ENTRY_WRITE);
|
2018-07-31 12:44:34 +03:00
|
|
|
#endif
|
|
|
|
|
2017-05-22 11:25:47 +05:30
|
|
|
#endif /* CONFIG_X86_MMU*/
|