mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-05 18:56:15 +09:00
![Simon Glass](/assets/img/avatar_default.png)
There are several blocks of registers that are accessed from all over the code on Intel CPUs. These don't currently have their own driver and it is not clear whether having a driver makes sense. An example is the Memory Controller Hub (MCH). We map it to a known location on some Intel chips (mostly those without FSP - Firmware Support Package). Add a new header file for these registers, and move MCH into it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
16 lines
301 B
C
16 lines
301 B
C
/*
|
|
* Copyright (c) 2016 Google, Inc
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0
|
|
*/
|
|
|
|
#ifndef __ASM_INTEL_REGS_H
|
|
#define __ASM_INTEL_REGS_H
|
|
|
|
/* Access the memory-controller hub */
|
|
#define MCH_BASE_ADDRESS 0xfed10000
|
|
#define MCH_BASE_SIZE 0x8000
|
|
#define MCHBAR_REG(reg) (MCH_BASE_ADDRESS + (reg))
|
|
|
|
#endif
|