1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2010 Samsung Electronics
4 * Kyungmin Park <kyungmin.park@samsung.com>
5 * Marek Szyprowski <m.szyprowski@samsung.com>
7 * Samsung OneNAD Controller core functions
10 #ifndef __ASM_ARCH_ONENAND_CORE_S3C64XX_H
11 #define __ASM_ARCH_ONENAND_CORE_S3C64XX_H __FILE__
13 /* These functions are only for use with the core support code, such as
14 * the cpu specific initialisation code
17 /* re-define device name depending on support. */
18 static inline void s3c_onenand_setname(char *name
)
20 #ifdef CONFIG_S3C_DEV_ONENAND
21 s3c_device_onenand
.name
= name
;
25 static inline void s3c64xx_onenand1_setname(char *name
)
27 #ifdef CONFIG_S3C64XX_DEV_ONENAND1
28 s3c64xx_device_onenand1
.name
= name
;
32 #endif /* __ASM_ARCH_ONENAND_CORE_S3C64XX_H */