| 091c4943 | 15-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: Ensure that all relocation data is included in the image
Some toolchains put the relocation data into separate sections. Adjust the linker script to catch this case. Without relocation data, U-
x86: Ensure that all relocation data is included in the image
Some toolchains put the relocation data into separate sections. Adjust the linker script to catch this case. Without relocation data, U-Boot will not boot.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
show more ...
|
| 65990d56 | 15-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: Remove board_early_init_r()
This function is not needed. Remove it to improve the generic init sequence slightly.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@
x86: Remove board_early_init_r()
This function is not needed. Remove it to improve the generic init sequence slightly.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
show more ...
|
| 2f6d42b9 | 25-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: Add ivybridge directory to Makefile
It is now required to add subdirectories in the x86 cpu Makefile. Add this to fix a build breakage for chromebook_link.
Signed-off-by: Simon Glass <sjg@chro
x86: Add ivybridge directory to Makefile
It is now required to add subdirectories in the x86 cpu Makefile. Add this to fix a build breakage for chromebook_link.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 746667f1 | 24-Nov-2014 |
Tom Rini <trini@ti.com> |
Merge git://git.denx.de/u-boot-x86
Conflicts: arch/x86/cpu/Makefile
Signed-off-by: Tom Rini <trini@ti.com> |
| 37c9940a | 13-Nov-2014 |
Masahiro Yamada <yamada.m@jp.panasonic.com> |
x86: use CONFIG_SYS_COREBOOT to descend into coreboot/ directory
The references of CONFIG_SYS_COREBOOT in arch/x86/cpu/coreboot/Makefile are redundant because the build system descends into the dire
x86: use CONFIG_SYS_COREBOOT to descend into coreboot/ directory
The references of CONFIG_SYS_COREBOOT in arch/x86/cpu/coreboot/Makefile are redundant because the build system descends into the directory only when CONFIG_SYS_COREBOOT is defined.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 165ecd26 | 13-Nov-2014 |
Masahiro Yamada <yamada.m@jp.panasonic.com> |
kbuild: Descend into SOC directory from CPU directory
Some CPUs of some architectures have SOC directories. At present, the build system directly descends into SOC directories from the top Makefile,
kbuild: Descend into SOC directory from CPU directory
Some CPUs of some architectures have SOC directories. At present, the build system directly descends into SOC directories from the top Makefile, but it should generally descend into each directory from its parent directory.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
show more ...
|
| b4141195 | 06-Nov-2014 |
Masahiro Yamada <yamada.m@jp.panasonic.com> |
linux/kernel.h: sync min, max, min3, max3 macros with Linux
U-Boot has never cared about the type when we get max/min of two values, but Linux Kernel does. This commit gets min, max, min3, max3 mac
linux/kernel.h: sync min, max, min3, max3 macros with Linux
U-Boot has never cared about the type when we get max/min of two values, but Linux Kernel does. This commit gets min, max, min3, max3 macros synced with the kernel introducing type checks.
Many of references of those macros must be fixed to suppress warnings. We have two options: - Use min, max, min3, max3 only when the arguments have the same type (or add casts to the arguments) - Use min_t/max_t instead with the appropriate type for the first argument
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Pavel Machek <pavel@denx.de> Acked-by: Lukasz Majewski <l.majewski@samsung.com> Tested-by: Lukasz Majewski <l.majewski@samsung.com> [trini: Fixup arch/blackfin/lib/string.c] Signed-off-by: Tom Rini <trini@ti.com>
show more ...
|
| 65dd74a6 | 13-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: ivybridge: Implement SDRAM init
Implement SDRAM init using the Memory Reference Code (mrc.bin) provided in the board directory and the SDRAM SPD information in the device tree. This also needs
x86: ivybridge: Implement SDRAM init
Implement SDRAM init using the Memory Reference Code (mrc.bin) provided in the board directory and the SDRAM SPD information in the device tree. This also needs the Intel Management Engine (me.bin) to work. Binary blobs everywhere: so far we have MRC, ME and microcode.
SDRAM init works by setting up various parameters and calling the MRC. This in turn does some sort of magic to work out how much memory there is and the timing parameters to use. It also sets up the DRAM controllers. When the MRC returns, we use the information it provides to map out the available memory in U-Boot.
U-Boot normally moves itself to the top of RAM. On x86 the RAM is not generally contiguous, and anyway some RAM may be above 4GB which doesn't work in 32-bit mode. So we relocate to the top of the largest block of RAM we can find below 4GB. Memory above 4GB is accessible with special functions (see physmem).
It would be possible to build U-Boot in 64-bit mode but this wouldn't necessarily provide any more memory, since the largest block is often below 4GB. Anyway U-Boot doesn't need huge amounts of memory - even a very large ramdisk seldom exceeds 100-200MB. U-Boot has support for booting 64-bit kernels directly so this does not pose a limitation in that area. Also there are probably parts of U-Boot that will not work correctly in 64-bit mode. The MRC is one.
There is some work remaining in this area. Since memory init is very slow (over 500ms) it is possible to save the parameters in SPI flash to speed it up next time. Suspend/resume support is not fully implemented, or at least it is not efficient.
With this patch, link boots to a prompt.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 3eafce05 | 13-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: ivybridge: Add LAPIC support
The local advanced programmable interrupt controller is not used much in U-Boot but we do need to set it up. Add basic support for this, which will be extended as n
x86: ivybridge: Add LAPIC support
The local advanced programmable interrupt controller is not used much in U-Boot but we do need to set it up. Add basic support for this, which will be extended as needed.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| a49e3c7f | 13-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: Make show_boot_progress() common
This function can probably be used on all x86 boards, so move it into the common file.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 8e0df066 | 13-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: ivybridge: Add early init for PCH devices
Many PCH devices are hard-coded to a particular PCI address. Set these up early in case they are needed.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 77f9b1fb | 13-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: ivybridge: Perform Intel microcode update on boot
Microcode updates are stored in the device tree. Work through these and apply any that are needed.
Signed-off-by: Simon Glass <sjg@chromium.or
x86: ivybridge: Perform Intel microcode update on boot
Microcode updates are stored in the device tree. Work through these and apply any that are needed.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 94060ff2 | 13-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: ivybridge: Check BIST value on boot
The built-in self test value should be checked before we continue booting. Refuse to continue if there is something wrong.
Signed-off-by: Simon Glass <sjg@c
x86: ivybridge: Check BIST value on boot
The built-in self test value should be checked before we continue booting. Refuse to continue if there is something wrong.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| f5fbbe95 | 13-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: ivybridge: Perform initial CPU setup
Set up the flex ratio (controls speed versus heat output) and a few other very early things.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 378a8634 | 13-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: Tidy up coreboot header usage
There is no need to explicitly write 'arch-coreboot' when including headers, as when the arch directory points to coreboot the correct files will be used.
Signed-
x86: Tidy up coreboot header usage
There is no need to explicitly write 'arch-coreboot' when including headers, as when the arch directory points to coreboot the correct files will be used.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 2b605154 | 13-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: ivybridge: Add early LPC init so that serial works
The PCH (Platform Controller Hub) includes an LPC (Low Pin Count) device which provides a serial port. This is accessible on Chromebooks, so e
x86: ivybridge: Add early LPC init so that serial works
The PCH (Platform Controller Hub) includes an LPC (Low Pin Count) device which provides a serial port. This is accessible on Chromebooks, so enable it early in the boot process.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 6fb3b72e | 13-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: pci: Allow configuration before relocation
Add simple PCI access routines for x86 which permit use before relocation. The normal PCI stack is still used, but for pre-relocation use there can on
x86: pci: Allow configuration before relocation
Add simple PCI access routines for x86 which permit use before relocation. The normal PCI stack is still used, but for pre-relocation use there can only ever be a single hose. After relocation, fall back to the normal access, although even then on x86 machines there is normally only a single PCI bus.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 6e5b12b6 | 13-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: ivybridge: Enable PCI in early init
Enable PCI so we can access devices that need to be set up before relocation.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 7430f108 | 13-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: Support use of PCI before relocation
Add support for using PCI before SDRAM is available, using early malloc() and global_data.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin M
x86: Support use of PCI before relocation
Add support for using PCI before SDRAM is available, using early malloc() and global_data.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
show more ...
|
| d188b18f | 13-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: Refactor PCI to permit alternate init
We want access PCI earlier in the init sequence, so refactor the code so that it does not require use of a BSS variable to work. This will allow us to use
x86: Refactor PCI to permit alternate init
We want access PCI earlier in the init sequence, so refactor the code so that it does not require use of a BSS variable to work. This will allow us to use early malloc() to store information about a PCI hose.
Common PCI code moves to arch/x86/cpu/pci.c and a new board_pci_setup_hose() function is provided by boards to set up the (single) hose used by that board.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
show more ...
|
| 70a09c6c | 13-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: chromebook_link: Implement CAR support (cache as RAM)
Add support for CAR so that we have memory to use prior to DRAM init. On link there is a total of 128KB of CAR available, although some is
x86: chromebook_link: Implement CAR support (cache as RAM)
Add support for CAR so that we have memory to use prior to DRAM init. On link there is a total of 128KB of CAR available, although some is used for the memory reference code.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| d1cd0459 | 13-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: Emit post codes in startup code for Chromebooks
On x86 it is common to use 'post codes' which are 8-bit hex values emitted from the code and visible to the user. Traditionally two 7-segment dis
x86: Emit post codes in startup code for Chromebooks
On x86 it is common to use 'post codes' which are 8-bit hex values emitted from the code and visible to the user. Traditionally two 7-segment displays were made available on the motherboard to show the last post code that was emitted. This allows diagnosis of a boot problem since it is possible to see where the code got to before it died.
On modern hardware these codes are not normally visible. On Chromebooks they are displayed by the Embedded Controller (EC), so it is useful to emit them. We must enable this feature for the EC to see the codes, so add an option for this.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
show more ...
|
| 8ef07571 | 13-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: Add chromebook_link board
This board is a 'bare' version of the existing 'link 'board. It does not require coreboot to run, but is intended to start directly from the reset vector.
This initia
x86: Add chromebook_link board
This board is a 'bare' version of the existing 'link 'board. It does not require coreboot to run, but is intended to start directly from the reset vector.
This initial commit has place holders for a wide range of features. These will be added in follow-on patches and series. So far it cannot be booted as there is no ROM image produced, but it does build without errors.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| a5eb04db | 13-Nov-2014 |
Masahiro Yamada <yamada.m@jp.panasonic.com> |
x86: use CONFIG_SYS_COREBOOT to descend into coreboot/ directory
The references of CONFIG_SYS_COREBOOT in arch/x86/cpu/coreboot/Makefile are redundant because the build system descends into the dire
x86: use CONFIG_SYS_COREBOOT to descend into coreboot/ directory
The references of CONFIG_SYS_COREBOOT in arch/x86/cpu/coreboot/Makefile are redundant because the build system descends into the directory only when CONFIG_SYS_COREBOOT is defined.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 727c1a98 | 11-Nov-2014 |
Simon Glass <sjg@chromium.org> |
x86: Replace fill_processor_name() with cpu_get_name()
This implementation has a 'cpu' prefix and returns a pointer to the string, avoiding the need for copying.
Signed-off-by: Simon Glass <sjg@chr
x86: Replace fill_processor_name() with cpu_get_name()
This implementation has a 'cpu' prefix and returns a pointer to the string, avoiding the need for copying.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
show more ...
|