Commit graph android_kernel_sony_sdm845/include/linux/mmc/sdio_func.h
Message SHA1
sdio: store vendor strings
Store vendor strings found in CISTPL_VERS_1 so that function drivers
can access them.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

Pierre Ossman   commited 2007-09-23 21:28:01 +02:00
759bdc7af4
sdio: add sdio_f0_readb() and sdio_f0_writeb()
Add sdio_f0_readb() and sdio_f0_writeb() functions to reading and
writing function 0 registers.  Writes outside the vendor specific CCCR
registers (0xF0 - 0xFF) are not permitted.

Signed-off-by: David Vrabel <david.vrabel@csr.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

David Vrabel   authored and   Pierre Ossman   commited 2007-09-23 21:24:27 +02:00
7806cdb40f
sdio: set the functions' block size
Before a driver is probed, set the function's block size to the default so the
driver is sure the block size is something sensible and it needn't explicitly
set it.

The default block size is the largest that's supported by both the card and
the host, with a maximum of 512 to ensure aribitrarily sized transfer use the
optimal (least) number of commands.

See http://lkml.org/lkml/2007/8/7/150 for reasons for the block size choice.

Signed-off-by: David Vrabel <david.vrabel@csr.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

David Vrabel   authored and   Pierre Ossman   commited 2007-09-23 21:19:26 +02:00
9a08f82b3c
sdio: support IO_RW_EXTENDED
Support the multi-byte transfer operation, including handlers for
common operations like writel()/readl().

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

Pierre Ossman   commited 2007-09-23 21:09:34 +02:00
112c9db91e
sdio: core support for SDIO function interrupt
Signed-off-by: Nicolas Pitre <npitre@mvista.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

Nicolas Pitre   authored and   Pierre Ossman   commited 2007-09-23 21:01:33 +02:00
d1496c39e5
sdio: add device id table and matching
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

Pierre Ossman   commited 2007-09-23 20:51:27 +02:00
3b38bea0d9
sdio: split up common and function CIS parsing
Add a more clean separation between global, common CIS information
and the function specific one as we need the common information in
places where no specific function is specified.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

Pierre Ossman   commited 2007-09-23 20:44:22 +02:00
1a632f8cdc
sdio: link unknown CIS tuples to the sdio_func structure
This way those tuples that the core cares about are consumed by the core
code, and tuples that only function drivers might make sense of are
available to drivers.

Signed-off-by: Nicolas Pitre <npitre@mvista.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

Nicolas Pitre   authored and   Pierre Ossman   commited 2007-09-23 20:31:43 +02:00
b1538bcf75
sdio: basic parsing of FBR
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

Pierre Ossman   commited 2007-09-23 20:13:52 +02:00
0597007f1b
mmc: enable/disable functions for SDIO
Like many other buses, the devices (functions) on the SDIO bus
must be enabled before they can be used. Add functions that allow
drivers to do so.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

Pierre Ossman   commited 2007-09-23 20:10:56 +02:00
fa64efa1f2
mmc: add basic SDIO I/O operations
Add command wrappers that simplify register access from SDIO
function drivers.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

Pierre Ossman   commited 2007-09-23 19:57:03 +02:00
46f555f273
mmc: add SDIO driver handling
Add basic driver handling to the SDIO device model.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

Pierre Ossman   commited 2007-09-23 19:55:26 +02:00
f76c85154d
mmc: basic SDIO device model
Add the sdio bus type and basic device handling.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

Pierre Ossman   commited 2007-09-23 19:45:31 +02:00
e29a7d73f4