002-add-linksprite-pcduino.diff 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. diff -ruN u-boot-2015.01-rc3.old/board/sunxi/dram_sun4i_408_1024_iow8.c u-boot-2015.01-rc3/board/sunxi/dram_sun4i_408_1024_iow8.c
  2. --- u-boot-2015.01-rc3.old/board/sunxi/dram_sun4i_408_1024_iow8.c 1970-01-01 01:00:00.000000000 +0100
  3. +++ u-boot-2015.01-rc3/board/sunxi/dram_sun4i_408_1024_iow8.c 2015-01-06 00:05:07.843497430 +0100
  4. @@ -0,0 +1,31 @@
  5. +/* this file is generated, don't edit it yourself */
  6. +
  7. +#include <common.h>
  8. +#include <asm/arch/dram.h>
  9. +
  10. +static struct dram_para dram_para = {
  11. + .clock = 408,
  12. + .type = 3,
  13. + .rank_num = 1,
  14. + .density = 2048,
  15. + .io_width = 8,
  16. + .bus_width = 32,
  17. + .cas = 6,
  18. + .zq = 123,
  19. + .odt_en = 0,
  20. + .size = 1024,
  21. + .tpr0 = 0x30926692,
  22. + .tpr1 = 0x1090,
  23. + .tpr2 = 0x1a0c8,
  24. + .tpr3 = 0,
  25. + .tpr4 = 0,
  26. + .tpr5 = 0,
  27. + .emr1 = 0,
  28. + .emr2 = 0,
  29. + .emr3 = 0,
  30. +};
  31. +
  32. +unsigned long sunxi_dram_init(void)
  33. +{
  34. + return dramc_init(&dram_para);
  35. +}
  36. diff -ruN u-boot-2015.01-rc3.old/board/sunxi/Kconfig u-boot-2015.01-rc3/board/sunxi/Kconfig
  37. --- u-boot-2015.01-rc3.old/board/sunxi/Kconfig 2014-12-08 22:35:08.000000000 +0100
  38. +++ u-boot-2015.01-rc3/board/sunxi/Kconfig 2015-01-06 00:06:04.218573211 +0100
  39. @@ -99,6 +99,10 @@
  40. bool "IPPO_Q8H_V5"
  41. depends on MACH_SUN8I
  42. +config TARGET_PCDUINO
  43. + bool "PCDUINO"
  44. + depends on MACH_SUN4I
  45. +
  46. config TARGET_PCDUINO3
  47. bool "PCDUINO3"
  48. depends on MACH_SUN7I
  49. diff -ruN u-boot-2015.01-rc3.old/board/sunxi/Makefile u-boot-2015.01-rc3/board/sunxi/Makefile
  50. --- u-boot-2015.01-rc3.old/board/sunxi/Makefile 2014-12-08 22:35:08.000000000 +0100
  51. +++ u-boot-2015.01-rc3/board/sunxi/Makefile 2015-01-06 00:05:43.718909285 +0100
  52. @@ -31,6 +31,7 @@
  53. obj-$(CONFIG_TARGET_MELE_M3) += dram_sun7i_384_1024_iow16.o
  54. obj-$(CONFIG_TARGET_MINI_X) += dram_sun4i_360_512.o
  55. obj-$(CONFIG_TARGET_MINI_X_1GB) += dram_sun4i_360_1024_iow16.o
  56. +obj-$(CONFIG_TARGET_PCDUINO) += dram_sun4i_408_1024_iow8.o
  57. obj-$(CONFIG_TARGET_PCDUINO3) += dram_linksprite_pcduino3.o
  58. obj-$(CONFIG_TARGET_QT840A) += dram_sun7i_384_512_busw16_iow16.o
  59. obj-$(CONFIG_TARGET_R7DONGLE) += dram_r7dongle.o
  60. diff -ruN u-boot-2015.01-rc3.old/configs/Linksprite_pcDuino_defconfig u-boot-2015.01-rc3/configs/Linksprite_pcDuino_defconfig
  61. --- u-boot-2015.01-rc3.old/configs/Linksprite_pcDuino_defconfig 1970-01-01 01:00:00.000000000 +0100
  62. +++ u-boot-2015.01-rc3/configs/Linksprite_pcDuino_defconfig 2015-01-06 00:04:37.323997769 +0100
  63. @@ -0,0 +1,7 @@
  64. +CONFIG_SPL=y
  65. +CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_EMAC,USB_EHCI"
  66. +CONFIG_FDTFILE="sun4i-a10-pcduino.dtb"
  67. ++S:CONFIG_ARM=y
  68. ++S:CONFIG_ARCH_SUNXI=y
  69. ++S:CONFIG_MACH_SUN4I=y
  70. ++S:CONFIG_TARGET_PCDUINO=y