Skip to content

Commit c028136

Browse files
committed
pwm: Move init from app to SoC
Signed-off-by: Tim Crawford <tcrawford@system76.com>
1 parent d46595f commit c028136

7 files changed

Lines changed: 4 additions & 12 deletions

File tree

src/app/main/Makefile.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ app-y += parallel.c
1616
app-y += pmc.c
1717
app-y += pnp.c
1818
app-y += ps2.c
19-
app-y += pwm.c
2019
app-y += scratch.c
2120
app-y += smbus.c
2221
app-y += smfi.c

src/app/main/acpi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include <app/fan.h>
66
#include <app/kbled.h>
77
#include <app/lid.h>
8-
#include <app/pwm.h>
98
#include <board/gpio.h>
109
#include <common/debug.h>
1110
#include <common/macro.h>

src/app/main/include/app/pwm.h

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

src/app/main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <app/pmc.h>
1313
#include <app/power.h>
1414
#include <app/ps2.h>
15-
#include <app/pwm.h>
1615
#include <app/smbus.h>
1716
#include <app/smfi.h>
1817
#include <arch/arch.h>
@@ -26,6 +25,7 @@
2625
#include <drivers/dgpu/dgpu.h>
2726
#include <drivers/usbpd/usbpd.h>
2827
#include <ec/ec.h>
28+
#include <ec/pwm.h>
2929

3030
#if CONFIG_PLATFORM_INTEL
3131
#include <app/peci.h>

src/ec/ite/Makefile.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ec-y += intc.c
88
ec-y += kbc.c
99
ec-y += pmc.c
1010
ec-y += ps2.c
11+
ec-y += pwm.c
1112
ec-y += signature.c
1213
ec-y += wuc.c
1314

src/ec/ite/include/ec/pwm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,6 @@ volatile uint8_t __xdata __at(0x1848) TSWCTLR;
6767
volatile uint8_t __xdata __at(0x185A) PWMLCCR;
6868
#endif
6969

70+
void pwm_init(void);
71+
7072
#endif // _EC_PWM_H
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// SPDX-License-Identifier: GPL-3.0-only
22

3-
#include <app/pwm.h>
43
#include <ec/pwm.h>
54
#include <common/macro.h>
65

0 commit comments

Comments
 (0)