storm/ipq8064: add dynamic CBMEM support

Squashed the correction patch with the original to avoid confusion in review.

All what's needed apart from configuring the feature is to provide a
function which would report the top of DRAM address.

  . with all other patches applied, the image proceeds all the way to
    trying to download 'fallback/payload'.

Original-Signed-off-by: Vadim Bendebury <>
Original-Change-Id: Ifa586964c931976df1dff354066670463f8e9ee3
(cherry picked from commit 54fed275fe80dee66d423ddd78a071d3f063464a)
Signed-off-by: Marc Jones <>

storm: initialize dynamic cbmem properly

Dynamic cbmem support has been enabled on storm, but the proper
initialization at romstage is missing.

Proper DRAM base address definition is also necessary so that CBMEM is
placed in the correct address range (presently at the top of DRAM).


TEST=build boot coreboot on ap148, observe the following in the
     console output:

  Wrote coreboot table at: 5fffd000, 0xe8 bytes, checksum 44a5
  coreboot table: 256 bytes.
  CBMEM ROOT  0. 5ffff000 00001000
  COREBOOT    1. 5fffd000 00002000

Original-Change-Id: I74ccd252ddfdeaa0a5bcc929be72be174f310730
Original-Signed-off-by: Vadim Bendebury <>
Original-Reviewed-by: Aaron Durbin <>
(cherry picked from commit e2aeb2f4e7f3959d5f5336f42a29909134a7ddb7)
Signed-off-by: Marc Jones <>

Change-Id: I45f7016dd510fe0e924b63eb85da607c1652af74
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <>
5 files changed