wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2000 |
| 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | * Keith Outwater, keith_outwater@mvis.com |
| 5 | * |
| 6 | * See file CREDITS for list of people who contributed to this |
| 7 | * project. |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU General Public License as |
| 11 | * published by the Free Software Foundation; either version 2 of |
| 12 | * the License, or (at your option) any later version. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program; if not, write to the Free Software |
| 21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 22 | * MA 02111-1307 USA |
| 23 | */ |
| 24 | |
| 25 | #include <virtex2.h> |
| 26 | #include <common.h> |
| 27 | #include <mpc8xx.h> |
| 28 | #include <asm/8xx_immap.h> |
| 29 | #include "beeper.h" |
| 30 | #include "fpga.h" |
| 31 | #include "ioport.h" |
| 32 | |
Wolfgang Denk | d87080b | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 33 | DECLARE_GLOBAL_DATA_PTR; |
| 34 | |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 35 | #ifdef CONFIG_STATUS_LED |
| 36 | #include <status_led.h> |
| 37 | #endif |
| 38 | |
Jon Loeliger | 77a3185 | 2007-07-10 10:39:10 -0500 | [diff] [blame] | 39 | #if defined(CONFIG_CMD_MII) && defined(CONFIG_MII) |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 40 | #include <net.h> |
| 41 | #endif |
| 42 | |
| 43 | #if 0 |
| 44 | #define GEN860T_DEBUG |
| 45 | #endif |
| 46 | |
| 47 | #ifdef GEN860T_DEBUG |
| 48 | #define PRINTF(fmt,args...) printf (fmt ,##args) |
| 49 | #else |
| 50 | #define PRINTF(fmt,args...) |
| 51 | #endif |
| 52 | |
| 53 | /* |
| 54 | * The following UPM init tables were generated automatically by |
| 55 | * Motorola's MCUINIT program. See the README file for UPM to |
| 56 | * SDRAM pin assignments if you want to type this data into |
| 57 | * MCUINIT in order to reverse engineer the waveforms. |
| 58 | */ |
| 59 | |
| 60 | /* |
| 61 | * UPM initialization tables for MICRON MT48LC16M16A2TG SDRAM devices |
| 62 | * (UPMA) and Virtex FPGA SelectMap interface (UPMB). |
| 63 | * NOTE that unused areas of the table are used to hold NOP, precharge |
| 64 | * and mode register set sequences. |
| 65 | * |
| 66 | */ |
| 67 | #define UPMA_NOP_ADDR 0x5 |
| 68 | #define UPMA_PRECHARGE_ADDR 0x6 |
| 69 | #define UPMA_MRS_ADDR 0x12 |
| 70 | |
| 71 | #define UPM_SINGLE_READ_ADDR 0x00 |
| 72 | #define UPM_BURST_READ_ADDR 0x08 |
| 73 | #define UPM_SINGLE_WRITE_ADDR 0x18 |
| 74 | #define UPM_BURST_WRITE_ADDR 0x20 |
| 75 | #define UPM_REFRESH_ADDR 0x30 |
| 76 | |
| 77 | const uint sdram_upm_table[] = { |
| 78 | /* single read (offset 0x00 in upm ram) */ |
| 79 | 0x0e0fdc04, 0x01adfc04, 0x0fbffc00, 0x1fff5c05, |
| 80 | 0xffffffff, 0x0fffffcd, 0x0fff0fce, 0xefcfffff, |
| 81 | /* burst read (offset 0x08 in upm ram) */ |
| 82 | 0x0f0fdc04, 0x00fdfc04, 0xf0fffc00, 0xf0fffc00, |
| 83 | 0xf1fffc00, 0xfffffc00, 0xfffffc05, 0xffffffff, |
| 84 | 0xffffffff, 0xffffffff, 0x0ffffff4, 0x1f3d5ff4, |
| 85 | 0xfffffff4, 0xfffffff5, 0xffffffff, 0xffffffff, |
| 86 | /* single write (offset 0x18 in upm ram) */ |
| 87 | 0x0f0fdc04, 0x00ad3c00, 0x1fff5c05, 0xffffffff, |
| 88 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, |
| 89 | /* burst write (offset 0x20 in upm ram) */ |
| 90 | 0x0f0fdc00, 0x10fd7c00, 0xf0fffc00, 0xf0fffc00, |
| 91 | 0xf1fffc04, 0xfffffc05, 0xffffffff, 0xffffffff, |
| 92 | 0xffffffff, 0xffffffff, 0xffffffff, 0xfffff7ff, |
| 93 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, |
| 94 | /* refresh (offset 0x30 in upm ram) */ |
| 95 | 0x1ffddc84, 0xfffffc04, 0xfffffc04, 0xfffffc84, |
| 96 | 0xfffffc05, 0xffffffff, 0xffffffff, 0xffffffff, |
| 97 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, |
| 98 | /* exception (offset 0x3C in upm ram) */ |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 99 | }; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 100 | |
| 101 | const uint selectmap_upm_table[] = { |
| 102 | /* single read (offset 0x00 in upm ram) */ |
| 103 | 0x88fffc06, 0x00fff404, 0x00fffc04, 0x33fffc00, |
| 104 | 0xfffffc05, 0xffffffff, 0xffffffff, 0xffffffff, |
| 105 | /* burst read (offset 0x08 in upm ram) */ |
| 106 | 0xfffffc04, 0xfffffc05, 0xffffffff, 0xffffffff, |
| 107 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, |
| 108 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, |
| 109 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, |
| 110 | /* single write (offset 0x18 in upm ram) */ |
| 111 | 0x88fffc04, 0x00fff400, 0x77fffc05, 0xffffffff, |
| 112 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, |
| 113 | /* burst write (offset 0x20 in upm ram) */ |
| 114 | 0xfffffc04, 0xfffffc05, 0xffffffff, 0xffffffff, |
| 115 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, |
| 116 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, |
| 117 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, |
| 118 | /* refresh (offset 0x30 in upm ram) */ |
| 119 | 0xfffffc04, 0xfffffc05, 0xffffffff, 0xffffffff, |
| 120 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, |
| 121 | 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, |
| 122 | /* exception (offset 0x3C in upm ram) */ |
| 123 | 0xfffffc05, 0xffffffff, 0xffffffff, 0xffffffff |
| 124 | }; |
| 125 | |
| 126 | /* |
| 127 | * Check board identity. Always successful (gives information only) |
| 128 | */ |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 129 | int checkboard (void) |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 130 | { |
Wolfgang Denk | 77ddac9 | 2005-10-13 16:45:02 +0200 | [diff] [blame] | 131 | char *s; |
| 132 | char buf[64]; |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 133 | int i; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 134 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 135 | i = getenv_r ("board_id", buf, sizeof (buf)); |
| 136 | s = (i > 0) ? buf : NULL; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 137 | |
| 138 | if (s) { |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 139 | printf ("%s ", s); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 140 | } else { |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 141 | printf ("<unknown> "); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 142 | } |
| 143 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 144 | i = getenv_r ("serial#", buf, sizeof (buf)); |
| 145 | s = (i > 0) ? buf : NULL; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 146 | |
| 147 | if (s) { |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 148 | printf ("S/N %s\n", s); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 149 | } else { |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 150 | printf ("S/N <unknown>\n"); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 151 | } |
| 152 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 153 | printf ("CPU at %s MHz, ", strmhz (buf, gd->cpu_clk)); |
| 154 | printf ("local bus at %s MHz\n", strmhz (buf, gd->bus_clk)); |
| 155 | return (0); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 156 | } |
| 157 | |
| 158 | /* |
| 159 | * Initialize SDRAM |
| 160 | */ |
Becky Bruce | 9973e3c | 2008-06-09 16:03:40 -0500 | [diff] [blame] | 161 | phys_size_t initdram (int board_type) |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 162 | { |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 163 | volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR; |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 164 | volatile memctl8xx_t *memctl = &immr->im_memctl; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 165 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 166 | upmconfig (UPMA, |
| 167 | (uint *) sdram_upm_table, |
| 168 | sizeof (sdram_upm_table) / sizeof (uint) |
| 169 | ); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 170 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 171 | /* |
| 172 | * Setup MAMR register |
| 173 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 174 | memctl->memc_mptpr = CONFIG_SYS_MPTPR_1BK_8K; |
| 175 | memctl->memc_mamr = CONFIG_SYS_MAMR_8COL & (~(MAMR_PTAE)); /* no refresh yet */ |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 176 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 177 | /* |
| 178 | * Map CS1* to SDRAM bank |
| 179 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 180 | memctl->memc_or1 = CONFIG_SYS_OR1; |
| 181 | memctl->memc_br1 = CONFIG_SYS_BR1; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 182 | |
| 183 | /* |
| 184 | * Perform SDRAM initialization sequence: |
| 185 | * 1. Apply at least one NOP command |
| 186 | * 2. 100 uS delay (JEDEC standard says 200 uS) |
| 187 | * 3. Issue 4 precharge commands |
| 188 | * 4. Perform two refresh cycles |
| 189 | * 5. Program mode register |
| 190 | * |
| 191 | * Program SDRAM for standard operation, sequential burst, burst length |
| 192 | * of 4, CAS latency of 2. |
| 193 | */ |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 194 | memctl->memc_mar = 0x00000000; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 195 | memctl->memc_mcr = MCR_UPM_A | MCR_OP_RUN | MCR_MB_CS1 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 196 | MCR_MLCF (0) | UPMA_NOP_ADDR; |
| 197 | udelay (200); |
| 198 | memctl->memc_mar = 0x00000000; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 199 | memctl->memc_mcr = MCR_UPM_A | MCR_OP_RUN | MCR_MB_CS1 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 200 | MCR_MLCF (4) | UPMA_PRECHARGE_ADDR; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 201 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 202 | memctl->memc_mar = 0x00000000; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 203 | memctl->memc_mcr = MCR_UPM_A | MCR_OP_RUN | MCR_MB_CS1 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 204 | MCR_MLCF (2) | UPM_REFRESH_ADDR; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 205 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 206 | memctl->memc_mar = 0x00000088; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 207 | memctl->memc_mcr = MCR_UPM_A | MCR_OP_RUN | MCR_MB_CS1 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 208 | MCR_MLCF (1) | UPMA_MRS_ADDR; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 209 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 210 | memctl->memc_mar = 0x00000000; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 211 | memctl->memc_mcr = MCR_UPM_A | MCR_OP_RUN | MCR_MB_CS1 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 212 | MCR_MLCF (0) | UPMA_NOP_ADDR; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 213 | /* |
| 214 | * Enable refresh |
| 215 | */ |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 216 | memctl->memc_mamr |= MAMR_PTAE; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 217 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 218 | return (SDRAM_SIZE); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 219 | } |
| 220 | |
| 221 | /* |
| 222 | * Disk On Chip (DOC) Millenium initialization. |
| 223 | * The DOC lives in the CS2* space |
| 224 | */ |
Jon Loeliger | c508a4c | 2007-07-09 18:31:28 -0500 | [diff] [blame] | 225 | #if defined(CONFIG_CMD_DOC) |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 226 | void doc_init (void) |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 227 | { |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 228 | printf ("Probing at 0x%.8x: ", DOC_BASE); |
| 229 | doc_probe (DOC_BASE); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 230 | } |
| 231 | #endif |
| 232 | |
| 233 | /* |
| 234 | * Miscellaneous intialization |
| 235 | */ |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 236 | int misc_init_r (void) |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 237 | { |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 238 | volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR; |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 239 | volatile memctl8xx_t *memctl = &immr->im_memctl; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 240 | |
| 241 | /* |
| 242 | * Set up UPMB to handle the Virtex FPGA SelectMap interface |
| 243 | */ |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 244 | upmconfig (UPMB, (uint *) selectmap_upm_table, |
| 245 | sizeof (selectmap_upm_table) / sizeof (uint)); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 246 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 247 | memctl->memc_mbmr = 0x0; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 248 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 249 | config_mpc8xx_ioports (immr); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 250 | |
Jon Loeliger | c508a4c | 2007-07-09 18:31:28 -0500 | [diff] [blame] | 251 | #if defined(CONFIG_CMD_MII) |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 252 | mii_init (); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 253 | #endif |
| 254 | |
Matthias Fuchs | 0133502 | 2007-12-27 17:12:34 +0100 | [diff] [blame] | 255 | #if defined(CONFIG_FPGA) |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 256 | gen860t_init_fpga (); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 257 | #endif |
| 258 | return 0; |
| 259 | } |
| 260 | |
| 261 | /* |
| 262 | * Final init hook before entering command loop. |
| 263 | */ |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 264 | int last_stage_init (void) |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 265 | { |
wdenk | 7aa7861 | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 266 | #if !defined(CONFIG_SC) |
Wolfgang Denk | 77ddac9 | 2005-10-13 16:45:02 +0200 | [diff] [blame] | 267 | char buf[256]; |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 268 | int i; |
| 269 | |
| 270 | /* |
wdenk | 7aa7861 | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 271 | * Turn the beeper volume all the way down in case this is a warm boot. |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 272 | */ |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 273 | set_beeper_volume (-64); |
| 274 | init_beeper (); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 275 | |
| 276 | /* |
| 277 | * Read the environment to see what to do with the beeper |
| 278 | */ |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 279 | i = getenv_r ("beeper", buf, sizeof (buf)); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 280 | if (i > 0) { |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 281 | do_beeper (buf); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 282 | } |
wdenk | 7aa7861 | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 283 | #endif |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 284 | return 0; |
| 285 | } |
wdenk | 7aa7861 | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 286 | |
| 287 | /* |
| 288 | * Stub to make POST code happy. Can't self-poweroff, so just hang. |
| 289 | */ |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 290 | void board_poweroff (void) |
wdenk | 7aa7861 | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 291 | { |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 292 | puts ("### Please power off the board ###\n"); |
| 293 | while (1); |
wdenk | 7aa7861 | 2003-05-03 15:50:43 +0000 | [diff] [blame] | 294 | } |
| 295 | |
wdenk | 8564acf | 2003-07-14 22:13:32 +0000 | [diff] [blame] | 296 | #ifdef CONFIG_POST |
wdenk | 945af8d | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 297 | /* |
wdenk | 8564acf | 2003-07-14 22:13:32 +0000 | [diff] [blame] | 298 | * Returns 1 if keys pressed to start the power-on long-running tests |
| 299 | * Called from board_init_f(). |
| 300 | */ |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 301 | int post_hotkeys_pressed (void) |
wdenk | 8564acf | 2003-07-14 22:13:32 +0000 | [diff] [blame] | 302 | { |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 303 | return 0; /* No hotkeys supported */ |
wdenk | 8564acf | 2003-07-14 22:13:32 +0000 | [diff] [blame] | 304 | } |
| 305 | #endif |