Commit 4590d98f authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Rafael J. Wysocki
Browse files

sfi: Remove framework for deprecated firmware



SFI-based platforms are gone. So does this framework.

This removes mention of SFI through the drivers and other code as well.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 73f70d6c
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
What:		/sys/firmware/sfi/tables/
Date:		May 2010
Contact:	Len Brown <lenb@kernel.org>
Description:
		SFI defines a number of small static memory tables
		so the kernel can get platform information from firmware.

		The tables are defined in the latest SFI specification:
		http://simplefirmware.org/documentation

		While the tables are used by the kernel, user-space
		can observe them this way::

		  # cd /sys/firmware/sfi/tables
		  # cat $TABLENAME > $TABLENAME.bin
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ Description:
		is connected. example: "/dev/ttyS0".

		The device name flows down to architecture specific board
		initialization file from the SFI/ATAGS bootloader
		initialization file from the ATAGS bootloader
		firmware. The name exposed is read from the user-space
		dameon and opens the device when install is requested.

+0 −7
Original line number Diff line number Diff line
@@ -16234,13 +16234,6 @@ S: Maintained
F:	Documentation/fb/sm712fb.rst
F:	drivers/video/fbdev/sm712*
SIMPLE FIRMWARE INTERFACE (SFI)
S:	Obsolete
W:	http://simplefirmware.org/
F:	arch/x86/platform/sfi/
F:	drivers/sfi/
F:	include/linux/sfi*.h
SIMPLEFB FB DRIVER
M:	Hans de Goede <hdegoede@redhat.com>
L:	linux-fbdev@vger.kernel.org
+2 −5
Original line number Diff line number Diff line
@@ -444,7 +444,7 @@ config X86_X2APIC
	  If you don't know what to do here, say N.

config X86_MPPARSE
	bool "Enable MPS table" if ACPI || SFI
	bool "Enable MPS table" if ACPI
	default y
	depends on X86_LOCAL_APIC
	help
@@ -603,7 +603,6 @@ config X86_INTEL_MID
	depends on PCI
	depends on X86_64 || (PCI_GOANY && X86_32)
	depends on X86_IO_APIC
	select SFI
	select I2C
	select DW_APB_TIMER
	select APB_TIMER
@@ -2457,8 +2456,6 @@ source "kernel/power/Kconfig"

source "drivers/acpi/Kconfig"

source "drivers/sfi/Kconfig"

config X86_APM_BOOT
	def_bool y
	depends on APM
@@ -2645,7 +2642,7 @@ config PCI_DIRECT
config PCI_MMCONFIG
	bool "Support mmconfig PCI config space access" if X86_64
	default y
	depends on PCI && (ACPI || SFI || JAILHOUSE_GUEST)
	depends on PCI && (ACPI || JAILHOUSE_GUEST)
	depends on X86_64 || (PCI_GOANY || PCI_GOMMCONFIG)

config PCI_OLPC
+0 −37
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@
#ifndef _ASM_X86_INTEL_MID_H
#define _ASM_X86_INTEL_MID_H

#include <linux/sfi.h>
#include <linux/pci.h>
#include <linux/platform_device.h>

@@ -22,39 +21,6 @@ extern void intel_mid_pwr_power_off(void);

extern int intel_mid_pwr_get_lss_id(struct pci_dev *pdev);

extern int get_gpio_by_name(const char *name);

/*
 * Here defines the array of devices platform data that IAFW would export
 * through SFI "DEVS" table, we use name and type to match the device and
 * its platform data.
 */
struct devs_id {
	char name[SFI_NAME_LEN + 1];
	u8 type;
	u8 delay;
	void *(*get_platform_data)(void *info);
};

#define sfi_device(i)								\
	static const struct devs_id *const __intel_mid_sfi_##i##_dev __used	\
	__section(".x86_intel_mid_dev.init") = &i

/**
* struct mid_sd_board_info - template for SD device creation
* @name:		identifies the driver
* @bus_num:		board-specific identifier for a given SD controller
* @max_clk:		the maximum frequency device supports
* @platform_data:	the particular data stored there is driver-specific
*/
struct mid_sd_board_info {
	char		name[SFI_NAME_LEN];
	int		bus_num;
	unsigned short	addr;
	u32		max_clk;
	void		*platform_data;
};

/*
 * Medfield is the follow-up of Moorestown, it combines two chip solution into
 * one. Other than that it also added always-on and constant tsc and lapic
@@ -99,7 +65,4 @@ static inline void intel_scu_devices_destroy(void) { }
/* FSB 83MHz */
#define BSEL_SOC_FUSE_111		0x7

/* The offset for the mapping of global gpio pin to irq */
#define INTEL_MID_IRQ_OFFSET		0x100

#endif /* _ASM_X86_INTEL_MID_H */
Loading