fimc-core.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * arch/arm/plat-samsung/include/plat/fimc-core.h
  3. *
  4. * Copyright 2010 Samsung Electronics Co., Ltd.
  5. * Sylwester Nawrocki <s.nawrocki@samsung.com>
  6. *
  7. * Samsung camera interface driver core functions
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #ifndef __ASM_PLAT_FIMC_CORE_H
  14. #define __ASM_PLAT_FIMC_CORE_H __FILE__
  15. /*
  16. * These functions are only for use with the core support code, such as
  17. * the CPU-specific initialization code.
  18. */
  19. /* Re-define device name to differentiate the subsystem in various SoCs. */
  20. static inline void s3c_fimc_setname(int id, char *name)
  21. {
  22. switch (id) {
  23. #ifdef CONFIG_S5P_DEV_FIMC0
  24. case 0:
  25. s5p_device_fimc0.name = name;
  26. break;
  27. #endif
  28. #ifdef CONFIG_S5P_DEV_FIMC1
  29. case 1:
  30. s5p_device_fimc1.name = name;
  31. break;
  32. #endif
  33. #ifdef CONFIG_S5P_DEV_FIMC2
  34. case 2:
  35. s5p_device_fimc2.name = name;
  36. break;
  37. #endif
  38. #ifdef CONFIG_S5P_DEV_FIMC3
  39. case 3:
  40. s5p_device_fimc3.name = name;
  41. break;
  42. #endif
  43. default:
  44. break;
  45. }
  46. }
  47. #endif /* __ASM_PLAT_FIMC_CORE_H */