tv-core.h 1022 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * arch/arm/plat-samsung/include/plat/tv.h
  3. *
  4. * Copyright 2011 Samsung Electronics Co., Ltd.
  5. * Tomasz Stanislawski <t.stanislaws@samsung.com>
  6. *
  7. * Samsung TV 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 __SAMSUNG_PLAT_TV_H
  14. #define __SAMSUNG_PLAT_TV_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 s5p_hdmi_setname(char *name)
  21. {
  22. #ifdef CONFIG_S5P_DEV_TV
  23. s5p_device_hdmi.name = name;
  24. #endif
  25. }
  26. static inline void s5p_mixer_setname(char *name)
  27. {
  28. #ifdef CONFIG_S5P_DEV_TV
  29. s5p_device_mixer.name = name;
  30. #endif
  31. }
  32. static inline void s5p_sdo_setname(char *name)
  33. {
  34. #ifdef CONFIG_S5P_DEV_TV
  35. s5p_device_sdo.name = name;
  36. #endif
  37. }
  38. #endif /* __SAMSUNG_PLAT_TV_H */