cr50: update for 11/20 hardware release

The clock frequency has been update from 26 to 30 Mhz.
Update the register definitions.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>

BRANCH=none
BUG=none
TEST=make BOARD=cr50
load the software and see the console working.

Change-Id: I7ccb15491f582173d17739c93ea8c94b05925a6d
Reviewed-on: https://chromium-review.googlesource.com/231129
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
Vincent Palatin
2014-11-20 15:24:51 -08:00
committed by chrome-internal-fetch
parent 7ac1e44477
commit a58083c421
3 changed files with 681 additions and 653 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -58,7 +58,7 @@ static void update_prescaler(void)
* just hard-coding it. We're also assuming the clock rate is an
* integer multiple of MHz.
*/
clock_mul_factor = 26; /* NOTE: prototype board */
clock_mul_factor = 30; /* NOTE: prototype board */
clock_div_factor = 0xffffffff / clock_mul_factor;
}
DECLARE_HOOK(HOOK_FREQ_CHANGE, update_prescaler, HOOK_PRIO_DEFAULT);

View File

@@ -124,7 +124,7 @@ void uart_ec_rx_interrupt(void)
DECLARE_IRQ(GC_IRQNUM_UART0_RXINT, uart_ec_rx_interrupt, 1);
/* Constants for setting baud rate */
#define PCLK_FREQ 26000000
#define PCLK_FREQ 30000000
#define DEFAULT_UART_FREQ 1000000
#define UART_NCO_WIDTH 16