clocks_am33xx.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * clocks_am33xx.h
  3. *
  4. * AM33xx clock define
  5. *
  6. * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR /PURPOSE. See the
  16. * GNU General Public License for more details.
  17. */
  18. #ifndef _CLOCKS_AM33XX_H_
  19. #define _CLOCKS_AM33XX_H_
  20. #define OSC 24
  21. /* MAIN PLL Fdll = 550 MHZ, */
  22. #define MPUPLL_M 550
  23. #define MPUPLL_N 23
  24. #define MPUPLL_M2 1
  25. /* Core PLL Fdll = 1 GHZ, */
  26. #define COREPLL_M 1000
  27. #define COREPLL_N 23
  28. #define COREPLL_M4 10 /* CORE_CLKOUTM4 = 200 MHZ */
  29. #define COREPLL_M5 8 /* CORE_CLKOUTM5 = 250 MHZ */
  30. #define COREPLL_M6 4 /* CORE_CLKOUTM6 = 500 MHZ */
  31. /*
  32. * USB PHY clock is 960 MHZ. Since, this comes directly from Fdll, Fdll
  33. * frequency needs to be set to 960 MHZ. Hence,
  34. * For clkout = 192 MHZ, Fdll = 960 MHZ, divider values are given below
  35. */
  36. #define PERPLL_M 960
  37. #define PERPLL_N 23
  38. #define PERPLL_M2 5
  39. /* DDR Freq is 266 MHZ for now */
  40. /* Set Fdll = 400 MHZ , Fdll = M * 2 * CLKINP/ N + 1; clkout = Fdll /(2 * M2) */
  41. #define DDRPLL_M 266
  42. #define DDRPLL_N 23
  43. #define DDRPLL_M2 1
  44. extern void pll_init(void);
  45. extern void enable_emif_clocks(void);
  46. #endif /* endif _CLOCKS_AM33XX_H_ */