Refactor to minimize differences between galp3-c and lemp9 code

This commit is contained in:
Jeremy Soller
2020-01-15 15:54:43 -07:00
parent e2a38c7a88
commit efa9fb7fb4
27 changed files with 493 additions and 612 deletions

View File

@@ -1,8 +1,8 @@
#include <board/acpi.h>
#include <board/gpio.h>
#include <board/pmc.h>
#include <board/scratch.h>
#include <common/debug.h>
#include <ec/gpio.h>
void pmc_init(void) {
*(PMC_1.control) = 0x41;
@@ -19,7 +19,6 @@ enum PmcState {
};
static uint8_t pmc_sci_queue = 0;
static struct Gpio __code SCI_N = GPIO(D, 4);
bool pmc_sci(struct Pmc * pmc, uint8_t sci) {
bool update = pmc_sci_queue == 0;