From 38d875f38789892d2e25b3bbba330733965025ac Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 30 Apr 2018 14:08:31 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/25966 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/drivers/generic/bayhub/chip.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/drivers/generic/bayhub/chip.h (limited to 'src/drivers/generic/bayhub/chip.h') 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 + +/* + * Bayhub BG720 PCI to eMMC bridge + */ +struct drivers_generic_bayhub_config { + /* 1 to enable power-saving mode, 0 to disable */ + int power_saving; +}; -- cgit v1.2.3