diff options
author | Stephen Boyd <swboyd@chromium.org> | 2018-08-15 13:37:07 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-14 15:37:23 +0200 |
commit | a7d9b5f0120eea9f0f58c2ed2b98d2fc86389af3 (patch) | |
tree | 114485222c10d9542ab189e3a37bcb9acf4d09ef /drivers/ide | |
parent | a28aad66da8bd19b249670d003bb9a698bdda397 (diff) | |
download | linux-a7d9b5f0120eea9f0f58c2ed2b98d2fc86389af3.tar.bz2 |
firmware: coreboot: Remap RAM with memremap() instead of ioremap()
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: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ide')
0 files changed, 0 insertions, 0 deletions