Advertisement
Guest User

my board.c

a guest
Dec 18th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. /*
  2. * (C) Copyright 2007-2011
  3. * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
  4. * Tom Cubie <tangliang@allwinnertech.com>
  5. *
  6. * Some board init for the Allwinner A10-evb board.
  7. *
  8. * See file CREDITS for list of people who contributed to this
  9. * project.
  10. *
  11. * This program is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License as
  13. * published by the Free Software Foundation; either version 2 of
  14. * the License, or (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  24. * MA 02111-1307 USA
  25. */
  26.  
  27. #include <common.h>
  28. #include <asm/arch/dram.h>
  29.  
  30. static struct dram_para dram_para = {
  31. .clock = 360,
  32. .type = 3,
  33. .rank_num = 1,
  34. .density = 2048,
  35. .io_width = 16,
  36. .bus_width = 32,
  37. .cas = 6,
  38. .zq = 123,
  39. .odt_en = 0,
  40. .size = 512,
  41. .tpr0 = 0x30926692,
  42. .tpr1 = 0x1090,
  43. .tpr2 = 0x1a0c8,
  44. .tpr3 = 0,
  45. .tpr4 = 0,
  46. .tpr5 = 0,
  47. .emr1 = 0x4,
  48. .emr2 = 0,
  49. .emr3 = 0,
  50. };
  51.  
  52. int sunxi_dram_init(void)
  53. {
  54. return DRAMC_init(&dram_para);
  55. }
  56.  
  57. #ifdef CONFIG_DISPLAY_BOARDINFO
  58. int checkboard(void) {
  59.  
  60. puts("Board: A10-EVB\n");
  61. return 0;
  62. }
  63. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement