mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-06 23:51:28 +00:00
Modules that are enabled are listed below: - Power Sequencing - Keyboard Scan and Protocol - LPC to support Keyboard - Power Button Task ec.spi.bin has to be generated manualy using pack_ec.py BUG=None BRANCH=None TEST=Tested on Stargo-Proto board Change-Id: Ic5d504c3d6e9c7c5f3482fb7e9e37800b6274824 Signed-off-by: Divya Jyothi <divya.jyothi@intel.com> Reviewed-on: https://chromium-review.googlesource.com/226303 Reviewed-by: Vic Yang <victoryang@chromium.org>
29 lines
916 B
C
29 lines
916 B
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.
|
|
*/
|
|
/* Strago board-specific configuration */
|
|
|
|
#include "extpower.h"
|
|
#include "gpio.h"
|
|
#include "lid_switch.h"
|
|
#include "power.h"
|
|
#include "power_button.h"
|
|
#include "registers.h"
|
|
#include "util.h"
|
|
|
|
#define GPIO_KB_INPUT (GPIO_INPUT | GPIO_PULL_UP)
|
|
#define GPIO_KB_OUTPUT (GPIO_ODR_HIGH)
|
|
#define GPIO_KB_OUTPUT_COL2 (GPIO_OUT_LOW)
|
|
|
|
#include "gpio_list.h"
|
|
|
|
/* power signal list. Must match order of enum power_signal. */
|
|
const struct power_signal_info power_signal_list[] = {
|
|
{GPIO_ALL_SYS_PGOOD, 1, "ALL_SYS_PWRGD"},
|
|
{GPIO_RSMRST_L_PGOOD, 1, "RSMRST_N_PWRGD"},
|
|
{GPIO_PCH_SLP_S3_L, 1, "SLP_S3#_DEASSERTED"},
|
|
{GPIO_PCH_SLP_S4_L, 1, "SLP_S4#_DEASSERTED"},
|
|
};
|
|
BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT);
|