boards.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * arch/arm/mach-h720x/include/mach/boards.h
  3. *
  4. * Copyright (C) 2003 Thomas Gleixner <tglx@linutronix.de>
  5. * (C) 2003 Robert Schwebel <r.schwebel@pengutronix.de>
  6. *
  7. * This file contains the board specific defines for various devices
  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_ARCH_HARDWARE_INCMACH_H
  14. #error Do not include this file directly. Include asm/hardware.h instead !
  15. #endif
  16. /* Hynix H7202 developer board specific device defines */
  17. #ifdef CONFIG_ARCH_H7202
  18. /* FLASH */
  19. #define H720X_FLASH_VIRT 0xd0000000
  20. #define H720X_FLASH_PHYS 0x00000000
  21. #define H720X_FLASH_SIZE 0x02000000
  22. /* onboard LAN controller */
  23. # define ETH0_PHYS 0x08000000
  24. /* Touch screen defines */
  25. /* GPIO Port */
  26. #define PEN_GPIO GPIO_B_VIRT
  27. /* Bitmask for pen down interrupt */
  28. #define PEN_INT_BIT (1<<7)
  29. /* Bitmask for pen up interrupt */
  30. #define PEN_ENA_BIT (1<<6)
  31. /* pen up interrupt */
  32. #define IRQ_PEN IRQ_MUX_GPIOB(7)
  33. #endif
  34. /* Hynix H7201 developer board specific device defines */
  35. #if defined (CONFIG_ARCH_H7201)
  36. /* ROM DISK SPACE */
  37. #define ROM_DISK_BASE 0xc1800000
  38. #define ROM_DISK_START 0x41800000
  39. #define ROM_DISK_SIZE 0x00700000
  40. /* SRAM DISK SPACE */
  41. #define SRAM_DISK_BASE 0xf1000000
  42. #define SRAM_DISK_START 0x04000000
  43. #define SRAM_DISK_SIZE 0x00400000
  44. #endif