26 Feb, 2014
1 commit
-
Rename OBJCFLAGS to OBJCOPYFLAGS beforehand to use
"cmd_objcopy" in scripts/Makefile.lib in an upcoming commit.Signed-off-by: Masahiro Yamada
20 Feb, 2014
1 commit
-
This commit changes the working directory
where the build process occurs.Before this commit, build process occurred under the source
tree for both in-tree and out-of-tree build.That's why we needed to add $(obj) prefix to all generated
files in makefiles like follows:
$(obj)u-boot.bin: $(obj)u-bootHere, $(obj) is empty for in-tree build, whereas it points
to the output directory for out-of-tree build.And our old build system changes the current working directory
with "make -C " syntax when descending into the
sub-directories.On the other hand, Kbuild uses a different idea
to handle out-of-tree build and directory descending.The build process of Kbuild always occurs under the output tree.
When "O=dir/to/store/output/files" is given, the build system
changes the current working directory to that directory and
restarts the make.Kbuild uses "make -f $(srctree)/scripts/Makefile.build obj="
syntax for descending into sub-directories.
(We can write it like "make $(obj)=" with a shorthand.)
This means the current working directory is always the top
of the output directory.Signed-off-by: Masahiro Yamada
Tested-by: Gerhard Sittig
27 Nov, 2013
2 commits
-
Whilst U-boot does not require this itself, Linux currently relies upon
it having been muxed and enabled by the bootloader. Thus in order to
preserve compatibility with current kernels before a fix is merged in
Linux we will enable the SERIRQ interrupt and mux it to its pin.Without doing this current kernels will never receive serial port
interrupts and the end result is typically that userland appears to
hang.Signed-off-by: Paul Burton
-
The baudrate passed to Linux in the environment was hardcoded at 38400.
Instead pass the correct baudrate from global data, allowing Linux to
correctly inherit the baudrate used by U-boot when console setup is not
explicitly specified.Signed-off-by: Paul Burton
15 Nov, 2013
1 commit
-
The physical base address of the NOR flash is 0x1e000000
on the Malta boards. The hardware also maps the first 4MiB
of the flash into the 0x1fc00000-0x1fffffff range.Currently, U-Boot uses the mapped address to access the
flash, which does not work in recent qemu versions.Since commit a427338b222b43197c2776cbc996936df0302f51
(mips_malta: correct reading MIPS revision at 0x1fc00010)
writing to the mapped address space causes a CPU exception.
Due to the exception, U-Boot hangs during boot when it tries
to detect the CFI flash chip.Use the correct physical address for the MALTA_FLASH_BASE
constant to fix the problem. In order to avoid relocation
problems, also update the CONFIG_SYS_{TEXT,MONITOR}_BASE
constants.The change makes it possible to start U-Boot on a Malta
board emulated with Qemu 1.6.1 and 1.7.0-rc0. It also
works on older versions (tested with 1.1.1, 1.2.2, 1.4.2,
1.5.3).Signed-off-by: Gabor Juhos
Signed-off-by: Daniel Schwierzeck
Cc: Paul Burton
11 Nov, 2013
1 commit
-
This patch replaces the GPL-2.0 text with a GPL-2.0
SPDX-License-Identifier tag, and adds Imagination Technologies copyright
following my recent changes.Signed-off-by: Paul Burton
10 Nov, 2013
5 commits
-
Without setting up the PIRQ[A:D] interrupt routes, PCI interrupts will
be left disabled. Linux does not set up this routing but relies upon it
having been set up by the bootloader, reading back the IRQ lines which
the PIRQ[A:D] signals have been routed to.This patch routes PIRQA & PIRQB to IRQ 10, and PIRQC & PIRQD to IRQ 11.
This matches the setup used by YAMON.Signed-off-by: Paul Burton
-
Displaying a message on the LCD screen is a simple yet effective way to
show the user that the board has booted successfully.Signed-off-by: Paul Burton
-
This patch adds support for running on Malta boards using coreFPGA6
core cards, including support for the msc01 system controller used
with them. The system controller is detected at runtime allowing one
U-boot binary to run on a Malta with either.Due to the PCI I/O base differing between Maltas using gt64120 & msc01
system controllers, the UART setup is modified slightly. A second UART
is added so that there is one pointing at the correct address for each
system controller. The Malta board then defines its own
default_serial_console function to select the correct one at runtime.
The incorrect UART will simply not function.Tested on:
- A coreFPGA6 Malta running interAptiv and proAptiv bitstreams, both
with and without an L2 cache.
- QEMU.Signed-off-by: Paul Burton
-
This is in preparation for adapting this board to function correctly on
a physical MIPS Malta board. The board is moved into an "imgtec" vendor
directory at the same time in order to ready us for any other boards
supported by Imagination in the future.Signed-off-by: Paul Burton
-
For boards such as the MIPS Malta with an FPGA core card it is desirable
to be able to detect the L1 cache sizes at runtime, since they are not
dependant upon the board but on the FPGA bitstream in use. This patch
performs that detection when the CONFIG_SYS_[DI]CACHE_SIZE macros are
not defined by the board configuration. In cases where the sizes are
detected this patch also removes the restriction that the I-cache &
D-cache line sizes must be the same, as this is not necessarily true.If the cache sizes are defined by a configuration then they will be
hardcoded as before, so this patch will not add overhead to such
boards.Signed-off-by: Paul Burton
09 Nov, 2013
1 commit
-
Linux Kernel abolished include/linux/config.h long time ago.
(around version v2.6.18..v2.6.19)We don't need to provide Linux copatibility any more.
This commit deletes include/linux/config.h
and fixes source files not to include this.Signed-off-by: Masahiro Yamada
08 Nov, 2013
1 commit
-
Signed-off-by: Masahiro Yamada
01 Nov, 2013
1 commit
-
Signed-off-by: Masahiro Yamada
Cc: Daniel Schwierzeck
21 Oct, 2013
1 commit
-
This parameter will later be used to verify OTG ports.
Signed-off-by: Troy Kisky
15 Oct, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
13 Aug, 2013
8 commits
-
The Qemu specific bootm implementation was intended for a special
Qemu target in Linux kernel. But this target has been dropped in
v2.6.25-rc1 by commit 302922e5f6901eb6f29c58539631f71b3d9746b8Author: Ralf Baechle
Date: Tue Jan 29 10:15:02 2008 +0000[MIPS] Qemu: Remove platform.
The Qemu platform was originally implemented to have an easily supportable
platform until Qemu reaches a state where it emulates a real world system.
Since the latest release Qemu is capable of emulating the MIPSsim and
Malta platforms, so this goal has been reached. The Qemu plaform is also
rather underfeatured so less useful than a Malta emulation.Thus the special bootm implementation is obsolete by now and can be
dropped. The Qemu support in U-Boot is going to be replaced by MIPS Malta
board support.Signed-off-by: Gabor Juhos
Signed-off-by: Daniel Schwierzeck -
Signed-off-by: Gabor Juhos
Signed-off-by: Daniel Schwierzeck -
All linux kernels after v2.6 require a page-aligned location of
an external init ramdisk. Enable CONFIG_SYS_BOOT_RAMDISK_HIGH to
support this with the generic U-Boot relocation code.Signed-off-by: Daniel Schwierzeck
-
Move initialisation of Linux environment to separate functions.
Signed-off-by: Daniel Schwierzeck
-
Move initialisation of Linux command line to separate functions.
Also add support for bootm subcommand 'cmdline'.Signed-off-by: Daniel Schwierzeck
-
This is required for init ramdisk relocation and device tree
support.Signed-off-by: Gabor Juhos
Signed-off-by: Daniel Schwierzeck -
Fix signature of kernel entry function. Mark the kernel entry
with __noreturn for better code optimisation.Signed-off-by: Daniel Schwierzeck
-
Signed-off-by: Daniel Schwierzeck
24 Jul, 2013
16 commits
-
Synchronize the code with mips64/cache.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Synchronize the code with mips64/cache.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Synchronize the code with mips64/cache.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Make it similar to the code in mips{32,64}/start.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Synchronize the code with mips{32,64}/start.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Synchronize the code with mips{32,64}/start.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Synchronize the code with mips{32,64}/start.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Synchronize the code with mips{32,64}/start.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Make it similar to the code in mips64/start.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Synchronize the code with mips64/start.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
The t4 register already holds the cache
line size, and the value of the register
is not changed in mips_init_icache.Get the cache line size value from t4 for
mips_init_dcache as well and remove the
superfluous assignment of t5 register.Signed-off-by: Gabor Juhos
-
Nothing is used from asm/mipsregs.h.
Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Checking mips32/time.c with checkpatch.pl shows this:
arch/mips/cpu/mips32/time.c:30: WARNING: line over 80 characters
arch/mips/cpu/mips32/time.c:57: ERROR: return is not a function, parentheses are not required
total: 1 errors, 1 warnings, 0 checks, 85 lines checkedFix the code to make checkpatch.pl happy.
Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Move the GT64120 register base to 0x1be00000
and setup PCI BAR registers as done by the
original YAMON bootloader.This is needed for running Linux kernel.
Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
The MIPS Malta board has a SOFTRES register. Writing a
magic value into that register initiates a board reset.Use this feature to implement reset support.
Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck