Re: [U-Boot] [PATCH v2 10/12] x86: coreboot: Wrap cros_ec initialization

2015-01-05 Thread Simon Glass
On 5 January 2015 at 08:28, Bin Meng bmeng...@gmail.com wrote:
 cros_ec_board_init() should be called only when CONFIG_CROS_EC is
 enabled.

 Signed-off-by: Bin Meng bmeng...@gmail.com

 ---

 Changes in v2:
 - Leave CROS_EC defines unchanged in coreboot.h

  board/coreboot/coreboot/coreboot.c | 2 ++
  1 file changed, 2 insertions(+)

Acked-by: Simon Glass s...@chromium.org
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 10/12] x86: coreboot: Wrap cros_ec initialization

2015-01-05 Thread Bin Meng
cros_ec_board_init() should be called only when CONFIG_CROS_EC is
enabled.

Signed-off-by: Bin Meng bmeng...@gmail.com

---

Changes in v2:
- Leave CROS_EC defines unchanged in coreboot.h

 board/coreboot/coreboot/coreboot.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/coreboot/coreboot/coreboot.c 
b/board/coreboot/coreboot/coreboot.c
index 154faf6..e076ea6 100644
--- a/board/coreboot/coreboot/coreboot.c
+++ b/board/coreboot/coreboot/coreboot.c
@@ -10,8 +10,10 @@
 
 int arch_early_init_r(void)
 {
+#ifdef CONFIG_CROS_EC
if (cros_ec_board_init())
return -1;
+#endif
 
return 0;
 }
-- 
1.8.2.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot