mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-29 21:05:13 +00:00
26f6cb9993
Add helper function to setup SPI bus/device information Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
20 lines
413 B
C
20 lines
413 B
C
#ifndef __PPC_FSL_SOC_H
|
|
#define __PPC_FSL_SOC_H
|
|
#ifdef __KERNEL__
|
|
|
|
#include <asm/mmu.h>
|
|
|
|
extern phys_addr_t get_immrbase(void);
|
|
extern u32 get_brgfreq(void);
|
|
extern u32 get_baudrate(void);
|
|
|
|
struct spi_board_info;
|
|
|
|
extern int fsl_spi_init(struct spi_board_info *board_infos,
|
|
unsigned int num_board_infos,
|
|
void (*activate_cs)(u8 cs, u8 polarity),
|
|
void (*deactivate_cs)(u8 cs, u8 polarity));
|
|
|
|
#endif
|
|
#endif
|