tc6393xb.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Toshiba TC6393XB SoC support
  3. *
  4. * Copyright(c) 2005-2006 Chris Humbert
  5. * Copyright(c) 2005 Dirk Opfer
  6. * Copyright(c) 2005 Ian Molton <spyro@f2s.com>
  7. * Copyright(c) 2007 Dmitry Baryshkov
  8. *
  9. * Based on code written by Sharp/Lineo for 2.4 kernels
  10. * Based on locomo.c
  11. *
  12. * This program is free software; you can redistribute it and/or modify
  13. * it under the terms of the GNU General Public License version 2 as
  14. * published by the Free Software Foundation.
  15. */
  16. #ifndef TC6393XB_H
  17. #define TC6393XB_H
  18. /* Also one should provide the CK3P6MI clock */
  19. struct tc6393xb_platform_data {
  20. u16 scr_pll2cr; /* PLL2 Control */
  21. u16 scr_gper; /* GP Enable */
  22. u32 scr_gpo_doecr; /* GPO Data OE Control */
  23. u32 scr_gpo_dsr; /* GPO Data Set */
  24. int (*enable)(struct platform_device *dev);
  25. int (*disable)(struct platform_device *dev);
  26. int (*suspend)(struct platform_device *dev);
  27. int (*resume)(struct platform_device *dev);
  28. int irq_base; /* a base for cascaded irq */
  29. int gpio_base;
  30. struct tmio_nand_data *nand_data;
  31. };
  32. /*
  33. * Relative to irq_base
  34. */
  35. #define IRQ_TC6393_NAND 0
  36. #define IRQ_TC6393_MMC 1
  37. #define IRQ_TC6393_OHCI 2
  38. #define IRQ_TC6393_SERIAL 3
  39. #define IRQ_TC6393_FB 4
  40. #define TC6393XB_NR_IRQS 8
  41. #endif