Skip to content

Commit af11194

Browse files
committed
Move GCTRL init from common to SoC code
GCTRL is an ITE system block. Move it out of common code. Boards have not needed the header since 1fc832c ("Enable POST codes in EC init instead of per-board"). Signed-off-by: Tim Crawford <tcrawford@system76.com>
1 parent da0cd2b commit af11194

File tree

21 files changed

+9
-39
lines changed

21 files changed

+9
-39
lines changed

src/board/system76/addw2/board.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// SPDX-License-Identifier: GPL-3.0-only
22

33
#include <board/board.h>
4-
#include <board/gctrl.h>
54
#include <board/gpio.h>
65
#include <board/kbc.h>
76
#include <common/debug.h>

src/board/system76/addw3/board.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include <board/battery.h>
44
#include <board/board.h>
55
#include <board/espi.h>
6-
#include <board/gctrl.h>
76
#include <board/gpio.h>
87
#include <common/debug.h>
98
#include <ec/ec.h>

src/board/system76/addw4/board.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include <board/battery.h>
44
#include <board/board.h>
55
#include <board/espi.h>
6-
#include <board/gctrl.h>
76
#include <board/gpio.h>
87
#include <common/debug.h>
98
#include <ec/ec.h>

src/board/system76/bonw14/board.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// SPDX-License-Identifier: GPL-3.0-only
22

33
#include <board/board.h>
4-
#include <board/gctrl.h>
54
#include <board/gpio.h>
65
#include <common/debug.h>
76
#include <ec/ec.h>

src/board/system76/common/common.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ board-common-$(CONFIG_HAVE_DGPU) += dgpu.c
77
board-common-y += ecpm.c
88
board-common-$(CONFIG_BUS_ESPI) += espi.c
99
board-common-y += fan.c
10-
board-common-y += gctrl.c
1110
board-common-y += kbc.c
1211
board-common-y += kbscan.c
1312
board-common-y += keymap.c

src/board/system76/common/espi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <common/debug.h>
88
#include <common/macro.h>
99
#include <ec/ecpm.h>
10-
#include <ec/gctrl.h>
1110
#include <ec/gpio.h>
1211

1312
#include <8051.h>

src/board/system76/common/gctrl.c

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/board/system76/common/include/board/gctrl.h

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/board/system76/common/main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include <board/ecpm.h>
1010
#include <board/fan.h>
1111
#include <board/gpio.h>
12-
#include <board/gctrl.h>
1312
#include <board/kbc.h>
1413
#include <board/kbled.h>
1514
#include <board/kbscan.h>
@@ -55,7 +54,6 @@ uint8_t main_cycle = 0;
5554
void init(void) {
5655
// Must happen first
5756
ec_init();
58-
gctrl_init();
5957
gpio_init();
6058

6159
// Can happen in any order

src/board/system76/darp7/board.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#include <board/board.h>
44
#include <board/espi.h>
5-
#include <board/gctrl.h>
65
#include <board/gpio.h>
76
#include <common/debug.h>
87
#include <ec/ec.h>

0 commit comments

Comments
 (0)