diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-05-24 00:04:22 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-05-31 03:41:11 +0000 |
commit | 1740230ace3aeede3a7ee5cadd1e17744cda07b3 (patch) | |
tree | bf4e9f45d71fef44056ba901ac91fcbfb423a525 /src/mainboard/winent/mb6047/mainboard.c | |
parent | f054a4bf3d6ce459d15c9375e4ca2390d04ffb68 (diff) |
Remove all AMD K8 boards
Platforms with LATE_CBMEM_INIT were agreed to be
removed with 4.7 release late 2017.
Change-Id: I0ecbb40f8c7ebdf68217f50af5624905d9005c64
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/26671
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/mainboard/winent/mb6047/mainboard.c')
-rw-r--r-- | src/mainboard/winent/mb6047/mainboard.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/mainboard/winent/mb6047/mainboard.c b/src/mainboard/winent/mb6047/mainboard.c deleted file mode 100644 index 7d9516b4f5..0000000000 --- a/src/mainboard/winent/mb6047/mainboard.c +++ /dev/null @@ -1,55 +0,0 @@ -#include <arch/io.h> -#include <console/console.h> -#include <device/device.h> -#include <device/pnp_def.h> -#include <stdlib.h> -#include <superio/winbond/w83627thg/w83627thg.h> - -static void hwm_write(u16 base, u8 bank, u8 reg, u8 value) -{ - outb(0x4e, base + 0x05); - outb(bank, base + 0x06); - outb(reg, base + 0x05); - outb(value, base + 0x06); -} - -static void mb6047_hwm_init(void) -{ - struct device *dev; - struct resource *res; - size_t i; - - static const struct { u8 bnk; u8 idx; u8 dat; } hwmtab[] = { - { 0x00, 0x5d, 0x05 }, /* CPUTIN diode */ - { 0x04, 0x55, 0x32 }, /* CPUTIN offset */ - { 0x00, 0x4e, 0x00 }, /* reset bank */ - }; - - dev = dev_find_slot_pnp(0x2e, W83627THG_HWM); - if (dev == NULL) - return; - - res = find_resource(dev, PNP_IDX_IO0); - if (res == NULL) - return; - - printk(BIOS_INFO, "setting up hardware monitor at 0x%04x\n", (unsigned int)res->base); - - /* Init hardware monitor. */ - for (i = 0; i < ARRAY_SIZE(hwmtab); i++) - hwm_write(res->base, hwmtab[i].bnk, hwmtab[i].idx, hwmtab[i].dat); -} - -static void mb6047_mainboard_init(struct device *dev) -{ - mb6047_hwm_init(); -} - -static void mainboard_enable(struct device *dev) -{ - dev->ops->init = mb6047_mainboard_init; -} - -struct chip_operations mainboard_ops = { - .enable_dev = mainboard_enable, -}; |