mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
This adds I2C2 support for Daisy: - Initializes I2C2 GPIO lines - Adds CONFIG_I2C so main() will call init function - Adds work task for I2C2 BUG=chromium-os:28925 TEST=build on daisy and discovery; run on daisy Change-Id: I147e3781b8bcac87ff248fb45c9978b614a24b89 Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: David Hendricks <dhendrix@chromium.org>
23 lines
733 B
Plaintext
23 lines
733 B
Plaintext
/* Copyright (c) 2012 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.
|
|
*/
|
|
|
|
/**
|
|
* List of enabled tasks in the priority order
|
|
*
|
|
* The first one has the lowest priority.
|
|
*
|
|
* For each task, use the macro TASK(n, r, d) where :
|
|
* 'n' in the name of the task
|
|
* 'r' in the main routine of the task
|
|
* 'd' in an opaque parameter passed to the routine at startup
|
|
*/
|
|
#define CONFIG_TASK_LIST \
|
|
TASK(WATCHDOG, watchdog_task, NULL) \
|
|
TASK(KEYSCAN, keyboard_scan_task, NULL) \
|
|
TASK(GAIAPOWER, gaia_power_task, NULL) \
|
|
TASK(CONSOLE, console_task, NULL) \
|
|
TASK(SPI_WORK, spi_work_task, NULL) \
|
|
TASK(I2C2_WORK, i2c2_work_task, NULL)
|