linux/Documentation/driver-model
Magnus Damm 13977091a9 Driver Core: early platform driver
V3 of the early platform driver implementation.

Platform drivers are great for embedded platforms because we can separate
driver configuration from the actual driver.  So base addresses,
interrupts and other configuration can be kept with the processor or board
code, and the platform driver can be reused by many different platforms.

For early devices we have nothing today.  For instance, to configure early
timers and early serial ports we cannot use platform devices.  This
because the setup order during boot.  Timers are needed before the
platform driver core code is available.  The same goes for early printk
support.  Early in this case means before initcalls.

These early drivers today have their configuration either hard coded or
they receive it using some special configuration method.  This is working
quite well, but if we want to support both regular kernel modules and
early devices then we need to have two ways of configuring the same
driver.  A single way would be better.

The early platform driver patch is basically a set of functions that allow
drivers to register themselves and architecture code to locate them and
probe.  Registration happens through early_param().  The time for the
probe is decided by the architecture code.

See Documentation/driver-model/platform.txt for more details.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: David Brownell <david-b@pacbell.net>
Cc: Tejun Heo <htejun@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-16 16:17:10 -07:00
..
binding.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bus.txt [PATCH] pm_message_t: more fixes in common and i386 2005-04-16 15:25:24 -07:00
class.txt Fix typos in Documentation/: 'H'-'M' 2006-10-03 22:50:39 +02:00
device.txt PATCH [1/2] Documentation/driver-model/device.txt: fix struct device_attribute 2009-02-22 09:27:15 -08:00
devres.txt typo fixes 2007-10-20 01:34:40 +02:00
driver.txt Fix typos in Documentation/: 'Q'-'R' 2006-10-03 22:54:15 +02:00
interface.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
overview.txt Documentation: remove duplicated words 2006-10-03 22:57:56 +02:00
platform.txt Driver Core: early platform driver 2009-04-16 16:17:10 -07:00
porting.txt Fix typos in /Documentation : Misc 2006-11-30 05:21:10 +01:00