Skip to content

Commit

Permalink
soc/intel/baytrail/northcluster.c: Do not report the same region twice
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Żygowski <[email protected]>
  • Loading branch information
miczyg1 committed Sep 24, 2024
1 parent a46648b commit c7542a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/soc/intel/baytrail/northcluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ static void nc_read_resources(struct device *dev)
smmrrl = (iosf_bunit_read(BUNIT_SMRRL) & 0xffff) * MiB;
smmrrh = ((iosf_bunit_read(BUNIT_SMRRH) & 0xffff) + 1) * MiB;

/* 0xc0000 -> smrrl - cacheable and usable */
ram_from_to(dev, index++, 0xc0000, smmrrl);
/* 1MB -> smrrl - cacheable and usable */
ram_from_to(dev, index++, 1 * MiB, smmrrl);

if (smmrrh > smmrrl)
reserved_ram_from_to(dev, index++, smmrrl, smmrrh);
Expand Down

0 comments on commit c7542a5

Please sign in to comment.