mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
npcx: Rename CONFIG_SHI to CONFIG_HOSTCMD_SPS
CONFIG_SHI ("SPI host interface") has identical meaning to
CONFIG_HOSTCMD_SPS ("Accept EC host commands over the SPI slave"). Use
CONFIG_HOSTCMD_SPS, since it came first and is already defined in config.h.
BUG=chrome-os-partner:50819
BRANCH=None
TEST=`make buildall -j`
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: I665c405ad72caa3b84e583a80c0893e4c625632a
Reviewed-on: https://chromium-review.googlesource.com/331342
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
9f39ce1903
commit
541de8a5a3
@@ -11,7 +11,7 @@
|
||||
/* Optional modules */
|
||||
#define CONFIG_ADC
|
||||
#define CONFIG_PWM
|
||||
#define CONFIG_SHI /* Used in ARM-based platform for host interface */
|
||||
#define CONFIG_HOSTCMD_SPS /* Used in ARM-based platform for host interface */
|
||||
|
||||
/* Optional features */
|
||||
#define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands for testing */
|
||||
|
||||
@@ -21,7 +21,7 @@ chip-$(CONFIG_FLASH)+=flash.o
|
||||
chip-$(CONFIG_I2C)+=i2c.o
|
||||
chip-$(CONFIG_LPC)+=lpc.o
|
||||
chip-$(CONFIG_PECI)+=peci.o
|
||||
chip-$(CONFIG_SHI)+=shi.o
|
||||
chip-$(CONFIG_HOSTCMD_SPS)+=shi.o
|
||||
# pwm functions are implemented with the fan functions
|
||||
chip-$(CONFIG_PWM)+=pwm.o
|
||||
chip-$(CONFIG_SPI)+=spi.o
|
||||
|
||||
@@ -679,7 +679,7 @@ void gpio_pre_init(void)
|
||||
#endif
|
||||
|
||||
/* Pin_Mux for LPC & SHI */
|
||||
#ifdef CONFIG_SHI
|
||||
#ifdef CONFIG_HOSTCMD_SPS
|
||||
/* Switching to eSPI mode for SHI interface */
|
||||
NPCX_DEVCNT |= 0x08;
|
||||
/* Alternate Intel bus interface LPC/eSPI to GPIOs first */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (c) 2015 The Chromium OS Authors. All rights reserved.
|
||||
/* Copyright 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.
|
||||
*/
|
||||
@@ -8,7 +8,7 @@
|
||||
#ifndef SHI_CHIP_H_
|
||||
#define SHI_CHIP_H_
|
||||
|
||||
#ifdef CONFIG_SHI
|
||||
#ifdef CONFIG_HOSTCMD_SPS
|
||||
/**
|
||||
* Called when the NSS level changes, signalling the start of a SHI
|
||||
* transaction.
|
||||
|
||||
Reference in New Issue
Block a user