Skip to content

RFC x86: Add Intel Quark Memory Reference Code (MRC) support

Bin Meng u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest9 patches 0 repliesNew
  2. v1 RFC9 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Fixed issues per review comments. See the following link for details.
http://lists.denx.de/pipermail/u-boot/2015-February/204023.html
- Fixed issues per review comments. See the following link for details.
http://lists.denx.de/pipermail/u-boot/2015-February/204044.html
- Write out the values instead of BIT in smc.h
- Removing the ending / in the file header comment block
- Update comment for calling mrc_init()
- Check return status of mrc_init()

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9x86: Allow overriding TSC_FREQ_IN_MHZarch/x86/Kconfig+20 -201 reply
2/9x86: quark: Bypass TSC calibrationarch/x86/cpu/quark/Kconfig+5 -01 reply
3/9x86: quark: Add Memory Reference Code (MRC) main routinesarch/x86/cpu/quark/mrc.c arch/x86/include/asm/arch-quark/mrc.h+391 -02 replies
4/9x86: quark: Add utility codes needed for MRCarch/x86/cpu/quark/hte.c arch/x86/cpu/quark/hte.h arch/x86/cpu/quark/mrc_util.c +1 more+2068 -02 replies
5/9x86: quark: Add System Memory Controller supportarch/x86/cpu/quark/smc.c arch/x86/cpu/quark/smc.h+3210 -02 replies
6/9x86: quark: Enable the Memory Reference Code buildarch/x86/cpu/quark/Makefile+1 -00 replies
7/9fdtdec: Add compatible id and string for Intel Quark MRCinclude/fdtdec.h lib/fdtdec.c+2 -01 reply
8/9dt-bindings: Add Intel Quark MRC bindingsinclude/dt-bindings/mrc/quark.h+83 -01 reply
9/9x86: quark: Call MRC in dram_init()arch/x86/cpu/quark/dram.c arch/x86/dts/galileo.dts+122 -22 replies

Reviews trailers per patch

8 of 9 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/9A-b
2/9A-b
3/9A-b
4/9A-b
5/9A-b
6/9
7/9A-b
8/9A-b
9/9A-b

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

Read the v2 thread

Cover letter [U-Boot] [RFC PATCH v2 0/9] x86: Add Intel Quark Memory Reference Code (MRC) support

This series adds the 2nd step of bare support for the Intel Quark SoC support which can be validated on Intel Galileo board. It adds Intel Quark Memory Reference Code (MRC) which is ported from Intel released UEFI BIOS for Quark, which per its name does the memory initialization for Quark based board. Now with this patch series, U-Boot boots to the command shell on Intel Galileo gen2 board.

The MRC port work was mainly replacing all UEFI BIOS APIs with corresponding U-Boot ones, like register access, timer, debug output etc, however the majority of the time was spent to converting Intel coding convention to U-Boot's, like comment block //, space to indent, camel cases, struct typedefs, etc. It took me almost 4 days to finish the work, but I have not managed to fix all checkpatch warnings given the code complexity and black magics in the codes. See commit notes inside patch#3, #4, #5 about the checkpatch warning details.

Currently only the cold boot path is taken by MRC and it takes about 10 seconds from power-up to U-Boot shell. Future work will be done to support a fast boot path (MRC cache) which is supposed to boot much faster. With previous Quark patch series, we have a basic support for Intel Quark SoC in good shape which more additional feature work can be based upon in the following weeks.

Changes in v2:
- Fixed issues per review comments. See the following link for details.
http://lists.denx.de/pipermail/u-boot/2015-February/204023.html
- Fixed issues per review comments. See the following link for details.
http://lists.denx.de/pipermail/u-boot/2015-February/204044.html
- Write out the values instead of BIT in smc.h
- Removing the ending / in the file header comment block
- Update comment for calling mrc_init()
- Check return status of mrc_init()

Bin Meng (9):
x86: Allow overriding TSC_FREQ_IN_MHZ
x86: quark: Bypass TSC calibration
x86: quark: Add Memory Reference Code (MRC) main routines
x86: quark: Add utility codes needed for MRC
x86: quark: Add System Memory Controller support
x86: quark: Enable the Memory Reference Code build
fdtdec: Add compatible id and string for Intel Quark MRC
dt-bindings: Add Intel Quark MRC bindings
x86: quark: Call MRC in dram_init()

 arch/x86/Kconfig                      |   40 +-
 arch/x86/cpu/quark/Kconfig            |    5 +
 arch/x86/cpu/quark/Makefile           |    1 +
 arch/x86/cpu/quark/dram.c             |   99 +-
 arch/x86/cpu/quark/hte.c              |  396 +++++
 arch/x86/cpu/quark/hte.h              |   44 +
 arch/x86/cpu/quark/mrc.c              |  204 +++
 arch/x86/cpu/quark/mrc_util.c         | 1475 ++++++++++++++++++
 arch/x86/cpu/quark/mrc_util.h         |  153 ++
 arch/x86/cpu/quark/smc.c              | 2764 +++++++++++++++++++++++++++++++++
 arch/x86/cpu/quark/smc.h              |  446 ++++++
 arch/x86/dts/galileo.dts              |   25 +
 arch/x86/include/asm/arch-quark/mrc.h |  187 +++
 include/dt-bindings/mrc/quark.h       |   83 +
 include/fdtdec.h                      |    1 +
 lib/fdtdec.c                          |    1 +
 16 files changed, 5902 insertions(+), 22 deletions(-)
 create mode 100644 arch/x86/cpu/quark/hte.c
 create mode 100644 arch/x86/cpu/quark/hte.h
 create mode 100644 arch/x86/cpu/quark/mrc.c
 create mode 100644 arch/x86/cpu/quark/mrc_util.c
 create mode 100644 arch/x86/cpu/quark/mrc_util.h
 create mode 100644 arch/x86/cpu/quark/smc.c
 create mode 100644 arch/x86/cpu/quark/smc.h
 create mode 100644 arch/x86/include/asm/arch-quark/mrc.h
 create mode 100644 include/dt-bindings/mrc/quark.h
Signature · 1 line
1.8.2.1