xref: /OK3568_Linux_fs/kernel/arch/arm/mach-s3c/spi-core-s3c24xx.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright (C) 2012 Heiko Stuebner <heiko@sntech.de>
4*4882a593Smuzhiyun  */
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun #ifndef __PLAT_S3C_SPI_CORE_S3C24XX_H
7*4882a593Smuzhiyun #define __PLAT_S3C_SPI_CORE_S3C24XX_H
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun /* These functions are only for use with the core support code, such as
10*4882a593Smuzhiyun  * the cpu specific initialisation code
11*4882a593Smuzhiyun  */
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun /* re-define device name depending on support. */
s3c24xx_spi_setname(char * name)14*4882a593Smuzhiyun static inline void s3c24xx_spi_setname(char *name)
15*4882a593Smuzhiyun {
16*4882a593Smuzhiyun #ifdef CONFIG_S3C64XX_DEV_SPI0
17*4882a593Smuzhiyun 	s3c64xx_device_spi0.name = name;
18*4882a593Smuzhiyun #endif
19*4882a593Smuzhiyun #ifdef CONFIG_S3C64XX_DEV_SPI1
20*4882a593Smuzhiyun 	s3c64xx_device_spi1.name = name;
21*4882a593Smuzhiyun #endif
22*4882a593Smuzhiyun #ifdef CONFIG_S3C64XX_DEV_SPI2
23*4882a593Smuzhiyun 	s3c64xx_device_spi2.name = name;
24*4882a593Smuzhiyun #endif
25*4882a593Smuzhiyun }
26*4882a593Smuzhiyun 
27*4882a593Smuzhiyun #endif /* __PLAT_S3C_SPI_CORE_S3C24XX_H */
28