regs-clkctrl.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * stmp37xx: CLKCTRL register definitions
  3. *
  4. * Copyright (c) 2008 Freescale Semiconductor
  5. * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. */
  21. #ifndef _MACH_REGS_CLKCTRL
  22. #define _MACH_REGS_CLKCTRL
  23. #define REGS_CLKCTRL_BASE (STMP3XXX_REGS_BASE + 0x40000)
  24. #define HW_CLKCTRL_PLLCTRL0 0x0
  25. #define BM_CLKCTRL_PLLCTRL0_EN_USB_CLKS 0x00040000
  26. #define HW_CLKCTRL_CPU 0x20
  27. #define BM_CLKCTRL_CPU_DIV_CPU 0x0000003F
  28. #define BP_CLKCTRL_CPU_DIV_CPU 0
  29. #define HW_CLKCTRL_HBUS 0x30
  30. #define BM_CLKCTRL_HBUS_DIV 0x0000001F
  31. #define BP_CLKCTRL_HBUS_DIV 0
  32. #define HW_CLKCTRL_XBUS 0x40
  33. #define HW_CLKCTRL_XTAL 0x50
  34. #define HW_CLKCTRL_PIX 0x60
  35. #define BM_CLKCTRL_PIX_DIV 0x00007FFF
  36. #define BP_CLKCTRL_PIX_DIV 0
  37. #define BM_CLKCTRL_PIX_CLKGATE 0x80000000
  38. #define HW_CLKCTRL_SSP 0x70
  39. #define HW_CLKCTRL_GPMI 0x80
  40. #define HW_CLKCTRL_SPDIF 0x90
  41. #define HW_CLKCTRL_EMI 0xA0
  42. #define HW_CLKCTRL_IR 0xB0
  43. #define HW_CLKCTRL_SAIF 0xC0
  44. #define HW_CLKCTRL_FRAC 0xD0
  45. #define BM_CLKCTRL_FRAC_EMIFRAC 0x00003F00
  46. #define BP_CLKCTRL_FRAC_EMIFRAC 8
  47. #define BM_CLKCTRL_FRAC_PIXFRAC 0x003F0000
  48. #define BP_CLKCTRL_FRAC_PIXFRAC 16
  49. #define BM_CLKCTRL_FRAC_CLKGATEPIX 0x00800000
  50. #define HW_CLKCTRL_CLKSEQ 0xE0
  51. #define BM_CLKCTRL_CLKSEQ_BYPASS_PIX 0x00000002
  52. #define HW_CLKCTRL_RESET 0xF0
  53. #define BM_CLKCTRL_RESET_DIG 0x00000001
  54. #define BP_CLKCTRL_RESET_DIG 0
  55. #endif