From 279de61f843d6d364c88110d0bb12e91d314f0ba Mon Sep 17 00:00:00 2001 From: Andrey Petrov Date: Thu, 16 Apr 2015 17:25:44 -0700 Subject: mec1322: initial version of lfw loader lfw is a customized boot loader with max targeted code size of 4k and data size of 2k.It supports minimal functionalities required to support chromebooks RO/RW architecture.It is placed in the write porected section with RO image . Capabilities include SPI,DMA,UART with minimal debugging support. Currently sysjump support is missing and exception handling is very basic. BUG=chromium:37510 TEST=make buildall -j, flashing and booting on strago BRANCH=None Change-Id: I803998d489297dfe0745dcccbb54412035d73f78 Signed-off-by: Andrey Petrov Signed-off-by: Divya Jyothi Reviewed-on: https://chromium-review.googlesource.com/265904 Reviewed-by: Randall Spangler --- board/cyan/lfw/gpio.inc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 board/cyan/lfw/gpio.inc (limited to 'board/cyan') diff --git a/board/cyan/lfw/gpio.inc b/board/cyan/lfw/gpio.inc new file mode 100644 index 0000000000..d1bb19cfcb --- /dev/null +++ b/board/cyan/lfw/gpio.inc @@ -0,0 +1,16 @@ +/* -*- mode:c -*- + * + * Copyright (c) 2014 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. + * + * Minimal set of GPIOs needed for LFW loader + */ + +GPIO(PVT_CS0, PORT(14), 6, GPIO_ODR_HIGH) /* SPI PVT Chip select */ + +/* Alternate functions GPIO definition */ +ALTERNATE(PORT(16), 0x24, 1, MODULE_UART, 0) /* UART0 */ +ALTERNATE(PORT(5), 0x10, 1, MODULE_SPI, 0) +ALTERNATE(PORT(16), 0x10, 1, MODULE_SPI, 0) +ALTERNATE(PORT(15), 0x08, 1, MODULE_SPI, 0) /* 153: CLK */ -- cgit v1.2.1