summaryrefslogtreecommitdiff
path: root/chip/lm4/clock.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-04-24 17:55:01 -0700
committerRandall Spangler <rspangler@chromium.org>2012-04-24 18:34:46 -0700
commit470916fb0f856945f2a93c7fd160845b5f659be1 (patch)
tree18652a5cff68223ec72650afc12e1e2e727c8529 /chip/lm4/clock.c
parent135f14bf498ab19b6e75efc3a0d18ef7c8a8752d (diff)
downloadchrome-ec-470916fb0f856945f2a93c7fd160845b5f659be1.tar.gz
Use console output instead of uart output for console commands
This completes console output cleanup. The remaining calls to uart_puts() and uart_printf() actually need to be that way. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:7464 TEST=manual Change-Id: Ib1d6d370d30429017b3d11994894fece75fab6ea
Diffstat (limited to 'chip/lm4/clock.c')
-rw-r--r--chip/lm4/clock.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/chip/lm4/clock.c b/chip/lm4/clock.c
index 84608f7ee7..81e36c001e 100644
--- a/chip/lm4/clock.c
+++ b/chip/lm4/clock.c
@@ -15,7 +15,6 @@
#include "system.h"
#include "task.h"
#include "timer.h"
-#include "uart.h"
#include "util.h"
#define PLL_CLOCK 66666667 /* System clock = 200MHz PLL/3 = 66.667MHz */
@@ -113,8 +112,8 @@ static int command_sleep(int argc, char **argv)
gpio_set_level(GPIO_DEBUG_LED, 0);
#endif
- uart_printf("Going to sleep : level %d clock %d...\n", level, clock);
- uart_flush_output();
+ ccprintf("Going to sleep : level %d clock %d...\n", level, clock);
+ cflush();
/* clock setting */
if (clock) {
@@ -161,8 +160,8 @@ static int command_sleep(int argc, char **argv)
}
if (uartfbrd) {
- uart_printf("We are still alive. RCC=%08x\n", LM4_SYSTEM_RCC);
- uart_flush_output();
+ ccprintf("We are still alive. RCC=%08x\n", LM4_SYSTEM_RCC);
+ cflush();
}
asm volatile("cpsid i");
@@ -195,7 +194,7 @@ static int command_pll(int argc, char **argv)
{
/* Toggle the PLL */
clock_enable_pll(LM4_SYSTEM_RCC & LM4_SYSTEM_RCC_BYPASS ? 1 : 0);
- uart_printf("Clock frequency is now %d\n", clock_get_freq());
+ ccprintf("Clock frequency is now %d\n", clock_get_freq());
return EC_SUCCESS;
}
DECLARE_CONSOLE_COMMAND(pll, command_pll);