From 6abb33c7ba5f18ec3e3578cb1f804cbe60e49c49 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Wed, 27 Aug 2014 23:42:45 +0200 Subject: smbios: reorganise OEM strings handling. OEM strings should not be handled by mobo code but by common code with strings collected from all devices. Change-Id: Ibde61a1ca79845670bc0df87dc6c67fa868d48a9 Signed-off-by: Vladimir Serbinenko Reviewed-on: http://review.coreboot.org/6788 Reviewed-by: Edward O'Callaghan Tested-by: build bot (Jenkins) --- src/mainboard/lenovo/x200/mainboard.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/mainboard/lenovo/x200') diff --git a/src/mainboard/lenovo/x200/mainboard.c b/src/mainboard/lenovo/x200/mainboard.c index 9fe55db308..df314630ff 100644 --- a/src/mainboard/lenovo/x200/mainboard.c +++ b/src/mainboard/lenovo/x200/mainboard.c @@ -125,20 +125,6 @@ const char *smbios_mainboard_bios_version(void) return "CBET4000 " COREBOOT_VERSION; } -static int mainboard_smbios_data(device_t dev, int *handle, unsigned long *current) -{ - int len; - char tpec[] = "IBM ThinkPad Embedded Controller -[ ]-"; - const char *oem_strings[] = { - tpec, - }; - - h8_build_id_and_function_spec_version(tpec + 35, 17); - len = smbios_write_type11(current, (*handle)++, oem_strings, ARRAY_SIZE(oem_strings)); - - return len; -} - static void mainboard_init(device_t dev) { /* This sneaked in here, because X200 SuperIO chip isn't really @@ -155,7 +141,6 @@ static void mainboard_enable(device_t dev) mainboard_interrupt_handlers(0x15, &int15_handler); #endif - dev->ops->get_smbios_data = mainboard_smbios_data; dev->ops->init = mainboard_init; } -- cgit v1.2.3