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