cs89712.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * arch/arm/include/asm/hardware/cs89712.h
  3. *
  4. * This file contains the hardware definitions of the CS89712
  5. * additional internal registers.
  6. *
  7. * Copyright (C) 2001 Thomas Gleixner autronix automation <gleixner@autronix.de>
  8. *
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23. */
  24. #ifndef __ASM_HARDWARE_CS89712_H
  25. #define __ASM_HARDWARE_CS89712_H
  26. /*
  27. * CS89712 additional registers
  28. */
  29. #define PCDR 0x0002 /* Port C Data register ---------------------------- */
  30. #define PCDDR 0x0042 /* Port C Data Direction register ------------------ */
  31. #define SDCONF 0x2300 /* SDRAM Configuration register ---------------------*/
  32. #define SDRFPR 0x2340 /* SDRAM Refresh period register --------------------*/
  33. #define SDCONF_ACTIVE (1 << 10)
  34. #define SDCONF_CLKCTL (1 << 9)
  35. #define SDCONF_WIDTH_4 (0 << 7)
  36. #define SDCONF_WIDTH_8 (1 << 7)
  37. #define SDCONF_WIDTH_16 (2 << 7)
  38. #define SDCONF_WIDTH_32 (3 << 7)
  39. #define SDCONF_SIZE_16 (0 << 5)
  40. #define SDCONF_SIZE_64 (1 << 5)
  41. #define SDCONF_SIZE_128 (2 << 5)
  42. #define SDCONF_SIZE_256 (3 << 5)
  43. #define SDCONF_CASLAT_2 (2)
  44. #define SDCONF_CASLAT_3 (3)
  45. #endif /* __ASM_HARDWARE_CS89712_H */