Hi Jon,
2016-09-23 14:34 GMT+09:00 Jon Masters :
> On 09/23/2016 01:09 AM, Jon Masters wrote:
>> On 08/30/2016 03:22 AM, Masahiro Yamada wrote:
>>> If CONFIG_ARMV7_NONSEC is enabled, the linker script requires
>>> CONFIG_ARMV7_PSCI_NR_CPUS regardless of CONFIG_ARMV7_PSCI.
>>>
Jon Master reports that QEMU refuses to load a U-Boot image built
with CONFIG_ARMV7_NONSEC, but without CONFIG_ARMV7_PSCI since
commit 5a3aae68c74e ("ARM: armv7: guard memory reserve for PSCI
with #ifdef CONFIG_ARMV7_PSCI").
It looks like only PSCI that needs the Secure stack, so move
the #ifdef
Hello Travis,
Am 26.09.2016 um 06:43 schrieb Travis Waters:
Thanks for the response. I went ahead and used the current patch as-is, which
allowed me to build.
I haven't yet verified whether the result is functional, though. (We are
probably a couple weeks
out from having our FLASH driver in
Hello Daniel,
Am 21.09.2016 um 15:25 schrieb Daniel.:
Hi everybody, I was wondering what would be the difficult to run some
curses based menu from u-boot.
I've been search for curses porting and found this:
http://frank.harvard.edu/~coldwell/ncurses/hackguide.html. The big
problem here is that
Hello Travis,
Am 21.09.2016 um 22:05 schrieb Travis Waters:
Hello,
I am working to enable UBIFS for use on the sparc platform and I am running
into the same linking trouble flagged in this thread:
uboot/fs/ubifs/lpt_commit.c:1232: undefined reference to
`dbg_chk_lpt_free_spc'
Enable palmas PMIC config options.
Signed-off-by: Keerthy
Reviewed-by: Tom Rini
---
configs/am57xx_evm_defconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig
index 27ea472..6c60d9b
The driver provides regulator set/get voltage
enable/disable functions for palmas family of PMICs.
Signed-off-by: Keerthy
Reviewed-by: Simon Glass
Reviewed-by: Tom Rini
---
drivers/power/regulator/Kconfig| 8 +
Add support to bind the regulators/child nodes with the pmic.
Signed-off-by: Keerthy
Reviewed-by: Simon Glass
Reviewed-by: Tom Rini
---
drivers/power/pmic/Kconfig | 7 +
drivers/power/pmic/Makefile | 1 +
Enable palmas PMIC config options.
Signed-off-by: Keerthy
Reviewed-by: Tom Rini
---
configs/dra7xx_evm_defconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/configs/dra7xx_evm_defconfig b/configs/dra7xx_evm_defconfig
index 64df490..16798b5
The ctrl reg contains bit fields to enable and disable regulators,
and volt_reg has the bit fields to configure the voltage values.
The registers are frequently accessed hence make them part
of dm_regulator_uclass_platdata structure.
Signed-off-by: Keerthy
Reviewed-by: Tom Rini
Add u8 i2c read/write hooks.
Signed-off-by: Keerthy
Reviewed-by: Tom Rini
---
drivers/i2c/i2c-uclass.c | 10 ++
include/i2c.h| 24
2 files changed, 34 insertions(+)
diff --git a/drivers/i2c/i2c-uclass.c
The series adds support for Palmas family of PMICs.
Implements functions to configure regulators. Enable/Disable
Get/Set voltages of regulators.
Supports TPS659038, TPS65917, Palmas.
Tested on TPS659038, TPS65917 using DRA7XX-EVM and AM57XX-EVM.
Changes in v4:
Added Reviewed-by and a minor
Hello Simon,
Am 26.09.2016 um 05:33 schrieb Simon Glass:
This gives a build warning on 64-bit x86. Fix it.
Signed-off-by: Simon Glass
---
drivers/i2c/intel_i2c.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Acked-by: Heiko Schocher
bye,
For LD11 and LD20 SoCs, the System Bus and NAND are multiplexed
in the same I/O pins. When booting from a NAND device, pin-mux
for the System Bus must not be set-up because they are exclusive
with each other.
Signed-off-by: Masahiro Yamada
---
The Makefiles are getting cluttered for u-boot.cfg.
I do not think that we should make effort for u-boot.cfg
because it is almost the same as include/autoconf.mk.tmp
I was consindering this series as a replacement
for Stephen Warren's fixes, but I was late.
Anyway, I do not like code
Our build system still parses ad-hoc CONFIG options in header files
and generates include/autoconf.mk so that Makefiles can reference
them. This gimmick was introduced in the pre-Kconfig days and will
be kept until Kconfig migration is completed.
The include/autoconf.mk is generated like
Currently, the check-config.sh terminates the build when unknown
ad-hoc options are detected. I think it is too much because we may
want to patch config headers locally in a build/deployment project.
So, let's relax check-config.sh to just warn even if it detects
options that are not in the
The command suggested in this comment block is wrong; it would not
rip off CONFIG options that had already been converted to Kconfig.
Instead, we should use the scripts/build-whitelist.sh tool.
Signed-off-by: Masahiro Yamada
---
scripts/check-config.sh | 9
I am going to move the build rule of u-boot.cfg. Before that,
no_new_adhoc_configs_check must be tweaked to not depend on it.
The ad-hoc option check can be done at the end of build, along
with other checks.
Signed-off-by: Masahiro Yamada
---
Makefile | 14
I do not remember why I wrote the code like this, but let's make it
a bit more readable.
Signed-off-by: Masahiro Yamada
---
scripts/Makefile.autoconf | 11 ---
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/scripts/Makefile.autoconf
SPL needs to set up the machine ready for loading 64-bit U-Boot and jumping
to it. Call the existing init routines in order to accomplish this.
Signed-off-by: Simon Glass
---
arch/x86/include/asm/spl.h | 8 +++
arch/x86/lib/Makefile | 3 +
arch/x86/lib/spl.c
Add a 64-bit relocation function. SPL loads U-Boot into RAM at a fixed
address and runs it. U-Boot then relocates itself to the top of RAM using
this relocation function.
Signed-off-by: Simon Glass
---
arch/x86/lib/relocate.c | 45
Much of the cpu and interrupt code cannot be compiled on 64-bit x86. Move it
into its own directory and build it only in 32-bit mode.
Signed-off-by: Simon Glass
---
arch/x86/cpu/Makefile | 6 +-
arch/x86/cpu/cpu.c |
This doesn't build at present and is not used in a 64-bit build. Disable it
for now.
Signed-off-by: Simon Glass
---
arch/x86/include/asm/cpu.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/x86/include/asm/cpu.h b/arch/x86/include/asm/cpu.h
index
At present all 16/32-bit init is controlled by CONFIG_X86_RESET_VECTOR. If
this is enabled, then U-Boot is the 'first' boot loader and handles execution
from the reset vector through to U-Boot's command prompt. If it is not
enabled then U-Boot starts at the 32-bit entry and skips most of its init,
We don't have the code for this yet. Add a dummy version for now, so that
EFI builds correctly.
Signed-off-by: Simon Glass
---
arch/x86/cpu/x86_64/Makefile | 2 +-
arch/x86/cpu/x86_64/setjmp.c | 20
2 files changed, 21 insertions(+), 1 deletion(-)
Fix various compiler warnings in the x86 library code.
Signed-off-by: Simon Glass
---
arch/x86/lib/bios.c | 4 ++--
arch/x86/lib/pinctrl_ich6.c | 2 +-
arch/x86/lib/pirq_routing.c | 4 ++--
arch/x86/lib/sfi.c | 4 ++--
arch/x86/lib/zimage.c | 2 +-
5
It's not clear how we would handle graphics init in 64-bit mode. Probably
we would need to change back to 32-bit or 16-bit to run the graphics ROM.
For now, disable it in 64-bit mode.
Signed-off-by: Simon Glass
---
arch/x86/cpu/ivybridge/Makefile | 2 +-
We don't support SDRAM init in 64-bit mode since it is essentially
impossible to get into that mode before SDRAM set up. Provide dummy functions
for now. At some point we will need to pass the SDRAM parameters through from
SPL.
Signed-off-by: Simon Glass
---
Addresses should not be cast to size_t. Use uintptr_t instead.
Signed-off-by: Simon Glass
---
arch/x86/lib/relocate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/lib/relocate.c b/arch/x86/lib/relocate.c
index bac2fb6..ad47c7e 100644
---
This doesn't work at present. Disable it for now.
Signed-off-by: Simon Glass
---
arch/x86/cpu/ivybridge/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/cpu/ivybridge/Makefile b/arch/x86/cpu/ivybridge/Makefile
index 96185d2..8bebcf8 100644
---
This is left out of the example memory map. Add it to avoid confusion.
Signed-off-by: Simon Glass
---
doc/README.x86 | 1 +
1 file changed, 1 insertion(+)
diff --git a/doc/README.x86 b/doc/README.x86
index 9d3129a..44b7388 100644
--- a/doc/README.x86
+++ b/doc/README.x86
@@
When SPL and U-Boot proper have different settings for this flag, we need to
use the correct one. Fix this up in the interrupt code.
Signed-off-by: Simon Glass
---
arch/x86/cpu/i386/interrupt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
Some files cannot be built with 64-bit and mostly don't make sense in that
context. Disable them.
Signed-off-by: Simon Glass
---
arch/x86/cpu/Makefile | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/x86/cpu/Makefile b/arch/x86/cpu/Makefile
Adjust types as needed to support 64-bit compilation.
Signed-off-by: Simon Glass
---
arch/x86/include/asm/posix_types.h | 5 +
arch/x86/include/asm/types.h | 5 +
2 files changed, 10 insertions(+)
diff --git a/arch/x86/include/asm/posix_types.h
Remove the very old x86 code and add support for 64-bit.
Signed-off-by: Simon Glass
---
arch/x86/include/asm/byteorder.h | 17 +
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/arch/x86/include/asm/byteorder.h b/arch/x86/include/asm/byteorder.h
When building for 64-bit we need to put an SPL binary into the image. Update
the binman image description to reflect this.
Signed-off-by: Simon Glass
---
arch/x86/dts/binman.dtsi | 19 +++
1 file changed, 19 insertions(+)
diff --git
Add the correct pre-relocation tag so that the required device tree nodes
are present in the SPL device tree.
On x86 it doesn't make a lot of sense to have a separate SPL device tree.
Since everything is in the same ROM we might as well just use the main
device tree in both SPL and U-Boot proper.
Change link to use 64-bit U-Boot. This is not fully functional but is it
a start. Missing features:
- SDRAM sizing
- Booting linux
- EFI support
- SCSI device init
(and others)
Signed-off-by: Simon Glass
---
configs/chromebook_link_defconfig | 1 +
1 file changed, 1
Update config.mk settings to support both 32-bit and 64-bit U-Boot.
Signed-off-by: Simon Glass
---
arch/x86/config.mk | 30 --
arch/x86/cpu/config.mk | 2 --
2 files changed, 28 insertions(+), 4 deletions(-)
diff --git a/arch/x86/config.mk
If SPL is used we want to use the generic SPL framework and boot from SPI
via a board-specific means. Add these options to the board config file.
Signed-off-by: Simon Glass
---
configs/chromebook_link_defconfig | 21 -
include/configs/chromebook_link.h |
This code is only used in 32-bit mode. Move it so that it does not get
built with 64-bit U-Boot.
Signed-off-by: Simon Glass
---
arch/x86/cpu/Makefile| 2 +-
arch/x86/cpu/i386/Makefile | 1 +
arch/x86/cpu/{ => i386}/call64.S | 0
3 files changed, 2
Set up the 64-bit U-Boot text base if building for that target.
Signed-off-by: Simon Glass
---
board/google/chromebook_link/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/board/google/chromebook_link/Kconfig
This is not currently supported, so drop the code.
Signed-off-by: Simon Glass
---
arch/x86/lib/interrupts.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/x86/lib/interrupts.c b/arch/x86/lib/interrupts.c
index dd08402..d3ae6d9 100644
---
This code is only used in 32-bit mode. Move it so that it does not get
built with 64-bit U-Boot.
Signed-off-by: Simon Glass
---
arch/x86/cpu/Makefile| 3 ---
arch/x86/cpu/i386/Makefile | 1 +
arch/x86/cpu/{ => i386}/setjmp.S | 0
3 files changed, 1
This avoids using BSS before SDRAM is set up in SPL.
Signed-off-by: Simon Glass
---
arch/x86/lib/pirq_routing.c | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/arch/x86/lib/pirq_routing.c b/arch/x86/lib/pirq_routing.c
index c98526d..5df3cab
To avoid using BSS in SPL before SDRAM is set up, move this field to
global_data.
Signed-off-by: Simon Glass
---
arch/x86/cpu/irq.c | 12 +---
arch/x86/include/asm/global_data.h | 1 +
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git
Booting into linux from 64-bit U-Boot is not yet supported. Avoid bringing
in the bootm code until it is implemented.
Of course 32-bit U-Boot still supported booting into both 32- and 64-bit
kernels.
Signed-off-by: Simon Glass
---
arch/x86/lib/Makefile | 4
1 file
To avoid using BSS in SPL before SDRAM is set up, move this field to
global_data.
Signed-off-by: Simon Glass
---
arch/x86/cpu/turbo.c | 8
arch/x86/include/asm/global_data.h | 1 +
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git
Add a rough function to handle jumping from 32-bit SPL to 64-bit U-Boot.
This still needs work to clean it up.
Signed-off-by: Simon Glass
---
arch/x86/cpu/call64.S | 3 +++
arch/x86/cpu/i386/cpu.c| 65 ++
This is not supported, so disable it for now.
Signed-off-by: Simon Glass
---
arch/x86/lib/Makefile | 2 ++
drivers/pci/pci_rom.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/x86/lib/Makefile b/arch/x86/lib/Makefile
index 1fa7f90..ad3200a 100644
These are currently not supported. Calling 64-bit code from 64-bit U-Boot is
much simpler, so this code is not needed. setjmp() is not yet implemented for
64-bit.
Signed-off-by: Simon Glass
---
arch/x86/cpu/Makefile | 6 +-
arch/x86/lib/bootm.c | 2 ++
2 files changed,
When SPL is used we need to build the 16-bit start-up code. Add Makefile
rules to handle this.
Signed-off-by: Simon Glass
---
scripts/Makefile.spl | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
index
This should return normal errors, not device-tree errors. Fix it.
Signed-off-by: Simon Glass
---
arch/x86/lib/mrccache.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/arch/x86/lib/mrccache.c b/arch/x86/lib/mrccache.c
index 67bace4..eca88ac
If SPL is used it is always build in 32-bit mode. Add a link script to
handle the correct placement of the sections.
Signed-off-by: Simon Glass
---
arch/x86/cpu/u-boot-spl.lds | 74 +
1 file changed, 74 insertions(+)
create mode
Since 'gd' is just a normal variable on 64-bit x86, it is relocated by the
time we get to board_init_r(). The old 'gd' variable is passed in as
parameter to board_init_r(), presumably for this situation.
Assign it on 64-bit x86 so that gd points to the correct data.
Options to improve this:
-
Some files are missing this declaration. Add it to avoid build errors when
we actually need the declaration.
Signed-off-by: Simon Glass
---
arch/x86/cpu/ivybridge/bd82x6x.c | 2 ++
arch/x86/cpu/ivybridge/gma.c | 2 ++
arch/x86/cpu/ivybridge/lpc.c | 2 ++
This needs a different image format from 32-bit x86, so add a new link
script.
Signed-off-by: Simon Glass
---
arch/x86/cpu/config.mk | 6
arch/x86/cpu/u-boot-64.lds | 76 ++
2 files changed, 82 insertions(+)
create mode
Move the core relocation code into a separate function so that the checking
code can be used for 64-bit relocation also.
Signed-off-by: Simon Glass
---
arch/x86/lib/relocate.c | 57 -
1 file changed, 33 insertions(+), 24
The BSS region may overlap with relocations. If we clear BSS we will
overwrite the start of the relocation area. This doesn't matter when running
from SPI flash, since it is read-only. But when relocating 64-bit U-Boot
from one place in RAM to another, relocation will fail because some of its
At present this is just an ordinary variable. We may consider making it a
fixed register in the future.
Signed-off-by: Simon Glass
---
arch/x86/cpu/x86_64/cpu.c | 13 +
arch/x86/include/asm/global_data.h | 6 +-
2 files changed, 18 insertions(+), 1
Add a new Kconfig option to allow timer drivers to be used in SPL.
Signed-off-by: Simon Glass
---
common/spl/Kconfig | 9 +
drivers/Makefile | 1 +
2 files changed, 10 insertions(+)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 6e0637a..260387c 100644
There is not much needed at present, but set up a separate directory to put
this code as it grows.
Signed-off-by: Simon Glass
---
arch/x86/cpu/Makefile| 4 +++-
arch/x86/cpu/x86_64/Makefile | 6 ++
arch/x86/cpu/x86_64/cpu.c| 35
Add code to start up U-Boot in 64-bit mode. It is fairly simple since we are
running from RAM and SPL has done the low-level init.
Signed-off-by: Simon Glass
---
arch/x86/Makefile | 5 +
arch/x86/cpu/Makefile | 4
arch/x86/cpu/start64.S | 39
Use this new option to control the location of 32-bit init. This will allow
us to place this in SPL if needed.
Signed-off-by: Simon Glass
---
arch/x86/cpu/intel_common/Makefile | 10 ++
arch/x86/lib/init_helpers.c| 2 +-
2 files changed, 7 insertions(+), 5
Fix a cast that causes warnings on 64-bit machines.
Signed-off-by: Simon Glass
---
drivers/usb/host/ehci-pci.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index 6fc2479..f20fc33 100644
---
Update the Makefile so that some 32-bit init can be built into SPL rather
than U-Boot proper.
Signed-off-by: Simon Glass
---
arch/x86/cpu/ivybridge/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/cpu/ivybridge/Makefile
Use this new option to control the location of 16-bit init. This will allow
us to place this in SPL if needed.
Signed-off-by: Simon Glass
---
Makefile| 7 ---
arch/x86/Makefile | 6 ++
arch/x86/cpu/Makefile | 2 +-
arch/x86/cpu/u-boot.lds | 2
We don't have a way of adjusting these at present so it is best to refuse to
export these functions. This can be implemented later if the API is required.
Signed-off-by: Simon Glass
---
include/_exports.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
We almost always need the serial port before relocation, so mark it as such.
This will ensure that it appears in the device tree for SPL, if used.
Signed-off-by: Simon Glass
---
arch/x86/dts/serial.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git
Add a new CONFIG_X86_64 option which will eventually cause U-Boot to be
built as a 64-bit application, with SPL doing the 16/32-bit init.
Signed-off-by: Simon Glass
---
arch/x86/Kconfig | 46 ++
1 file changed, 46 insertions(+)
Adjust the code so that 64-bit startup works. Since we don't need to do CAR
changes in U-Boot proper anymore (they are done in SPL) we can simplify the
flow and return normally from board_init_f().
Signed-off-by: Simon Glass
---
common/board_f.c | 12
1 file
Fix a few types that causes warnings on 64-bit machines.
Signed-off-by: Simon Glass
---
arch/x86/cpu/ivybridge/gma.c | 2 +-
arch/x86/cpu/ivybridge/sata.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/cpu/ivybridge/gma.c
We should consistently use %z with size_t, and avoid passing a uint32_t as
a size_t value. Fix these issues to avoid warnings on 64-bit machines.
Signed-off-by: Simon Glass
---
drivers/tpm/tpm_tis_lpc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
Add a new Kconfig option to allow CPU drivers to be used in SPL.
Signed-off-by: Simon Glass
---
common/spl/Kconfig | 10 ++
drivers/Makefile | 1 +
2 files changed, 11 insertions(+)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 84670b1..3c33c9e
At present pch_power_options() has the arguments to writel() around the
wrong way. Fix this and update it to compile on 64-bit machines.
Signed-off-by: Simon Glass
---
arch/x86/cpu/ivybridge/lpc.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
Add various debug() messages in places where errors occur. This aids with
debugging.
Signed-off-by: Simon Glass
---
arch/x86/cpu/ivybridge/cpu.c | 4 +++-
arch/x86/cpu/ivybridge/sdram.c | 36 +++-
2 files changed, 30 insertions(+), 10
Fix a cast in get_next_hob() that causes warnings on 64-bit machines.
Signed-off-by: Simon Glass
---
arch/x86/include/asm/fsp/fsp_hob.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/fsp/fsp_hob.h
Drop init_bd_struct_r() which is no-longer used. Also drop the declaration
for init_func_spi() since this is now handled by generic board init.
Signed-off-by: Simon Glass
---
arch/x86/include/asm/init_helpers.h | 2 --
arch/x86/lib/init_helpers.c | 10 --
2
This gives a build warning on 64-bit x86. Fix it.
Signed-off-by: Simon Glass
---
drivers/i2c/intel_i2c.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/i2c/intel_i2c.c b/drivers/i2c/intel_i2c.c
index a0182dc..550a728 100644
---
Add a new Kconfig option to allow PCI drivers to be used in SPL.
Signed-off-by: Simon Glass
---
common/spl/Kconfig | 9 +
drivers/Makefile | 1 +
2 files changed, 10 insertions(+)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 3c33c9e..0c83ff1 100644
Add a new Kconfig option to allow RTC drivers to be used in SPL.
Signed-off-by: Simon Glass
---
common/spl/Kconfig | 10 ++
drivers/Makefile | 1 +
2 files changed, 11 insertions(+)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 0c83ff1..6e0637a
Fix the hex case and remove unused brackets. Use -0U instead of ~0UL to
allow compilation on 64-bit machines.
Signed-off-by: Simon Glass
---
arch/x86/cpu/ivybridge/lpc.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/x86/cpu/ivybridge/lpc.c
Add a link script and relocation code for building 64-bit EFI applications.
This can be used for the EFI stub.
Signed-off-by: Simon Glass
---
arch/x86/cpu/efi/elf_x86_64_efi.lds | 3 ++
arch/x86/lib/reloc_x86_64.c | 90 +
2 files
We should cast an address to unsigned long, not u32.
Signed-off-by: Simon Glass
---
arch/x86/cpu/interrupts.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/cpu/interrupts.c b/arch/x86/cpu/interrupts.c
index 46babe0..5f6cdd3 100644
---
We should use unsigned long rather than u32 for addresses. Update this so
that the table-generation code builds correctly on 64-bit machines.
Signed-off-by: Simon Glass
---
arch/x86/cpu/irq.c| 2 +-
arch/x86/include/asm/acpi_table.h | 2 +-
When BSS does not immediate follow the SPL image we don't need padding
before the device tree. Remove it in this case.
Signed-off-by: Simon Glass
---
scripts/Makefile.spl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/Makefile.spl
Update the code to support both 32-bit and 64-bit modes.
Signed-off-by: Simon Glass
---
arch/x86/cpu/interrupts.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/x86/cpu/interrupts.c b/arch/x86/cpu/interrupts.c
index dd2819a..46babe0 100644
---
We should cast an address to unsigned long, not u32.
Signed-off-by: Simon Glass
---
arch/x86/cpu/cpu.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index 269043d..7c1d6de 100644
---
Change this type from int to ulong to avoid warnings on 64-bit machines.
Signed-off-by: Simon Glass
---
include/video_fb.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/video_fb.h b/include/video_fb.h
index b008853..4a4fd5f 100644
---
At present this uses u32 to store an address. We should use unsigned long
and avoid special types in function return values and parameters unless
necessary. This makes the code more portable.
I believe Alex Graf has a patch to correct all of these, so this is just
a WIP patch.
Signed-off-by:
This Makefile variable can be used in the architecture's main Makefile but
at present it is not set up until later. Set it just before this Makefile is
included.
Signed-off-by: Simon Glass
---
scripts/Makefile.spl | 6 ++
1 file changed, 6 insertions(+)
diff --git
Add an option for building Platorm Controller Hub drivers in SPL.
Signed-off-by: Simon Glass
---
common/spl/Kconfig | 9 +
drivers/Makefile | 1 +
2 files changed, 10 insertions(+)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 260387c..64459e5 100644
CONFIG_CONSOLE_MUX and CONFIG_SYS_CONSOLE_IS_IN_ENV are not applicable
for SPL. Update the console code to use CONFIG_IS_ENABLED(), so that these
options will be inactive in SPL.
Signed-off-by: Simon Glass
---
common/console.c | 30 +++---
1 file
For 64-bit x86, __I386__ should perhaps not be defined. It is not clear from
the definition, but let's use CONFIG_X86 to be sure.
Signed-off-by: Simon Glass
---
drivers/rtc/mc146818.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/mc146818.c
This currently fails silently. Add a debug message to aid debugging.
Signed-off-by: Simon Glass
---
common/spl/spl_spi.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/common/spl/spl_spi.c b/common/spl/spl_spi.c
index a3caafb..3f400eb 100644
---
Add this so that we can support 64-bit relocation on x86.
Signed-off-by: Simon Glass
---
include/elf.h | 6 ++
1 file changed, 6 insertions(+)
diff --git a/include/elf.h b/include/elf.h
index a35e085..bcc5eb7 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -394,6
This is used in some link scripts, so add a declaration for it.
Signed-off-by: Simon Glass
---
include/asm-generic/sections.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/asm-generic/sections.h b/include/asm-generic/sections.h
index 54ccac9..daf021b 100644
---
Fix a cast that causes warnings on 64-bit machines.
Signed-off-by: Simon Glass
---
drivers/bios_emulator/atibios.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bios_emulator/atibios.c b/drivers/bios_emulator/atibios.c
index 7717246..2d5b5dc
This is already called earlier, from fdtdec_setup(), so drop this unnecessary
call from the init sequence.
Signed-off-by: Simon Glass
---
common/board_f.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/common/board_f.c b/common/board_f.c
index 2c88595..e3179a1 100644
1 - 100 of 184 matches
Mail list logo