Guest User

Untitled

a guest
Oct 6th, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 5.72 KB | None | 0 0
  1. diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
  2. index 75be306..8c90412 100644
  3. --- a/arch/arm/lib/bootm.c
  4. +++ b/arch/arm/lib/bootm.c
  5. @@ -290,26 +290,26 @@ static void boot_prep_linux(bootm_headers_t *images)
  6.     defined(CONFIG_SERIAL_TAG) || \
  7.     defined(CONFIG_REVISION_TAG)
  8.         debug("using: ATAGS\n");
  9. -       setup_start_tag(gd->bd);
  10. +/*     setup_start_tag(gd->bd);*/
  11.  #ifdef CONFIG_SERIAL_TAG
  12. -       setup_serial_tag(&params);
  13. +/*     setup_serial_tag(&params);*/
  14.  #endif
  15.  #ifdef CONFIG_CMDLINE_TAG
  16. -       setup_commandline_tag(gd->bd, commandline);
  17. +/*     setup_commandline_tag(gd->bd, commandline);*/
  18.  #endif
  19.  #ifdef CONFIG_REVISION_TAG
  20. -       setup_revision_tag(&params);
  21. +/*     setup_revision_tag(&params);*/
  22.  #endif
  23.  #ifdef CONFIG_SETUP_MEMORY_TAGS
  24. -       setup_memory_tags(gd->bd);
  25. +/*     setup_memory_tags(gd->bd);*/
  26.  #endif
  27.  #ifdef CONFIG_INITRD_TAG
  28. -       if (images->rd_start && images->rd_end)
  29. +/*     if (images->rd_start && images->rd_end)
  30.             setup_initrd_tag(gd->bd, images->rd_start,
  31. -           images->rd_end);
  32. +           images->rd_end);*/
  33.  #endif
  34. -       setup_board_tags(&params);
  35. -       setup_end_tag(gd->bd);
  36. +/*     setup_board_tags(&params);
  37. +       setup_end_tag(gd->bd);*/
  38.  #else /* all tags */
  39.         printf("FDT and ATAGS support not compiled in - hanging\n");
  40.         hang();
  41. diff --git a/board/nokia/rx51/rx51.c b/board/nokia/rx51/rx51.c
  42. index 6049d7e..8161905 100644
  43. --- a/board/nokia/rx51/rx51.c
  44. +++ b/board/nokia/rx51/rx51.c
  45. @@ -62,7 +62,7 @@ const omap3_sysinfo sysinfo = {
  46.  };
  47.  
  48.  /* This structure contains default omap tags needed for booting Maemo 5 */
  49. -static struct tag_omap omap[] = {
  50. +/*static struct tag_omap omap[] = {
  51.     OMAP_TAG_UART_CONFIG(0x04),
  52.     OMAP_TAG_SERIAL_CONSOLE_CONFIG(0x03, 0x01C200),
  53.     OMAP_TAG_LCD_CONFIG("acx565akm", "internal", 90, 0x18),
  54. @@ -103,12 +103,13 @@ static struct tag_omap omap[] = {
  55.  
  56.  static char *boot_reason_ptr;
  57.  static char *hw_build_ptr;
  58. +*/
  59.  
  60.  /*
  61.   * Routine: init_omap_tags
  62.   * Description: Initialize pointers: boot_reason_ptr and hw_build_ptr
  63.   */
  64. -static void init_omap_tags(void)
  65. +/*static void init_omap_tags(void)
  66.  {
  67.     int i = 0;
  68.     while (omap[i].hdr.tag) {
  69. @@ -139,26 +140,26 @@ static void reuse_omap_atags(struct tag_omap *t)
  70.         }
  71.         t = tag_omap_next(t);
  72.     }
  73. -}
  74. +}*/
  75.  
  76.  /*
  77.   * Routine: reuse_atags
  78.   * Description: Reuse atags from previous bootloader.
  79.   *              Reuse only only HW build and boot reason
  80.   */
  81. -static void reuse_atags(void)
  82. +/*static void reuse_atags(void)
  83.  {
  84.     struct tag *t = (struct tag*)gd->bd->bi_boot_params;
  85. -
  86. +*/
  87.     /* First tag must be ATAG_CORE */
  88. -   if (t->hdr.tag != ATAG_CORE)
  89. +/* if (t->hdr.tag != ATAG_CORE)
  90.         return;
  91.  
  92.     if (!boot_reason_ptr || !hw_build_ptr)
  93.         return;
  94. -
  95. +*/
  96.     /* Last tag must be ATAG_NONE */
  97. -   while (t->hdr.tag != ATAG_NONE) {
  98. +/* while (t->hdr.tag != ATAG_NONE) {
  99.         switch(t->hdr.tag) {
  100.         case ATAG_REVISION:
  101.             sprintf(hw_build_ptr, "%d", t->u.revision.rev);
  102. @@ -169,7 +170,7 @@ static void reuse_atags(void)
  103.         }
  104.         t = tag_next(t);
  105.     }
  106. -}
  107. +}*/
  108.  
  109.  /*
  110.   * Routine: board_init
  111. @@ -190,16 +191,16 @@ int board_init(void)
  112.   * Routine: get_board_revision
  113.   * Description: Return board revision.
  114.   */
  115. -u32 get_board_rev(void)
  116. +/*u32 get_board_rev(void)
  117.  {
  118.     return simple_strtol(hw_build_ptr, NULL, 16);
  119. -}
  120. +}*/
  121.  
  122.  /*
  123.   * Routine: setup_board_tags
  124.   * Description: Append board specific boot tags.
  125.   */
  126. -void setup_board_tags(struct tag **in_params)
  127. +/*void setup_board_tags(struct tag **in_params)
  128.  {
  129.     int setup_console_atag;
  130.     char *str;
  131. @@ -213,10 +214,10 @@ void setup_board_tags(struct tag **in_params)
  132.  
  133.     params->u.core.flags = 0x0;
  134.     params->u.core.pagesize = 0x1000;
  135. -   params->u.core.rootdev = 0x0;
  136. +   params->u.core.rootdev = 0x0;*/
  137.  
  138.     /* append omap atag only if env setup_omap_atag is set to 1 */
  139. -   str = getenv("setup_omap_atag");
  140. +/* str = getenv("setup_omap_atag");
  141.     if (!str || strcmp(str, "1") != 0)
  142.         return;
  143.  
  144. @@ -230,18 +231,18 @@ void setup_board_tags(struct tag **in_params)
  145.     t = (struct tag_omap *)&params->u;
  146.     total_size = sizeof(struct tag_header);
  147.  
  148. -   for (i = 0; omap[i].hdr.tag; ++i) {
  149. +   for (i = 0; omap[i].hdr.tag; ++i) {*/
  150.  
  151.         /* skip serial console tag */
  152. -       if (!setup_console_atag &&
  153. +/*     if (!setup_console_atag &&
  154.             omap[i].hdr.tag == OMAP_TAG_SERIAL_CONSOLE)
  155.             continue;
  156.  
  157.         size = omap[i].hdr.size + sizeof(struct tag_omap_header);
  158. -       memcpy(t, &omap[i], size);
  159. +       memcpy(t, &omap[i], size);*/
  160.  
  161.         /* set uart tag to 0 - disable serial console */
  162. -       if (!setup_console_atag && omap[i].hdr.tag == OMAP_TAG_UART)
  163. +/*     if (!setup_console_atag && omap[i].hdr.tag == OMAP_TAG_UART)
  164.             t->u.uart.enabled_uarts = 0;
  165.  
  166.         total_size += size;
  167. @@ -254,7 +255,7 @@ void setup_board_tags(struct tag **in_params)
  168.     params = tag_next(params);
  169.  
  170.     *in_params = params;
  171. -}
  172. +}*/
  173.  
  174.  /*
  175.   * Routine: video_hw_init
  176. @@ -285,6 +286,7 @@ static void twl4030_regulator_set_mode(u8 id, u8 mode)
  177.             TWL4030_PM_MASTER_PB_WORD_LSB);
  178.  }
  179.  
  180. +#if 0
  181.  static void omap3_emu_romcode_call(u32 service_id, u32 *parameters)
  182.  {
  183.     u32 i, num_params = *parameters;
  184. @@ -327,6 +329,7 @@ static void omap3_update_aux_cr_secure_rx51(u32 set_bits, u32 clear_bits)
  185.     omap3_emu_romcode_call(OMAP3_EMU_HAL_API_WRITE_ACR,
  186.                 (u32 *)&emu_romcode_params);
  187.  }
  188. +#endif
  189.  
  190.  /*
  191.   * Routine: misc_init_r
  192. @@ -368,19 +371,21 @@ int misc_init_r(void)
  193.     setenv("rx51_kernaddr", buf);
  194.  
  195.     /* initialize omap tags */
  196. -   init_omap_tags();
  197. +/* init_omap_tags();*/
  198.  
  199.     /* reuse atags from previous bootloader */
  200. -   reuse_atags();
  201. +/* reuse_atags();*/
  202.  
  203.     dieid_num_r();
  204.     print_cpuinfo();
  205.  
  206. +#if 0
  207.     /*
  208.      * Cortex-A8(r1p0..r1p2) errata 430973 workaround
  209.      * Set IBE bit in Auxiliary Control Register
  210.      */
  211.     omap3_update_aux_cr_secure_rx51(1 << 6, 0);
  212. +#endif
  213.  
  214.     return 0;
  215.  }
Advertisement
Add Comment
Please, Sign In to add comment