Primary Bootloader (before u-boot) in sysmoBTSv2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.6 KiB

  1. /*
  2. * dm644x.h - DM644x specific platform definitions
  3. *
  4. * Copyright (C) 2008 Hugo Villeneuve <hugo@hugovil.com>
  5. *
  6. * Based on TI DaVinci Flash and Boot Utilities, original copyright follows:
  7. * Copyright 2008 Texas Instruments, Inc. <www.ti.com>
  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 as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  22. */
  23. #ifndef _DM644X_H_
  24. #define _DM644X_H_
  25. #include "common.h"
  26. #define SYSTEM_CLK_HZ 27000000
  27. #define SYSTEM_CLK_MHZ 27
  28. struct pll_settings_t {
  29. uint8_t mult;
  30. };
  31. #define PLL2_Div1 12
  32. #define PLL2_Div2 2
  33. #define UBL_IMAGE_SIZE 0x3000 /* 12 kB UBL */
  34. /*
  35. * See TMS320DM6446 errata 2.1.2:
  36. * A value of $20 should provide a good ARM (cache enabled)
  37. * performance and still allow good utilization by the VPSS or other
  38. * modules.
  39. */
  40. #define DDR_PBBPR_PR_OLD_COUNT 0x00000020;
  41. /* PINMUX0 register bit values */
  42. #define PINMUX0_EMACEN (1 << 31)
  43. #define PINMUX0_HPIEN (1 << 29)
  44. #define PINMUX0_CFLDEN (1 << 27)
  45. #define PINMUX0_CWE (1 << 26)
  46. #define PINMUX0_LFLDEN (1 << 25)
  47. #define PINMUX0_LOEEN (1 << 24)
  48. #define PINMUX0_RGB888 (1 << 23)
  49. #define PINMUX0_RGB666 (1 << 22)
  50. #define PINMUX0_ATAEN (1 << 17)
  51. #define PINMUX0_HDIREN (1 << 16)
  52. #define PINMUX0_VLYNQEN (1 << 15)
  53. #define PINMUX0_VLSCREN (1 << 14)
  54. #define PINMUX0_VLYNQWD1 (1 << 13)
  55. #define PINMUX0_VLYNQWD0 (1 << 12)
  56. #define VLYNQ_WIDTH_1 (0 << 12)
  57. #define VLYNQ_WIDTH_2 (1 << 12)
  58. #define VLYNQ_WIDTH_3 (3 << 12) /* See TI SPRUE26A document. */
  59. #define VLYNQ_WIDTH_4 (2 << 12) /* See TI SPRUE26A document. */
  60. /* PINMUX1 register bit values */
  61. #define PINMUX1_TIMIN (1 << 18)
  62. #define PINMUX1_CLK1 (1 << 17)
  63. #define PINMUX1_CLK0 (1 << 16)
  64. #define PINMUX1_ASP (1 << 10)
  65. #define PINMUX1_SPI (1 << 8)
  66. #define PINMUX1_I2C (1 << 7)
  67. #define PINMUX1_PWM2 (1 << 6)
  68. #define PINMUX1_PWM1 (1 << 5)
  69. #define PINMUX1_PWM0 (1 << 4)
  70. #define PINMUX1_U2FLO (1 << 3)
  71. #define PINMUX1_UART2 (1 << 2)
  72. #define PINMUX1_UART1 (1 << 1)
  73. #define PINMUX1_UART0 (1 << 0)
  74. #endif /* _DM644X_H_ */