diff options
author | Simon Glass <sjg@chromium.org> | 2018-04-30 14:08:31 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-05-02 20:48:31 +0000 |
commit | 38d875f38789892d2e25b3bbba330733965025ac (patch) | |
tree | 46728d808aa92617533034189596c01aa87caa4a /src/drivers/generic/bayhub/chip.h | |
parent | 51be4ed34840853b3491eaca6dd0dd66bad7c7f4 (diff) | |
download | coreboot-38d875f38789892d2e25b3bbba330733965025ac.tar.xz |
drivers/generic/bayhub: Add driver for BayHub BH720
Add a driver which puts the device into power-saving mode.
BUG=b:73726008
BRANCH=none
TEST=boot and see this message:
BayHub BH720: Power-saving enabled 110103
From linux:
$ iotools pci_read32 2 0 0 0x90
0x00110103
Change-Id: Idbfb114f3782c9386ce9b487c3abdb0afbc4a0d9
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://review.coreboot.org/25966
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/drivers/generic/bayhub/chip.h')
-rw-r--r-- | src/drivers/generic/bayhub/chip.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/drivers/generic/bayhub/chip.h b/src/drivers/generic/bayhub/chip.h new file mode 100644 index 0000000000..7df78270b8 --- /dev/null +++ b/src/drivers/generic/bayhub/chip.h @@ -0,0 +1,24 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2018 Google LLC. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include <arch/acpi_device.h> + +/* + * Bayhub BG720 PCI to eMMC bridge + */ +struct drivers_generic_bayhub_config { + /* 1 to enable power-saving mode, 0 to disable */ + int power_saving; +}; |