Skip to contentSkip to conversation

mfd: SM501 core driver (#2)

PATCH In review Ben Dooks 3 participants 3 messages Feb 12, 2007 – Feb 13, 2007 Multifunction devices (MFD)

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 mfd: SM501 core driver (#2)

This is a new release of the SM501 MFD driver.

This driver handles the core function of the chip, including the clock, power control and allocation of resources for drivers. It also exports a series of platform devices for the function drivers to attach to.

This patch supports both platform and PCI bus attached devices.

drivers/mfd/Kconfig +14 -0
diff -urpN -X linux-2.6.19/Documentation/dontdiff linux-2.6.19/drivers/mfd/Kconfig linux-2.6.19-simtec3p4/drivers/mfd/Kconfig
@@ -2,6 +2,20 @@
 # Multifunction miscellaneous devices
 #
 
+menu "Multifunction device drivers"
+
+config MFD_SM501
+	tristate "Support for Silicon Motion SM501"
+	 ---help---
+	  This is the core driver for the Silicon motion SM501 multimedia 
+	  companion chip. This device is a multifunction device which may 
+	  provide numerous interfaces including USB host controller USB gadget,
+	  Asyncronous Serial ports, Audio functions and a dual display video 
+	  interface. The device may be connected by PCI or local bus with 
+	  varying functions enabled.
+
+endmenu
+
 menu "Multimedia Capabilities Port drivers"
 	depends on ARCH_SA1100
 
drivers/mfd/Makefile +2 -0
diff -urpN -X linux-2.6.19/Documentation/dontdiff linux-2.6.19/drivers/mfd/Makefile linux-2.6.19-simtec3p4/drivers/mfd/Makefile
@@ -2,6 +2,8 @@
 # Makefile for multifunction miscellaneous devices
 #
 
+obj-$(CONFIG_MFD_SM501)		+= sm501.o
+
 obj-$(CONFIG_MCP)		+= mcp-core.o
 obj-$(CONFIG_MCP_SA11X0)	+= mcp-sa11x0.o
 obj-$(CONFIG_MCP_UCB1200)	+= ucb1x00-core.o
drivers/mfd/sm501.c +1148 -0

1,148 lines not on this page · raw message

include/linux/sm501.h +169 -0

169 lines not on this page · raw message

include/linux/sm501-regs.h +357 -0

357 lines not on this page · raw message

#1 lore raw

Hi Ben,

include/linux/sm501.h line 78

Quoted 7 lines · Ben Dooks

This is a new release of the SM501 MFD driver.

include/linux/sm501.h +5 -0
+struct sm501_platdata_fbsub {
+	struct fb_mode		*def_mode;
+	unsigned long		 max_mem;
+	unsigned int		 flags;
+};

This may be a very dumb question, but where is 'struct fb_mode' declared? I grepped through 2.6.19 and 2.6.20 (vanilla) and the closest matches found are struct fb_modelist and struct fb_videomode.

Thanks,

Signature · 1 line
 ml.
#2 lore raw
Quoted 5 lines · Manuel Lauss

Hi Ben,

Quoted 1 line · Ben Dooks

This is a new release of the SM501 MFD driver.

Quoted 9 lines

include/linux/sm501.h line 78

Quoted 5 lines
include/linux/sm501.h +5 -0
+struct sm501_platdata_fbsub {
+	struct fb_mode		*def_mode;
+	unsigned long		 max_mem;
+	unsigned int		 flags;
+};

This may be a very dumb question, but where is 'struct fb_mode' declared? I grepped through 2.6.19 and 2.6.20 (vanilla) and the closest matches found are struct fb_modelist and struct fb_videomode.

It should have been fb_videomode. It is there for passing throug a default mode from a machine's platform data.

Signature · 3 lines
Ben ([email protected], http://www.fluff.org/)

  'a smiley only costs 4 bytes'