mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 00:51:29 +00:00
With commit e9883124ff, a GPIO_INT macro was added. That change
also required that all instances of GPIO_INT in a board's
gpio.inc file come before any GPIO macros, or the interrupt
handler wouldn't work properly.
This CL just adds a warning comment about requirement to all
gpio.inc files.
BUG=chromium:471331
BRANCH=none
TEST=make buildall, test image on Cr50
This is a change to comments only. There is no new behavior to
verify, although I did run try out one new image just to be sure
nothing stupid happened.
Change-Id: I83f7819929a53bce3a8bae04d15b3ee3bda11738
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/329334
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
23 lines
780 B
C
23 lines
780 B
C
/* -*- mode:c -*-
|
|
*
|
|
* Copyright (c) 2015 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
|
|
*/
|
|
|
|
/* Declare symbolic names for all the GPIOs that we care about.
|
|
* Note: Those with interrupt handlers must be declared first. */
|
|
|
|
/* SPI PVT chip select */
|
|
GPIO(PVT_CS0, PIN(146), GPIO_ODR_HIGH)
|
|
|
|
/* Alternate functions GPIO definition */
|
|
/* UART */
|
|
ALTERNATE(PIN_MASK(16, 0x24), 1, MODULE_UART, 0)
|
|
/* SPI pins */
|
|
ALTERNATE(PIN_MASK(5, 0x10), 1, MODULE_SPI, 0)
|
|
ALTERNATE(PIN_MASK(16, 0x10), 1, MODULE_SPI, 0)
|
|
ALTERNATE(PIN_MASK(15, 0x08), 1, MODULE_SPI, 0)
|