mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
MIPS: Make CM GCR base configurable
Without adding a prompt for CONFIG_MIPS_CM_BASE, Kconfig doesn't allow defconfigs to set it. Provide the prompt in order to allow for that. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
63c011f7b4
commit
939a255a67
2 changed files with 12 additions and 9 deletions
|
@ -221,6 +221,16 @@ config ROM_EXCEPTION_VECTORS
|
||||||
Disable this, if the U-Boot image is booted from DRAM (e.g. by SPL).
|
Disable this, if the U-Boot image is booted from DRAM (e.g. by SPL).
|
||||||
In that case the image size will be reduced by 0x500 bytes.
|
In that case the image size will be reduced by 0x500 bytes.
|
||||||
|
|
||||||
|
config MIPS_CM_BASE
|
||||||
|
hex "MIPS CM GCR Base Address"
|
||||||
|
depends on MIPS_CM
|
||||||
|
default 0x1fbf8000
|
||||||
|
help
|
||||||
|
The physical base address at which to map the MIPS Coherence Manager
|
||||||
|
Global Configuration Registers (GCRs). This should be set such that
|
||||||
|
the GCRs occupy a region of the physical address space which is
|
||||||
|
otherwise unused, or at minimum that software doesn't need to access.
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "OS boot interface"
|
menu "OS boot interface"
|
||||||
|
@ -393,15 +403,6 @@ config MIPS_CM
|
||||||
wish U-Boot to configure it or make use of it to retrieve system
|
wish U-Boot to configure it or make use of it to retrieve system
|
||||||
information such as cache configuration.
|
information such as cache configuration.
|
||||||
|
|
||||||
config MIPS_CM_BASE
|
|
||||||
hex
|
|
||||||
default 0x1fbf8000
|
|
||||||
help
|
|
||||||
The physical base address at which to map the MIPS Coherence Manager
|
|
||||||
Global Configuration Registers (GCRs). This should be set such that
|
|
||||||
the GCRs occupy a region of the physical address space which is
|
|
||||||
otherwise unused, or at minimum that software doesn't need to access.
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <asm/cacheops.h>
|
#include <asm/cacheops.h>
|
||||||
|
#ifdef CONFIG_MIPS_L2_CACHE
|
||||||
#include <asm/cm.h>
|
#include <asm/cm.h>
|
||||||
|
#endif
|
||||||
#include <asm/mipsregs.h>
|
#include <asm/mipsregs.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
Loading…
Add table
Reference in a new issue