blob: ffed589ee12aa2bdcc2e835188c1465295f6adf7 [file] [log] [blame]
Stefan Reinauer80e62932013-07-29 15:52:23 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2013 Google Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Stefan Reinauer80e62932013-07-29 15:52:23 -070014 */
15
Stefan Reinauer80e62932013-07-29 15:52:23 -070016#include <cbmem.h>
Julius Werner80af4422014-10-20 13:18:56 -070017#include <soc/cpu.h>
18#include <stddef.h>
Stefan Reinauer80e62932013-07-29 15:52:23 -070019
Arthur Heymans340e4b82019-10-23 17:25:58 +020020void *cbmem_top_chipset(void)
Stefan Reinauer80e62932013-07-29 15:52:23 -070021{
22 return (void *)(get_fb_base_kb() * KiB);
23}