aboutsummaryrefslogtreecommitdiff
path: root/src/soc/marvell/armada38x/uart.c
diff options
context:
space:
mode:
authorRuilin Hao <rlhao@marvell.com>2015-11-10 00:18:59 -0800
committerPatrick Georgi <pgeorgi@google.com>2016-02-04 11:31:45 +0100
commitde4defbaaf76a8bf7a705e3d1b265e1936cd7481 (patch)
tree8b1184e4496851be3a9a98d8a37527be4891bab9 /src/soc/marvell/armada38x/uart.c
parentc1b9e7934c0b100b8ce558669df8b57a03b2271f (diff)
soc/marvell/armada38x: Add i2c driver for armada38x
Port i2c driver from uboot to coreboot BUG=chrome-os-partner:47462 TEST=emerge-cyclone coreboot BRANCH=tot Change-Id: I8ce2a965acaed68ad0f0518648490ec471c6810b Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 4c2e9592662787ebed1d0aa8cafaa00fd12c2e9c Original-Change-Id: If791228edf29405fa4b2f959a21510bd7da9865b Original-Signed-off-by: Ruilin Hao <rlhao@marvell.com> Original-Reviewed-on: https://chromium-review.googlesource.com/313342 Original-Commit-Ready: Kan Yan <kyan@google.com> Original-Tested-by: Kan Yan <kyan@google.com> Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/13113 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/marvell/armada38x/uart.c')
-rw-r--r--src/soc/marvell/armada38x/uart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/marvell/armada38x/uart.c b/src/soc/marvell/armada38x/uart.c
index e535aebf67..dbd8dca78f 100644
--- a/src/soc/marvell/armada38x/uart.c
+++ b/src/soc/marvell/armada38x/uart.c
@@ -21,6 +21,7 @@
#include <stdint.h>
#include <assert.h>
#include <soc/common.h>
+#include <soc/clock.h>
struct armada38x_uart {
union {
@@ -94,7 +95,7 @@ static int armada38x_uart_tst_byte(struct armada38x_uart *uart_ptr)
unsigned int uart_platform_refclk(void)
{
- return MV_BOARD_TCLK_250MHZ;
+ return mv_tclk_get();
}
uintptr_t uart_platform_base(int idx)