camera-pxa.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. camera.h - PXA camera driver header file
  3. Copyright (C) 2003, Intel Corporation
  4. Copyright (C) 2008, Guennadi Liakhovetski <kernel@pengutronix.de>
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. */
  17. #ifndef __ASM_ARCH_CAMERA_H_
  18. #define __ASM_ARCH_CAMERA_H_
  19. #define PXA_CAMERA_MASTER 1
  20. #define PXA_CAMERA_DATAWIDTH_4 2
  21. #define PXA_CAMERA_DATAWIDTH_5 4
  22. #define PXA_CAMERA_DATAWIDTH_8 8
  23. #define PXA_CAMERA_DATAWIDTH_9 0x10
  24. #define PXA_CAMERA_DATAWIDTH_10 0x20
  25. #define PXA_CAMERA_PCLK_EN 0x40
  26. #define PXA_CAMERA_MCLK_EN 0x80
  27. #define PXA_CAMERA_PCP 0x100
  28. #define PXA_CAMERA_HSP 0x200
  29. #define PXA_CAMERA_VSP 0x400
  30. struct pxacamera_platform_data {
  31. unsigned long flags;
  32. unsigned long mclk_10khz;
  33. };
  34. extern void pxa_set_camera_info(struct pxacamera_platform_data *);
  35. #endif /* __ASM_ARCH_CAMERA_H_ */