From 470916fb0f856945f2a93c7fd160845b5f659be1 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Tue, 24 Apr 2012 17:55:01 -0700 Subject: 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 BUG=chrome-os-partner:7464 TEST=manual Change-Id: Ib1d6d370d30429017b3d11994894fece75fab6ea --- chip/lm4/clock.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'chip/lm4/clock.c') 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); -- cgit v1.2.1