mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 10:56:40 +00:00
e1c1575f83
On the majority of 85xx & 86xx we have a register that's ability to assert HRESET_REQ to reset the board. We refactored that code so it can be shared between both platforms into fsl_soc.c and removed all the duplication in each platform directory. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
21 lines
455 B
C
21 lines
455 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));
|
|
|
|
extern void fsl_rstcr_restart(char *cmd);
|
|
#endif
|
|
#endif
|