Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  *  Copyright (c) 2010 Samsung Electronics
0004  *  Kyungmin Park <kyungmin.park@samsung.com>
0005  *  Marek Szyprowski <m.szyprowski@samsung.com>
0006  *
0007  * Samsung OneNAD Controller core functions
0008  */
0009 
0010 #ifndef __ASM_ARCH_ONENAND_CORE_S3C64XX_H
0011 #define __ASM_ARCH_ONENAND_CORE_S3C64XX_H __FILE__
0012 
0013 /* These functions are only for use with the core support code, such as
0014  * the cpu specific initialisation code
0015  */
0016 
0017 /* re-define device name depending on support. */
0018 static inline void s3c_onenand_setname(char *name)
0019 {
0020 #ifdef CONFIG_S3C_DEV_ONENAND
0021     s3c_device_onenand.name = name;
0022 #endif
0023 }
0024 
0025 static inline void s3c64xx_onenand1_setname(char *name)
0026 {
0027 #ifdef CONFIG_S3C64XX_DEV_ONENAND1
0028     s3c64xx_device_onenand1.name = name;
0029 #endif
0030 }
0031 
0032 #endif /* __ASM_ARCH_ONENAND_CORE_S3C64XX_H */