onenand-core.h 782 B

1234567891011121314151617181920212223242526272829303132
  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. #ifndef __ASM_ARCH_ONENAND_CORE_H
  10. #define __ASM_ARCH_ONENAND_CORE_H __FILE__
  11. /* These functions are only for use with the core support code, such as
  12. * the cpu specific initialisation code
  13. */
  14. /* re-define device name depending on support. */
  15. static inline void s3c_onenand_setname(char *name)
  16. {
  17. #ifdef CONFIG_S3C_DEV_ONENAND
  18. s3c_device_onenand.name = name;
  19. #endif
  20. }
  21. static inline void s3c64xx_onenand1_setname(char *name)
  22. {
  23. #ifdef CONFIG_S3C64XX_DEV_ONENAND1
  24. s3c64xx_device_onenand1.name = name;
  25. #endif
  26. }
  27. #endif /* __ASM_ARCH_ONENAND_CORE_H */