003-add-olinuxino.patch 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. diff -ruN imx-bootlets-10.05.02.orig/linux_prep/board/imx23_olinuxino_dev.c imx-bootlets-10.05.02/linux_prep/board/imx23_olinuxino_dev.c
  2. --- imx-bootlets-10.05.02.orig/linux_prep/board/imx23_olinuxino_dev.c 1970-01-01 01:00:00.000000000 +0100
  3. +++ imx-bootlets-10.05.02/linux_prep/board/imx23_olinuxino_dev.c 2013-05-19 00:11:40.000000000 +0200
  4. @@ -0,0 +1,54 @@
  5. +/*
  6. + * Platform specific data for the IMX23_OLINUXINO development board
  7. + *
  8. + * Fadil Berisha <fadil.r.berisha@gmail.com>
  9. + *
  10. + * Copyright 2008 SigmaTel, Inc
  11. + * Copyright 2008 Embedded Alley Solutions, Inc
  12. + * Copyright 2009-2010 Freescale Semiconductor, Inc. All Rights Reserved.
  13. + *
  14. + * This file is licensed under the terms of the GNU General Public License
  15. + * version 2. This program is licensed "as is" without any warranty of any
  16. + * kind, whether express or implied.
  17. + *
  18. + * http://www.opensource.org/licenses/gpl-license.html
  19. + * http://www.gnu.org/copyleft/gpl.html
  20. + */
  21. +#include <setup.h>
  22. +#include <keys.h>
  23. +#include <lradc_buttons.h>
  24. +
  25. +/************************************************
  26. + * LRADC keyboard data *
  27. + ************************************************/
  28. +int lradc_keypad_ch = LRADC_CH0;
  29. +int lradc_vddio_ch = LRADC_CH6;
  30. +
  31. +struct lradc_keycode lradc_keycodes[] = {
  32. + { 100, KEY4 },
  33. + { 306, KEY5 },
  34. + { 601, KEY6 },
  35. + { 932, KEY7 },
  36. + { 1260, KEY8 },
  37. + { 1424, KEY9 },
  38. + { 1707, KEY10 },
  39. + { 2207, KEY11 },
  40. + { 2525, KEY12 },
  41. + { 2831, KEY13 },
  42. + { 3134, KEY14 },
  43. + { -1, 0 },
  44. +};
  45. +
  46. +/************************************************
  47. + * Magic key combinations for Armadillo *
  48. + ************************************************/
  49. +u32 magic_keys[MAGIC_KEY_NR] = {
  50. + [MAGIC_KEY1] = KEY4,
  51. + [MAGIC_KEY2] = KEY6,
  52. + [MAGIC_KEY3] = KEY10,
  53. +};
  54. +
  55. +/************************************************
  56. + * Default command line *
  57. + ************************************************/
  58. +char cmdline_def[] = "console=ttyAMA0,115200";
  59. diff -ruN imx-bootlets-10.05.02.orig/linux_prep/cmdlines/imx23_olinuxino_dev.txt imx-bootlets-10.05.02/linux_prep/cmdlines/imx23_olinuxino_dev.txt
  60. --- imx-bootlets-10.05.02.orig/linux_prep/cmdlines/imx23_olinuxino_dev.txt 1970-01-01 01:00:00.000000000 +0100
  61. +++ imx-bootlets-10.05.02/linux_prep/cmdlines/imx23_olinuxino_dev.txt 2013-05-19 00:12:56.000000000 +0200
  62. @@ -0,0 +1 @@
  63. +noinitrd console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait ssp1=mmc
  64. diff -ruN imx-bootlets-10.05.02.orig/linux_prep/core/setup.c imx-bootlets-10.05.02/linux_prep/core/setup.c
  65. --- imx-bootlets-10.05.02.orig/linux_prep/core/setup.c 2010-05-14 06:56:28.000000000 +0200
  66. +++ imx-bootlets-10.05.02/linux_prep/core/setup.c 2013-05-19 00:11:40.000000000 +0200
  67. @@ -84,6 +84,8 @@
  68. #include "../../mach-mx28/includes/registers/regsrtc.h"
  69. #elif defined(STMP378X)
  70. #include "../../mach-mx23/includes/registers/regsrtc.h"
  71. +#elif defined(IMX23_OLINUXINO)
  72. +#include "../../mach-mx23/includes/registers/regsrtc.h"
  73. #endif
  74. #define NAND_SECONDARY_BOOT 0x00000002
  75. diff -ruN imx-bootlets-10.05.02.orig/linux_prep/include/mx23/platform.h imx-bootlets-10.05.02/linux_prep/include/mx23/platform.h
  76. --- imx-bootlets-10.05.02.orig/linux_prep/include/mx23/platform.h 2010-05-14 06:56:28.000000000 +0200
  77. +++ imx-bootlets-10.05.02/linux_prep/include/mx23/platform.h 2013-05-19 00:11:40.000000000 +0200
  78. @@ -19,6 +19,10 @@
  79. #if defined (BOARD_STMP378X_DEV)
  80. #define MACHINE_ID 0xa45
  81. +
  82. +#elif defined (BOARD_IMX23_OLINUXINO_DEV)
  83. +#define MACHINE_ID 0x1009
  84. +
  85. #else
  86. #error "Allocate a machine ID for your board"
  87. #endif
  88. diff -ruN imx-bootlets-10.05.02.orig/linux_prep/Makefile imx-bootlets-10.05.02/linux_prep/Makefile
  89. --- imx-bootlets-10.05.02.orig/linux_prep/Makefile 2010-05-14 06:56:28.000000000 +0200
  90. +++ imx-bootlets-10.05.02/linux_prep/Makefile 2013-05-19 00:11:40.000000000 +0200
  91. @@ -69,6 +69,11 @@
  92. HW_OBJS = $(LRADC_OBJS)
  93. CFLAGS += -DMX28 -DBOARD_MX28_EVK
  94. endif
  95. +ifeq ($(BOARD), imx23_olinuxino_dev)
  96. +ARCH = mx23
  97. +HW_OBJS = $(LRADC_OBJS)
  98. +CFLAGS += -DIMX23_OLINUXINO -DBOARD_IMX23_OLINUXINO_DEV
  99. +endif
  100. # Generic code
  101. CORE_OBJS = entry.o resume.o cmdlines.o setup.o keys.o
  102. diff -ruN imx-bootlets-10.05.02.orig/Makefile imx-bootlets-10.05.02/Makefile
  103. --- imx-bootlets-10.05.02.orig/Makefile 2010-05-14 06:56:28.000000000 +0200
  104. +++ imx-bootlets-10.05.02/Makefile 2013-05-19 00:15:02.000000000 +0200
  105. @@ -3,9 +3,9 @@
  106. export MEM_TYPE
  107. DFT_IMAGE=$(DEV_IMAGE)/boot/zImage
  108. -DFT_UBOOT=$(DEV_IMAGE)/boot/u-boot
  109. +DFT_UBOOT=../boot/u-boot
  110. -BOARD ?= stmp378x_dev
  111. +BOARD ?= imx23_olinuxino_dev
  112. ifeq ($(BOARD), stmp37xx_dev)
  113. ARCH = 37xx
  114. @@ -16,6 +16,9 @@
  115. ifeq ($(BOARD), iMX28_EVK)
  116. ARCH = mx28
  117. endif
  118. +ifeq ($(BOARD), imx23_olinuxino_dev)
  119. +ARCH = mx23
  120. +endif
  121. all: build_prep gen_bootstream
  122. @@ -93,6 +96,8 @@
  123. clean:
  124. -rm -rf *.sb
  125. rm -f sd_mmc_bootstream.raw
  126. + rm -f linux_prep/board/*.o
  127. + rm -f power_prep/*.o
  128. $(MAKE) -C linux_prep clean ARCH=$(ARCH)
  129. $(MAKE) -C boot_prep clean ARCH=$(ARCH)
  130. $(MAKE) -C power_prep clean ARCH=$(ARCH)
  131. diff -ruN imx-bootlets-10.05.02.orig/uboot.db imx-bootlets-10.05.02/uboot.db
  132. --- imx-bootlets-10.05.02.orig/uboot.db 2010-05-14 06:56:28.000000000 +0200
  133. +++ imx-bootlets-10.05.02/uboot.db 2013-05-19 00:11:40.000000000 +0200
  134. @@ -3,7 +3,7 @@
  135. sources {
  136. power_prep="./power_prep/power_prep";
  137. sdram_prep="./boot_prep/boot_prep";
  138. - image="/home/b18647/repos/ltib_latest/rootfs/boot/u-boot";
  139. + image="../boot/u-boot";
  140. }
  141. section (0) {