[U-Boot] [PATCH 6/9] MIPS: Support dynamic I/O port base address
Daniel Schwierzeck
daniel.schwierzeck at gmail.com
Mon Feb 1 22:27:57 CET 2016
2016-01-29 14:54 GMT+01:00 Paul Burton <paul.burton at imgtec.com>:
> The existing mips_io_port_base variable isn't suitable for use early
> during boot since it will be stored in the .data section which may not
> be writable pre-relocation. Fix this by moving the I/O port base address
> into struct arch_global_data. In order to avoid adding this field for
> all targets, make this dependant upon a new Kconfig entry
> CONFIG_DYNAMIC_IO_PORT_BASE. Malta is the only board which sets a
> non-zero I/O port base, so select this option only for Malta.
>
> Signed-off-by: Paul Burton <paul.burton at imgtec.com>
> ---
>
> arch/mips/Kconfig | 4 ++++
> arch/mips/include/asm/global_data.h | 3 +++
> arch/mips/include/asm/io.h | 48 +++++++++++++++++++++----------------
> arch/mips/lib/Makefile | 1 -
> arch/mips/lib/io.c | 12 ----------
> 5 files changed, 34 insertions(+), 34 deletions(-)
> delete mode 100644 arch/mips/lib/io.c
>
applied to u-boot-mips, thanks
--
- Daniel
More information about the U-Boot
mailing list