diff options
author | Randall Spangler <rspangler@chromium.org> | 2011-12-12 15:39:07 -0800 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2011-12-13 09:50:53 -0800 |
commit | caba91fe2797f2e7a2792a151d337c20d080a950 (patch) | |
tree | 59165d9809476115709733cf0c333c8789481c23 /board/link/board.c | |
parent | 1ce694189a847727e8eca53fbc324f67b92238e5 (diff) | |
download | chrome-ec-caba91fe2797f2e7a2792a151d337c20d080a950.tar.gz |
Change register.h macros to use inline funcs without concatenate (##).
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=none
TEST=none
Change-Id: Ia8c54bfeff2351e8f76d97db558952a9d2ca9a45
Diffstat (limited to 'board/link/board.c')
-rw-r--r-- | board/link/board.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/board/link/board.c b/board/link/board.c index 7b1ceb77e7..fd6ac6bf75 100644 --- a/board/link/board.c +++ b/board/link/board.c @@ -1,3 +1,7 @@ +/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ /* EC for Link mainboard pins multiplexing */ #include "board.h" @@ -12,7 +16,7 @@ void configure_board(void) /* GPIOA muxing : * pins 0/1 : UART0 = function 1 */ - LM4_GPIO_PCTL(A) = 0x00000011; - LM4_GPIO_AFSEL(A) = 0x03; - LM4_GPIO_DEN(A) = 0x03; + LM4_GPIO_PCTL(LM4_GPIO_A) = 0x00000011; + LM4_GPIO_AFSEL(LM4_GPIO_A) = 0x03; + LM4_GPIO_DEN(LM4_GPIO_A) = 0x03; } |