diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2016-03-28 22:57:26 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-04-07 21:49:20 +0200 |
commit | 0a36022b6919c93cb08dec08bd3d61bde4e42db5 (patch) | |
tree | a12e7b641680a447abdd5971cd5c25fd11db141a /src/soc/rockchip/rk3288/cbmem.c | |
parent | 2b6db9738ef6d09a068b65ef472c2d54f99abc37 (diff) | |
download | coreboot-0a36022b6919c93cb08dec08bd3d61bde4e42db5.tar.xz |
rockchip: refactor to sharing code among similar SOCs
Upcoming designs are based on similar SOCs, this patch moves code
which can be reused into a common directory under soc/rockchip.
Changing spi.h to include stdder.h, as this is were check_member() is
defined, this becomes necessary later when the new SOC code is added.
Renaming UART driver private functions not to be bound to any
particular SOC.
BUG=none
BRANCH=none
TEST=the refactored code works fine on the new platform (with the rest
of the patches applied).
Change-Id: I39a505aecda8849daa58a8eca0e44a5243664423
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: f63f2582042ac115481207ddf329ea2e3260e55e
Original-Change-Id: I3a1139305354d460492b25a45f3da315a9a0b49e
Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/335408
Original-Reviewed-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: https://review.coreboot.org/14235
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc/rockchip/rk3288/cbmem.c')
-rw-r--r-- | src/soc/rockchip/rk3288/cbmem.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/soc/rockchip/rk3288/cbmem.c b/src/soc/rockchip/rk3288/cbmem.c deleted file mode 100644 index d06b292424..0000000000 --- a/src/soc/rockchip/rk3288/cbmem.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright 2014 Rockchip Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -#include <cbmem.h> -#include <stddef.h> -#include <symbols.h> -#include <soc/sdram.h> - -void *cbmem_top(void) -{ - return _dram + sdram_size_mb()*MiB; -} |