summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2018-08-15 13:54:19 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-08-16 00:30:06 -0700
commit165ee29673b058ba5f4550d5b6e1dfecb179bb22 (patch)
treef41ba0d0f840bc20d688827ba29fdfa88bfa4be1 /board
parentbaacee39d493a578b40227385d423a8a54629eba (diff)
downloadchrome-ec-165ee29673b058ba5f4550d5b6e1dfecb179bb22.tar.gz
ppc: nx20p3483: Rename driver to nx20p348x to support NX20P3481
This CL doesn't change any functionality, but renames the driver from 3483 to 348x. The motivation for this is that we need to support the NX20P3481 PPC as well. Those chips use the same registers, but the 3481 adds FRS support and sink/source control is done via I2C writes instead of gpio controls. Because the chips are slighlty different the config option CONFIG_USBC_PPC_NX20P3483 needs to remain. BUG=b:111281797 BRANCH=none TEST=make -j buildall Change-Id: Ie1085140eb2ef23c0b6e1a79a6f2d7f823326c6d Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/1176382 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/bobba/board.c6
-rw-r--r--board/fleex/board.c6
-rw-r--r--board/meep/board.c6
-rw-r--r--board/phaser/board.c6
-rw-r--r--board/yorp/board.c6
5 files changed, 15 insertions, 15 deletions
diff --git a/board/bobba/board.c b/board/bobba/board.c
index c106971a87..b3db6cebc6 100644
--- a/board/bobba/board.c
+++ b/board/bobba/board.c
@@ -16,7 +16,7 @@
#include "driver/accelgyro_lsm6dsm.h"
#include "driver/bc12/bq24392.h"
#include "driver/charger/bd9995x.h"
-#include "driver/ppc/nx20p3483.h"
+#include "driver/ppc/nx20p348x.h"
#include "driver/tcpm/anx7447.h"
#include "driver/tcpm/ps8xxx.h"
#include "driver/tcpm/tcpci.h"
@@ -59,11 +59,11 @@ static void ppc_interrupt(enum gpio_signal signal)
{
switch (signal) {
case GPIO_USB_PD_C0_INT_ODL:
- nx20p3483_interrupt(0);
+ nx20p348x_interrupt(0);
break;
case GPIO_USB_PD_C1_INT_ODL:
- nx20p3483_interrupt(1);
+ nx20p348x_interrupt(1);
break;
default:
diff --git a/board/fleex/board.c b/board/fleex/board.c
index 7a767cfd54..ab770aa8ad 100644
--- a/board/fleex/board.c
+++ b/board/fleex/board.c
@@ -17,7 +17,7 @@
#include "driver/accelgyro_lsm6dsm.h"
#include "driver/bc12/bq24392.h"
#include "driver/charger/bd9995x.h"
-#include "driver/ppc/nx20p3483.h"
+#include "driver/ppc/nx20p348x.h"
#include "driver/tcpm/anx7447.h"
#include "driver/tcpm/ps8xxx.h"
#include "driver/tcpm/tcpci.h"
@@ -61,11 +61,11 @@ static void ppc_interrupt(enum gpio_signal signal)
{
switch (signal) {
case GPIO_USB_PD_C0_INT_ODL:
- nx20p3483_interrupt(0);
+ nx20p348x_interrupt(0);
break;
case GPIO_USB_PD_C1_INT_ODL:
- nx20p3483_interrupt(1);
+ nx20p348x_interrupt(1);
break;
default:
diff --git a/board/meep/board.c b/board/meep/board.c
index 5fb62c4b91..1dca02cec4 100644
--- a/board/meep/board.c
+++ b/board/meep/board.c
@@ -17,7 +17,7 @@
#include "driver/accelgyro_lsm6dsm.h"
#include "driver/bc12/bq24392.h"
#include "driver/charger/bd9995x.h"
-#include "driver/ppc/nx20p3483.h"
+#include "driver/ppc/nx20p348x.h"
#include "driver/tcpm/anx7447.h"
#include "driver/tcpm/ps8xxx.h"
#include "driver/tcpm/tcpci.h"
@@ -62,11 +62,11 @@ static void ppc_interrupt(enum gpio_signal signal)
{
switch (signal) {
case GPIO_USB_PD_C0_INT_ODL:
- nx20p3483_interrupt(0);
+ nx20p348x_interrupt(0);
break;
case GPIO_USB_PD_C1_INT_ODL:
- nx20p3483_interrupt(1);
+ nx20p348x_interrupt(1);
break;
default:
diff --git a/board/phaser/board.c b/board/phaser/board.c
index e5571c3787..def9f92519 100644
--- a/board/phaser/board.c
+++ b/board/phaser/board.c
@@ -14,7 +14,7 @@
#include "cros_board_info.h"
#include "driver/accel_lis2dh.h"
#include "driver/accelgyro_lsm6dsm.h"
-#include "driver/ppc/nx20p3483.h"
+#include "driver/ppc/nx20p348x.h"
#include "driver/tcpm/anx7447.h"
#include "extpower.h"
#include "gpio.h"
@@ -49,11 +49,11 @@ static void ppc_interrupt(enum gpio_signal signal)
{
switch (signal) {
case GPIO_USB_PD_C0_INT_ODL:
- nx20p3483_interrupt(0);
+ nx20p348x_interrupt(0);
break;
case GPIO_USB_PD_C1_INT_ODL:
- nx20p3483_interrupt(1);
+ nx20p348x_interrupt(1);
break;
default:
diff --git a/board/yorp/board.c b/board/yorp/board.c
index 5c8acd692d..ffc80a923e 100644
--- a/board/yorp/board.c
+++ b/board/yorp/board.c
@@ -16,7 +16,7 @@
#include "driver/accelgyro_lsm6dsm.h"
#include "driver/bc12/bq24392.h"
#include "driver/charger/bd9995x.h"
-#include "driver/ppc/nx20p3483.h"
+#include "driver/ppc/nx20p348x.h"
#include "driver/tcpm/anx7447.h"
#include "driver/tcpm/ps8xxx.h"
#include "driver/tcpm/tcpci.h"
@@ -61,11 +61,11 @@ static void ppc_interrupt(enum gpio_signal signal)
{
switch (signal) {
case GPIO_USB_PD_C0_INT_ODL:
- nx20p3483_interrupt(0);
+ nx20p348x_interrupt(0);
break;
case GPIO_USB_PD_C1_INT_ODL:
- nx20p3483_interrupt(1);
+ nx20p348x_interrupt(1);
break;
default: