Skip to content

Massive x86 Update - Bring x86 in line with ARM and PPC

Graeme Russ u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest36 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/36x86 - Fix definition of global_data struct for asm-offsets.carch/i386/include/asm/global_data.h+1 -10 replies
2/36x86 - Fix mangled umlautsarch/i386/cpu/start.S arch/i386/lib/board.c+2 -20 replies
3/36x86 - Move config.mk options to arch/i386/config.mkarch/i386/config.mk arch/i386/cpu/config.mk board/eNET/config.mk+8 -80 replies
4/36x86 - move linker script into arch folderarch/i386/config.mk arch/i386/cpu/u-boot.lds board/eNET/u-boot.lds+106 -1040 replies
5/36x86 - Paramatize link locationsarch/i386/cpu/config.mk arch/i386/cpu/u-boot.lds board/eNET/config.mk+14 -150 replies
6/36x86 - Add stack dump to register dumparch/i386/cpu/interrupts.c+16 -00 replies
7/36x86 - Parametize location of Real Mode codearch/i386/config.mk arch/i386/cpu/u-boot.lds arch/i386/lib/realmode.c+5 -50 replies
8/36x86 - Move Global Descriptor Table defines to processor.harch/i386/cpu/cpu.c arch/i386/include/asm/processor.h+7 -100 replies
9/36x86 - Add processor flags header from linuxarch/i386/cpu/cpu.c arch/i386/cpu/interrupts.c arch/i386/cpu/sc520/sc520.c +3 more+121 -100 replies
10/36x86 - Call early_board_init when warm bootingarch/i386/cpu/start.S+5 -50 replies
11/36x86 - Make cpu init functions weakarch/i386/cpu/cpu.c arch/i386/cpu/sc520/sc520.c arch/i386/include/asm/u-boot-i386.h +1 more+16 -310 replies
12/36sc520 - Sort Makefilearch/i386/cpu/sc520/Makefile+1 -11 reply
12/36sc520 - Sort Makefile+0 -01 reply
13/36sc520 - Define MMCR address in include filearch/i386/cpu/sc520/sc520.c arch/i386/cpu/sc520/sc520_asm.S arch/i386/include/asm/ic/sc520.h +1 more+54 -380 replies
14/36sc520 - Move board specific settings to board init functionarch/i386/cpu/sc520/sc520.c board/eNET/eNET.c+9 -190 replies
15/36sc520 - Remove printf calls from cpu_init_farch/i386/cpu/sc520/sc520.c+0 -20 replies
16/36eNET - Remove --no-warn when compiling dlmalloc.cboard/eNET/config.mk+0 -10 replies
17/36eNET - Fix eNET Interrupt Setup for Linuxboard/eNET/eNET.c+9 -60 replies
18/36eNET - Add RTC support to eNETdrivers/rtc/mc146818.c include/configs/eNET.h+8 -00 replies
19/36eNET - Update board configurationsboard/eNET/config.mk boards.cfg+2 -20 replies
20/36eNET - Define MMCR values in config.hboard/eNET/eNET.c include/configs/eNET.h+39 -30 replies
21/36eNET - Define PAR settings in board configuration fileboard/eNET/eNET.c board/eNET/eNET_start16.S include/configs/eNET.h+78 -170 replies
22/36eNET - Rearrange PAR assignmentsboard/eNET/eNET.c include/configs/eNET.h+79 -160 replies
23/36sc520 - Init SDRAM PAR earlyboard/eNET/eNET.c board/eNET/eNET_start.S+13 -40 replies
24/36x86 - Move initial gd to fixed locationarch/i386/cpu/start.S arch/i386/include/asm/global_data.h arch/i386/lib/board.c +1 more+37 -190 replies
25/36x86 - Use Cache-As-RAM for initial stackarch/i386/cpu/sc520/Makefile arch/i386/cpu/sc520/sc520_asm.S arch/i386/cpu/sc520/sc520_car.S +2 more+133 -210 replies
26/36sc520 - Move RAM sizing code from asm to Carch/i386/cpu/sc520/Makefile arch/i386/cpu/sc520/sc520.c arch/i386/cpu/sc520/sc520_asm.S +8 more+580 -7770 replies
27/36x86 - Defer setup of final stackarch/i386/cpu/start.S arch/i386/lib/board.c+33 -170 replies
28/36x86 - Move call to dram_init_f into board_init_farch/i386/cpu/start.S arch/i386/lib/board.c+5 -30 replies
29/36x86 - Move test for cold boot into init functionsarch/i386/cpu/sc520/sc520.c arch/i386/lib/board.c+11 -130 replies
30/36x86 - Move console initialisation into board_init_farch/i386/lib/board.c+12 -30 replies
31/36x86 - Fix incorrect usage of relocation offsetarch/i386/cpu/start.S arch/i386/lib/board.c+6 -60 replies
32/36x86 - Split board_init_f() into init_fnc_t compatible functionsarch/i386/include/asm/global_data.h arch/i386/lib/board.c+74 -490 replies
33/36x86 - Rearrange function calls in board_init_farch/i386/lib/board.c+8 -80 replies
34/36x86 - Convert board_init_f to use an init_sequencearch/i386/lib/board.c+30 -380 replies
35/36sc520 - Release CAR and enable cachingarch/i386/cpu/sc520/sc520.c+11 -50 replies
36/36eNET - Move initial Global Data into CARinclude/configs/eNET.h+1 -10 replies

