summaryrefslogtreecommitdiff
path: root/src/northbridge/via/vx900/early_host_bus_ctl.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-11-19 15:42:02 +0100
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-11-20 18:32:42 +0000
commit0fd398a5a151fec4b3e5f257322b21a84ca48e87 (patch)
tree55253ac38064705b8e9509eb06938ac7249e814e /src/northbridge/via/vx900/early_host_bus_ctl.c
parent4c38ed3c38ac5ef0136bf5d5c893d8b71d82b531 (diff)
downloadcoreboot-0fd398a5a151fec4b3e5f257322b21a84ca48e87.tar.xz
nb/via/vx900: Drop support
Relocatable ramstage, postcar stage and C_ENVIRONMENT_BOOTBLOCK are now mandatory features, which this platform lacks. Change-Id: Ie971893da06fd3b1ac41dda398b1caeec3ee32db Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36951 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/northbridge/via/vx900/early_host_bus_ctl.c')
-rw-r--r--src/northbridge/via/vx900/early_host_bus_ctl.c68
1 files changed, 0 insertions, 68 deletions
diff --git a/src/northbridge/via/vx900/early_host_bus_ctl.c b/src/northbridge/via/vx900/early_host_bus_ctl.c
deleted file mode 100644
index 1ef29449fd..0000000000
--- a/src/northbridge/via/vx900/early_host_bus_ctl.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com>
- *
- * 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, either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 <device/pci_ops.h>
-
-#include "early_vx900.h"
-
-static void vx900_cpu_bus_preram_setup(void)
-{
- /* Faster CPU to DRAM Cycle */
- pci_update_config8(HOST_BUS, 0x50, ~0x0f, 0x08);
- /* CPU Interface Control - Basic Options */
- pci_or_config8(HOST_BUS, 0x51, 0x6c);
- /*CPU Interface Control - Advanced Options */
- pci_write_config8(HOST_BUS, 0x52, 0xc7);
- /* Enable 8QW burst and 4QW request merging [4] and [2]
- * and special mode for read cycles bit[3] */
- pci_or_config8(HOST_BUS, 0x54, (1 << 4) | (1 << 2) | (1 << 3));
- /* High priority upstream requests on V4 bus */
- pci_write_config8(HOST_BUS, 0x56, 0x03);
- /* CPU to DRAM extra 1T access control */
- pci_or_config8(HOST_BUS, 0x59, (1 << 2));
- /* Queue reordering */
- pci_or_config8(HOST_BUS, 0x5f, (1 << 6));
- /* Only Write cycle of CPU->GFXCTL will flush the CPU->Memory FIFO */
- pci_or_config8(HOST_BUS, 0x98, 0x60);
- /* 1T delay for data on CPU bus */
- pci_write_config8(HOST_BUS, 0x9e, 0x0e);
- /* Arbitrate ownership of DRAM controller a few cycles earlier */
- pci_or_config8(HOST_BUS, 0x9f, (1 << 7));
- /* Write retire policy */
- pci_write_config8(HOST_BUS, 0x5d, 0xa2);
- /* Occupancy timer */
- pci_write_config8(HOST_BUS, 0x53, 0x44);
- /* Medium Threshold for Write Retire Policy - 6 requests */
- pci_or_config8(HOST_BUS, 0x56, 0x60);
- /* Bandwidth timer */
- pci_write_config8(HOST_BUS, 0x5e, 0x44);
-}
-
-/**
- * \brief Configure the CPU to northbridge bus (formerly, FSB)
- *
- * Configure the CPU <-> host interface. This interface is complex and needs to
- * be set up to operate properly. Configured parameters include bandwidth
- * arbitration. This function does not, however, change the physical interface
- * parameters, such as drive strength and signal timing. Instead, it assumes
- * that those parameters were already configured correctly from the ROMSTRAP.
- */
-void vx900_cpu_bus_interface_setup(void)
-{
- vx900_cpu_bus_preram_setup();
-
- dump_pci_device(HOST_BUS);
-}