#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/string.h>
#include <asm/mpc5xxx.h>
#include <linux/spi.h>
#include "spi-algo-mpc5xxx.h"
Include dependency graph for spi-iti5200.c:

Defines | |
| #define | MPC5xxx_SPI_ENABLE 1 /* Disable */ |
| #define | GPIO_PSC3_4 0x1000 |
| #define | GPIO_SINT0 1 |
| #define | GPIO_SINT1 2 |
Functions | |
| int | set_spi_iti5200_cs (struct spi_adapter *, int id, int val) |
| int __init | spi_iti5200_init (void) |
| initializes chip select lines for iti5200 board and then registers to spi_mpc5xxxx_add_bus to mpc5200psc spi driver ( spi-algo-mpc5200psc) | |
| void __exit | spi_iti5200_exit (void) |
| unregisters adapter with spi_mpc5xxxx_del_bus to mpc5200psc spi driver ( spi-algo-mpc5200psc) | |
| module_init (spi_iti5200_init) | |
| module_exit (spi_iti5200_exit) | |
| MODULE_LICENSE ("GPL") | |
| MODULE_AUTHOR ("Kate Alhola kate(at) katix.org") | |
| MODULE_DESCRIPTION ("iti5200 SPI adapter") | |
Variables | |
| mpc5xxx_gpio * | itipower5200_gpio = (struct mpc5xxx_gpio *)MPC5xxx_GPIO |
| mpc5xxx_gpw * | itipower5200_gpw = (struct mpc5xxx_gpw *)MPC5xxx_GPW |
| spi_algo_mpc5xxx_data | iti5200_spi_data_1 |
| spi_adapter | iti5200_spi_ops_1 |
|
||||||||||||||||
|
set_spi_iti5200_cs set adapter spi cs line
|
|
|
unregisters adapter with spi_mpc5xxxx_del_bus to mpc5200psc spi driver ( spi-algo-mpc5200psc) spi_iti5200_exit plugh
|
|
|
initializes chip select lines for iti5200 board and then registers to spi_mpc5xxxx_add_bus to mpc5200psc spi driver ( spi-algo-mpc5200psc) spi_iti5200_init
|
Here is the call graph for this function:

|
|
Initial value: {
(struct mpc5xxx_psc *)MPC5xxx_PSC3,
}
|
|
|
Initial value: {
name: "iti5200 SPI interface",
algo: NULL,
algo_data: &iti5200_spi_data_1,
set_spi_adap_cs: &set_spi_iti5200_cs,
cs: NULL,
}
|
1.3.6