暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

mxs-bootlets-01-olinuxino.patch 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. Forward-ported patch from https://github.com/koliqi/imx23-olinuxino
  2. for mxs-bootlets-10.12.01
  3. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  4. diff -Nura imx-bootlets-src-10.12.01/linux_prep/board/imx23_olinuxino_dev.c imx-bootlets-src-10.12.01-olinuxino/linux_prep/board/imx23_olinuxino_dev.c
  5. --- imx-bootlets-src-10.12.01/linux_prep/board/imx23_olinuxino_dev.c 1969-12-31 21:00:00.000000000 -0300
  6. +++ imx-bootlets-src-10.12.01-olinuxino/linux_prep/board/imx23_olinuxino_dev.c 2013-05-17 15:07:33.282961551 -0300
  7. @@ -0,0 +1,54 @@
  8. +/*
  9. + * Platform specific data for the IMX23_OLINUXINO development board
  10. + *
  11. + * Fadil Berisha <fadil.r.berisha@gmail.com>
  12. + *
  13. + * Copyright 2008 SigmaTel, Inc
  14. + * Copyright 2008 Embedded Alley Solutions, Inc
  15. + * Copyright 2009-2010 Freescale Semiconductor, Inc. All Rights Reserved.
  16. + *
  17. + * This file is licensed under the terms of the GNU General Public License
  18. + * version 2. This program is licensed "as is" without any warranty of any
  19. + * kind, whether express or implied.
  20. + *
  21. + * http://www.opensource.org/licenses/gpl-license.html
  22. + * http://www.gnu.org/copyleft/gpl.html
  23. + */
  24. +#include <setup.h>
  25. +#include <keys.h>
  26. +#include <lradc_buttons.h>
  27. +
  28. +/************************************************
  29. + * LRADC keyboard data *
  30. + ************************************************/
  31. +int lradc_keypad_ch = LRADC_CH0;
  32. +int lradc_vddio_ch = LRADC_CH6;
  33. +
  34. +struct lradc_keycode lradc_keycodes[] = {
  35. + { 100, KEY4 },
  36. + { 306, KEY5 },
  37. + { 601, KEY6 },
  38. + { 932, KEY7 },
  39. + { 1260, KEY8 },
  40. + { 1424, KEY9 },
  41. + { 1707, KEY10 },
  42. + { 2207, KEY11 },
  43. + { 2525, KEY12 },
  44. + { 2831, KEY13 },
  45. + { 3134, KEY14 },
  46. + { -1, 0 },
  47. +};
  48. +
  49. +/************************************************
  50. + * Magic key combinations for Armadillo *
  51. + ************************************************/
  52. +u32 magic_keys[MAGIC_KEY_NR] = {
  53. + [MAGIC_KEY1] = KEY4,
  54. + [MAGIC_KEY2] = KEY6,
  55. + [MAGIC_KEY3] = KEY10,
  56. +};
  57. +
  58. +/************************************************
  59. + * Default command line *
  60. + ************************************************/
  61. +char cmdline_def[] = "console=ttyAMA0,115200";
  62. diff -Nura imx-bootlets-src-10.12.01/linux_prep/cmdlines/imx23_olinuxino_dev.txt imx-bootlets-src-10.12.01-olinuxino/linux_prep/cmdlines/imx23_olinuxino_dev.txt
  63. --- imx-bootlets-src-10.12.01/linux_prep/cmdlines/imx23_olinuxino_dev.txt 1969-12-31 21:00:00.000000000 -0300
  64. +++ imx-bootlets-src-10.12.01-olinuxino/linux_prep/cmdlines/imx23_olinuxino_dev.txt 2013-05-17 15:07:49.663496106 -0300
  65. @@ -0,0 +1,3 @@
  66. +console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait
  67. +console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait
  68. +console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait
  69. diff -Nura imx-bootlets-src-10.12.01/linux_prep/core/setup.c imx-bootlets-src-10.12.01-olinuxino/linux_prep/core/setup.c
  70. --- imx-bootlets-src-10.12.01/linux_prep/core/setup.c 2010-11-04 04:35:38.000000000 -0300
  71. +++ imx-bootlets-src-10.12.01-olinuxino/linux_prep/core/setup.c 2013-05-17 15:08:39.246114205 -0300
  72. @@ -84,6 +84,8 @@
  73. #include "../../mach-mx28/includes/registers/regsrtc.h"
  74. #elif defined(STMP378X)
  75. #include "../../mach-mx23/includes/registers/regsrtc.h"
  76. +#elif defined(IMX23_OLINUXINO)
  77. +#include "../../mach-mx23/includes/registers/regsrtc.h"
  78. #endif
  79. #define NAND_SECONDARY_BOOT 0x00000002
  80. diff -Nura imx-bootlets-src-10.12.01/linux_prep/include/mx23/platform.h imx-bootlets-src-10.12.01-olinuxino/linux_prep/include/mx23/platform.h
  81. --- imx-bootlets-src-10.12.01/linux_prep/include/mx23/platform.h 2010-11-04 04:35:38.000000000 -0300
  82. +++ imx-bootlets-src-10.12.01-olinuxino/linux_prep/include/mx23/platform.h 2013-05-17 15:09:21.006476997 -0300
  83. @@ -19,6 +19,8 @@
  84. #if defined (BOARD_STMP378X_DEV)
  85. #define MACHINE_ID 0xa45
  86. +#elif defined (BOARD_IMX23_OLINUXINO_DEV)
  87. +#define MACHINE_ID 0x1009
  88. #else
  89. #error "Allocate a machine ID for your board"
  90. #endif
  91. diff -Nura imx-bootlets-src-10.12.01/linux_prep/Makefile imx-bootlets-src-10.12.01-olinuxino/linux_prep/Makefile
  92. --- imx-bootlets-src-10.12.01/linux_prep/Makefile 2010-11-04 04:35:38.000000000 -0300
  93. +++ imx-bootlets-src-10.12.01-olinuxino/linux_prep/Makefile 2013-05-17 15:09:53.554539143 -0300
  94. @@ -69,6 +69,11 @@
  95. HW_OBJS = $(LRADC_OBJS)
  96. CFLAGS += -DMX28 -DBOARD_MX28_EVK
  97. endif
  98. +ifeq ($(BOARD), imx23_olinuxino_dev)
  99. +ARCH = mx23
  100. +HW_OBJS = $(LRADC_OBJS)
  101. +CFLAGS += -DIMX23_OLINUXINO -DBOARD_IMX23_OLINUXINO_DEV
  102. +endif
  103. # Generic code
  104. CORE_OBJS = entry.o resume.o cmdlines.o setup.o keys.o
  105. diff -Nura imx-bootlets-src-10.12.01/Makefile imx-bootlets-src-10.12.01-olinuxino/Makefile
  106. --- imx-bootlets-src-10.12.01/Makefile 2010-11-04 04:35:38.000000000 -0300
  107. +++ imx-bootlets-src-10.12.01-olinuxino/Makefile 2013-05-17 15:23:53.709956619 -0300
  108. @@ -16,6 +16,9 @@
  109. ifeq ($(BOARD), iMX28_EVK)
  110. ARCH = mx28
  111. endif
  112. +ifeq ($(BOARD), imx23_olinuxino_dev)
  113. +ARCH = mx23
  114. +endif
  115. all: build_prep gen_bootstream