File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ board-common-y += acpi.c
44board-common-y += battery.c
55board-common-y += config.c
66board-common-$(CONFIG_HAVE_DGPU) += dgpu.c
7- board-common-y += ecpm.c
87board-common-$(CONFIG_BUS_ESPI) += espi.c
98board-common-y += fan.c
109board-common-y += kbc.c
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 66#include <board/battery.h>
77#include <board/board.h>
88#include <board/dgpu.h>
9- #include <board/ecpm.h>
109#include <board/fan.h>
1110#include <board/gpio.h>
1211#include <board/kbc.h>
@@ -60,7 +59,6 @@ void init(void) {
6059#if CONFIG_HAVE_DGPU
6160 dgpu_init ();
6261#endif
63- ecpm_init ();
6462 kbc_init ();
6563 kbled_init ();
6664#ifdef PARALLEL_DEBUG
Original file line number Diff line number Diff line change 22
33#include <ec/ec.h>
44#include <arch/arch.h>
5+ #include <ec/ecpm.h>
56#include <ec/gctrl.h>
67#include <common/debug.h>
78#include <common/macro.h>
@@ -25,6 +26,15 @@ static void gctrl_init(void) {
2526 BADRSEL = 0 ;
2627}
2728
29+ static void ecpm_init (void ) {
30+ // Clock gate EGPC, CIR, and SWUC
31+ CGCTRL2 |= BIT (6 ) | BIT (5 ) | BIT (4 );
32+ // Clock gate UART, SSPI, and DBGR
33+ CGCTRL3 |= BIT (2 ) | BIT (1 ) | BIT (0 );
34+ // Clock gate CEC
35+ CGCTRL4 |= BIT (0 );
36+ }
37+
2838void ec_init (void ) {
2939 arch_init ();
3040
@@ -38,4 +48,5 @@ void ec_init(void) {
3848#endif
3949
4050 gctrl_init ();
51+ ecpm_init ();
4152}
You can’t perform that action at this time.
0 commit comments