Reviews trailers per patch

None of the 37 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchWolfgang Denk
SeriesA-b
1/36
2/36
3/36
4/36
5/36
6/36
7/36
8/36
9/36
10/36
11/36
12/36
12/36
13/36
14/36
15/36
16/36
17/36
18/36
19/36
20/36
21/36
22/36
23/36
24/36
25/36
26/36
27/36
28/36
29/36
30/36
31/36
32/36
33/36
34/36
35/36
36/36

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH 00/36] Massive x86 Update - Bring x86 in line with ARM and PPC

It's been a while since I've posted a patch (missed the last release cycle entirely). I've been working on bringing x86 into line with ARM and PowerPC with the init sequence running in flash. Currently, the SDRAM gets initialised in asm before jumping into C and the first thing the C code did was copy U-Boot to RAM.

The breakthrough came when I discovered that the sc520 CPU can be configured to enable the 16kB cache to be used as Cache-As-RAM (Thanks to Juergen Beisert). The 'big' changes in this series are:

- Memory initialisation is done in C (26)
- The initial global data is placed in CAR (Patches 24 & 36) - These are interesting and could be used to get rid of the fixed register for global data, but that would break the standalone API which uses it
- Board initialisation moved into RAM (patches 27 - 34)

The fist 22 patches are mostly cleanups to make the remaining patches a little simpler.

Regards,

Graeme

Graeme Russ (36):
x86 - Fix definition of global_data struct for asm-offsets.c x86 - Fix mangled umlauts
x86 - Move config.mk options to arch/i386/config.mk x86 - move linker script into arch folder
x86 - Paramatize link locations
x86 - Add stack dump to register dump
x86 - Parametize location of Real Mode code
x86 - Move Global Descriptor Table defines to processor.h x86 - Add processor flags header from linux
x86 - Call early_board_init when warm booting
x86 - Make cpu init functions weak
sc520 - Sort Makefile
sc520 - Define MMCR address in include file
sc520 - Move board specific settings to board init function sc520 - Remove printf calls from cpu_init_f
eNET - Remove --no-warn when compiling dlmalloc.c eNET - Fix eNET Interrupt Setup for Linux
eNET - Add RTC support to eNET
eNET - Update board configurations
eNET - Define MMCR values in config.h
eNET - Define PAR settings in board configuration file eNET - Rearrange PAR assignments
sc520 - Init SDRAM PAR early
x86 - Move initial gd to fixed location
x86 - Use Cache-As-RAM for initial stack
sc520 - Move RAM sizing code from asm to C
x86 - Defer setup of final stack
x86 - Move call to dram_init_f into board_init_f
x86 - Move test for cold boot into init functions
x86 - Move console initialisation into board_init_f x86 - Fix incorrect usage of relocation offset
x86 - Split board_init_f() into init_fnc_t compatible functions x86 - Rearrange function calls in board_init_f
x86 - Convert board_init_f to use an init_sequence sc520 - Release CAR and enable caching
eNET - Move initial Global Data into CAR

 arch/i386/config.mk                     |   13 +-
 arch/i386/cpu/config.mk                 |    9 +-
 arch/i386/cpu/cpu.c                     |   35 ++-
 arch/i386/cpu/interrupts.c              |   19 +-
 arch/i386/cpu/sc520/Makefile            |    5 +-
 arch/i386/cpu/sc520/sc520.c             |  146 +-------
 arch/i386/cpu/sc520/sc520_asm.S         |  615 -------------------------------
 arch/i386/cpu/sc520/sc520_car.S         |   94 +++++
 arch/i386/cpu/sc520/sc520_sdram.c       |  522 ++++++++++++++++++++++++++
 arch/i386/cpu/start.S                   |  107 +++---
 arch/i386/cpu/start16.S                 |    5 +-
 arch/i386/cpu/u-boot.lds                |   96 +++++
 arch/i386/include/asm/global_data.h     |   21 +-
 arch/i386/include/asm/ic/sc520.h        |   70 ++++-
 arch/i386/include/asm/processor-flags.h |  100 +++++
 arch/i386/include/asm/processor.h       |    9 +-
 arch/i386/include/asm/u-boot-i386.h     |    2 +
 arch/i386/lib/board.c                   |  148 +++++---
 arch/i386/lib/realmode.c                |    7 +-
 board/eNET/config.mk                    |    6 +-
 board/eNET/eNET.c                       |  120 ++++---
 board/eNET/eNET_start.S                 |    3 +-
 board/eNET/eNET_start16.S               |   16 +-
 board/eNET/u-boot.lds                   |  104 ------
 boards.cfg                              |    3 +-
 drivers/rtc/mc146818.c                  |    6 +
 include/configs/eNET.h                  |  147 ++++++++-
 27 files changed, 1351 insertions(+), 1077 deletions(-)
 delete mode 100644 arch/i386/cpu/sc520/sc520_asm.S
 create mode 100644 arch/i386/cpu/sc520/sc520_car.S
 create mode 100644 arch/i386/cpu/sc520/sc520_sdram.c
 create mode 100644 arch/i386/cpu/u-boot.lds
 create mode 100644 arch/i386/include/asm/processor-flags.h
 delete mode 100644 board/eNET/u-boot.lds