mddi_toshiba.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* Copyright (c) 2009, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef MDDI_TOSHIBA_H
  14. #define MDDI_TOSHIBA_H
  15. #define TOSHIBA_VGA_PRIM 1
  16. #define TOSHIBA_VGA_SECD 2
  17. #define LCD_TOSHIBA_2P4_VGA 0
  18. #define LCD_TOSHIBA_2P4_WVGA 1
  19. #define LCD_TOSHIBA_2P4_WVGA_PT 2
  20. #define LCD_SHARP_2P4_VGA 3
  21. #define GPIO_BLOCK_BASE 0x150000
  22. #define SYSTEM_BLOCK2_BASE 0x170000
  23. #define GPIODIR (GPIO_BLOCK_BASE|0x04)
  24. #define GPIOSEL (SYSTEM_BLOCK2_BASE|0x00)
  25. #define GPIOPC (GPIO_BLOCK_BASE|0x28)
  26. #define GPIODATA (GPIO_BLOCK_BASE|0x00)
  27. #define write_client_reg(__X, __Y, __Z) {\
  28. mddi_queue_register_write(__X, __Y, TRUE, 0);\
  29. }
  30. #endif /* MDDI_TOSHIBA_H */