1. 26 9月, 2018 36 次提交
  2. 20 9月, 2018 1 次提交
  3. 14 9月, 2018 3 次提交
    • S
      firmware: coreboot: Only populate devices in coreboot_table_init() · 7adb05bb
      Stephen Boyd 提交于
      This function checks the header for sanity, registers a bus, and
      populates devices for each coreboot table entry. Let's just populate
      devices here and pull the other bits up into the caller so that this
      function can be repurposed for pure device creation and registration.
      
      Cc: Wei-Ning Huang <wnhuang@chromium.org>
      Cc: Julius Werner <jwerner@chromium.org>
      Cc: Brian Norris <briannorris@chromium.org>
      Cc: Samuel Holland <samuel@sholland.org>
      Suggested-by: NJulius Werner <jwerner@chromium.org>
      Signed-off-by: NStephen Boyd <swboyd@chromium.org>
      Reviewed-by: NJulius Werner <jwerner@chromium.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7adb05bb
    • S
      firmware: coreboot: Remap RAM with memremap() instead of ioremap() · a7d9b5f0
      Stephen Boyd 提交于
      This is all system memory, so we shouldn't be mapping this all with
      ioremap() as these aren't I/O regions. Instead, they're memory regions
      so we should use memremap(). Pick MEMREMAP_WB so we can map memory from
      RAM directly if that's possible, otherwise it falls back to
      ioremap_cache() like is being done here already. This also nicely
      silences the sparse warnings in this code and reduces the need to copy
      anything around anymore.
      
      Cc: Wei-Ning Huang <wnhuang@chromium.org>
      Cc: Julius Werner <jwerner@chromium.org>
      Cc: Brian Norris <briannorris@chromium.org>
      Cc: Samuel Holland <samuel@sholland.org>
      Signed-off-by: NStephen Boyd <swboyd@chromium.org>
      Reviewed-by: NJulius Werner <jwerner@chromium.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a7d9b5f0
    • S
      firmware: coreboot: Collapse platform drivers into bus core · a28aad66
      Stephen Boyd 提交于
      The DT based and ACPI based platform drivers here do the same thing; map
      some memory and hand it over to the coreboot bus to populate devices.
      The only major difference is that the DT based driver doesn't map the
      coreboot table header to figure out how large of a region to map for the
      whole coreboot table and it uses of_iomap() instead of ioremap_cache().
      A cached or non-cached mapping shouldn't matter here and mapping some
      smaller region first before mapping the whole table is just more work
      but should be OK. In the end, we can remove two files and combine the
      code all in one place making it easier to reason about things.
      
      We leave the old Kconfigs in place for a little while longer but make
      them hidden and select the previously hidden config option. This way
      users can upgrade without having to know to reselect this config in the
      future. Later on we can remove the old hidden configs.
      
      Cc: Wei-Ning Huang <wnhuang@chromium.org>
      Cc: Julius Werner <jwerner@chromium.org>
      Cc: Brian Norris <briannorris@chromium.org>
      Cc: Samuel Holland <samuel@sholland.org>
      Signed-off-by: NStephen Boyd <swboyd@chromium.org>
      Reviewed-by: NJulius Werner <jwerner@chromium.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a28aad66