diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-05-14 11:19:55 +0200 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2020-05-17 15:34:17 +0000 |
commit | c1c6c51ec00906038a7add6de54ca59561842ba6 (patch) | |
tree | a3e70d39230cec0c14a9b1b3e7a5ac3774d4f422 /src/drivers/xgi/z9s | |
parent | 81f9ae9ff1122b25340b851c54a477c59d955048 (diff) |
drivers/xgi: Remove dead code
This was used by the now-gone Asus KFSN4-DRE mainboard. Drop it.
Change-Id: Id00c883ed0f80e7af96fdf3f6e2985dd5b227831
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41402
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/drivers/xgi/z9s')
-rw-r--r-- | src/drivers/xgi/z9s/Kconfig | 3 | ||||
-rw-r--r-- | src/drivers/xgi/z9s/Makefile.inc | 1 | ||||
-rw-r--r-- | src/drivers/xgi/z9s/z9s.c | 48 |
3 files changed, 0 insertions, 52 deletions
diff --git a/src/drivers/xgi/z9s/Kconfig b/src/drivers/xgi/z9s/Kconfig deleted file mode 100644 index b8000c1a8c..0000000000 --- a/src/drivers/xgi/z9s/Kconfig +++ /dev/null @@ -1,3 +0,0 @@ -config DRIVERS_XGI_Z9S - bool - select DRIVERS_XGI_Z79_COMMON diff --git a/src/drivers/xgi/z9s/Makefile.inc b/src/drivers/xgi/z9s/Makefile.inc deleted file mode 100644 index 995543325f..0000000000 --- a/src/drivers/xgi/z9s/Makefile.inc +++ /dev/null @@ -1 +0,0 @@ -ramstage-$(CONFIG_DRIVERS_XGI_Z9S) += z9s.c diff --git a/src/drivers/xgi/z9s/z9s.c b/src/drivers/xgi/z9s/z9s.c deleted file mode 100644 index a3b757534c..0000000000 --- a/src/drivers/xgi/z9s/z9s.c +++ /dev/null @@ -1,48 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#include <stdlib.h> -#include <console/console.h> -#include <device/device.h> -#include <device/pci.h> -#include <device/pci_ids.h> -#include <device/pci_ops.h> - -#include "../common/xgi_coreboot.h" -#include "../common/XGIfb.h" - -static void xgi_z9s_set_resources(struct device *dev) -{ - /* Reserve VGA regions */ - mmio_resource(dev, 3, 0xa0000 >> 10, 0x1ffff >> 10); - - /* Run standard resource set routine */ - pci_dev_set_resources(dev); -} - -static void xgi_z9s_init(struct device *dev) -{ - u8 ret; - struct xgifb_video_info *xgifb_info; - - if (CONFIG(MAINBOARD_DO_NATIVE_VGA_INIT)) { - printk(BIOS_INFO, "XGI Z9s: initializing video device\n"); - xgifb_info = malloc(sizeof(*xgifb_info)); - ret = xgifb_probe(dev, xgifb_info); - if (!ret) - xgifb_modeset(dev, xgifb_info); - free(xgifb_info); - } -} - -static struct device_operations xgi_z9s_ops = { - .read_resources = pci_dev_read_resources, - .set_resources = xgi_z9s_set_resources, - .enable_resources = pci_dev_enable_resources, - .init = xgi_z9s_init, -}; - -static const struct pci_driver xgi_z9s_driver __pci_driver = { - .ops = &xgi_z9s_ops, - .vendor = PCI_VENDOR_ID_XGI, - .device = PCI_DEVICE_ID_XGI_20, -}; |