Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: board/tegra2/common/board.c

Issue 4139007: Tegra2: spi: move spi_init up to board_init so UART works OK when loading from SPI flash chip (Closed) Base URL: http://git.chromium.org/git/u-boot
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) Copyright 2010 2 * (C) Copyright 2010
3 * NVIDIA Corporation <www.nvidia.com> 3 * NVIDIA Corporation <www.nvidia.com>
4 * 4 *
5 * See file CREDITS for list of people who contributed to this 5 * See file CREDITS for list of people who contributed to this
6 * project. 6 * project.
7 * 7 *
8 * This program is free software; you can redistribute it and/or 8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as 9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of 10 * published by the Free Software Foundation; either version 2 of
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 */ 119 */
120 int board_init(void) 120 int board_init(void)
121 { 121 {
122 DECLARE_GLOBAL_DATA_PTR; 122 DECLARE_GLOBAL_DATA_PTR;
123 123
124 /* boot param addr */ 124 /* boot param addr */
125 gd->bd->bi_boot_params = (NV_ADDRESS_MAP_SDRAM_BASE + 0x100); 125 gd->bd->bi_boot_params = (NV_ADDRESS_MAP_SDRAM_BASE + 0x100);
126 /* board id for Linux */ 126 /* board id for Linux */
127 gd->bd->bi_arch_number = LINUX_MACH_TYPE; 127 gd->bd->bi_arch_number = LINUX_MACH_TYPE;
128 128
129 board_spi_init(); /* do this early so UART mux is OK */
129 board_usb_init(); 130 board_usb_init();
131
130 return 0; 132 return 0;
131 } 133 }
132 134
133 /* 135 /*
134 * Routine: misc_init_r 136 * Routine: misc_init_r
135 * Description: Configure board specific parts 137 * Description: Configure board specific parts
136 */ 138 */
137 int misc_init_r(void) 139 int misc_init_r(void)
138 { 140 {
139 board_spi_init();
140 return 0; 141 return 0;
141 } 142 }
142 143
143 /* 144 /*
144 * Routine: timer_init 145 * Routine: timer_init
145 * 146 *
146 * Description: init the timestamp and lastinc value 147 * Description: init the timestamp and lastinc value
147 * 148 *
148 */ 149 */
149 int timer_init(void) 150 int timer_init(void)
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 { 651 {
651 //Wait for the phy clock to become 0 in 100 ms 652 //Wait for the phy clock to become 0 in 100 ms
652 PhyClkValid = readl(UsbBase+USB_SUSP_CTRL) & Bit7; 653 PhyClkValid = readl(UsbBase+USB_SUSP_CTRL) & Bit7;
653 if (!PhyClkValid) 654 if (!PhyClkValid)
654 break; 655 break;
655 udelay(1); 656 udelay(1);
656 loop_count--; 657 loop_count--;
657 } 658 }
658 #endif 659 #endif
659 } 660 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698