Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1 | /* |
Jon Loeliger | e65e32e | 2006-05-31 12:44:44 -0500 | [diff] [blame] | 2 | * Copyright 2006 Freescale Semiconductor |
| 3 | * Jeff Brown |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 4 | * Srikanth Srinivasan (srikanth.srinivasan@freescale.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 <common.h> |
| 26 | #include <watchdog.h> |
| 27 | #include <command.h> |
| 28 | #include <asm/cache.h> |
Becky Bruce | 7e07c77 | 2008-05-08 19:02:51 -0500 | [diff] [blame^] | 29 | #include <asm/mmu.h> |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 30 | #include <mpc86xx.h> |
Becky Bruce | b0b3094 | 2008-01-23 16:31:06 -0600 | [diff] [blame] | 31 | #include <asm/fsl_law.h> |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 32 | |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 33 | |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 34 | int |
| 35 | checkcpu(void) |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 36 | { |
| 37 | sys_info_t sysinfo; |
| 38 | uint pvr, svr; |
| 39 | uint ver; |
| 40 | uint major, minor; |
| 41 | uint lcrr; /* local bus clock ratio register */ |
| 42 | uint clkdiv; /* clock divider portion of lcrr */ |
Jon Loeliger | 3b971c9 | 2007-10-16 15:26:51 -0500 | [diff] [blame] | 43 | volatile immap_t *immap = (immap_t *) CFG_IMMR; |
| 44 | volatile ccsr_gur_t *gur = &immap->im_gur; |
Jon Loeliger | 465b9d8 | 2006-04-27 10:15:16 -0500 | [diff] [blame] | 45 | |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 46 | puts("Freescale PowerPC\n"); |
| 47 | |
| 48 | pvr = get_pvr(); |
| 49 | ver = PVR_VER(pvr); |
| 50 | major = PVR_MAJ(pvr); |
| 51 | minor = PVR_MIN(pvr); |
| 52 | |
Jon Loeliger | 465b9d8 | 2006-04-27 10:15:16 -0500 | [diff] [blame] | 53 | puts("CPU:\n"); |
Jon Loeliger | e65e32e | 2006-05-31 12:44:44 -0500 | [diff] [blame] | 54 | puts(" Core: "); |
Jon Loeliger | 465b9d8 | 2006-04-27 10:15:16 -0500 | [diff] [blame] | 55 | |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 56 | switch (ver) { |
| 57 | case PVR_VER(PVR_86xx): |
Jon Loeliger | 3b971c9 | 2007-10-16 15:26:51 -0500 | [diff] [blame] | 58 | { |
| 59 | uint msscr0 = mfspr(MSSCR0); |
| 60 | printf("E600 Core %d", (msscr0 & 0x20) ? 1 : 0 ); |
| 61 | if (gur->pordevsr & MPC86xx_PORDEVSR_CORE1TE) |
| 62 | puts("\n Core1Translation Enabled"); |
| 63 | debug(" (MSSCR0=%x, PORDEVSR=%x)", msscr0, gur->pordevsr); |
| 64 | } |
| 65 | break; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 66 | default: |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 67 | puts("Unknown"); |
| 68 | break; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 69 | } |
| 70 | printf(", Version: %d.%d, (0x%08x)\n", major, minor, pvr); |
| 71 | |
| 72 | svr = get_svr(); |
Andy Fleming | f574097 | 2008-02-06 01:19:40 -0600 | [diff] [blame] | 73 | ver = SVR_SOC_VER(svr); |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 74 | major = SVR_MAJ(svr); |
| 75 | minor = SVR_MIN(svr); |
| 76 | |
| 77 | puts(" System: "); |
Jon Loeliger | 465b9d8 | 2006-04-27 10:15:16 -0500 | [diff] [blame] | 78 | switch (ver) { |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 79 | case SVR_8641: |
Jon Loeliger | f57e829 | 2006-09-14 08:40:36 -0500 | [diff] [blame] | 80 | if (SVR_SUBVER(svr) == 1) { |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 81 | puts("8641D"); |
Jon Loeliger | f57e829 | 2006-09-14 08:40:36 -0500 | [diff] [blame] | 82 | } else { |
| 83 | puts("8641"); |
| 84 | } |
| 85 | break; |
Jon Loeliger | 3b971c9 | 2007-10-16 15:26:51 -0500 | [diff] [blame] | 86 | case SVR_8610: |
| 87 | puts("8610"); |
| 88 | break; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 89 | default: |
| 90 | puts("Unknown"); |
| 91 | break; |
| 92 | } |
| 93 | printf(", Version: %d.%d, (0x%08x)\n", major, minor, svr); |
| 94 | |
| 95 | get_sys_info(&sysinfo); |
| 96 | |
| 97 | puts(" Clocks: "); |
| 98 | printf("CPU:%4lu MHz, ", sysinfo.freqProcessor / 1000000); |
| 99 | printf("MPX:%4lu MHz, ", sysinfo.freqSystemBus / 1000000); |
| 100 | printf("DDR:%4lu MHz, ", sysinfo.freqSystemBus / 2000000); |
Jon Loeliger | 465b9d8 | 2006-04-27 10:15:16 -0500 | [diff] [blame] | 101 | |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 102 | #if defined(CFG_LBC_LCRR) |
| 103 | lcrr = CFG_LBC_LCRR; |
| 104 | #else |
| 105 | { |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 106 | volatile immap_t *immap = (immap_t *) CFG_IMMR; |
| 107 | volatile ccsr_lbc_t *lbc = &immap->im_lbc; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 108 | |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 109 | lcrr = lbc->lcrr; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 110 | } |
| 111 | #endif |
| 112 | clkdiv = lcrr & 0x0f; |
| 113 | if (clkdiv == 2 || clkdiv == 4 || clkdiv == 8) { |
| 114 | printf("LBC:%4lu MHz\n", |
| 115 | sysinfo.freqSystemBus / 1000000 / clkdiv); |
| 116 | } else { |
| 117 | printf(" LBC: unknown (lcrr: 0x%08x)\n", lcrr); |
| 118 | } |
| 119 | |
Jon Loeliger | e65e32e | 2006-05-31 12:44:44 -0500 | [diff] [blame] | 120 | puts(" L2: "); |
Jon Loeliger | d68e2ba | 2006-05-30 17:47:00 -0500 | [diff] [blame] | 121 | if (get_l2cr() & 0x80000000) |
Jon Loeliger | e65e32e | 2006-05-31 12:44:44 -0500 | [diff] [blame] | 122 | puts("Enabled\n"); |
Jon Loeliger | d68e2ba | 2006-05-30 17:47:00 -0500 | [diff] [blame] | 123 | else |
Jon Loeliger | e65e32e | 2006-05-31 12:44:44 -0500 | [diff] [blame] | 124 | puts("Disabled\n"); |
Jon Loeliger | 465b9d8 | 2006-04-27 10:15:16 -0500 | [diff] [blame] | 125 | |
| 126 | return 0; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 127 | } |
| 128 | |
| 129 | |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 130 | static inline void |
| 131 | soft_restart(unsigned long addr) |
| 132 | { |
Jason Jin | 333dd1d | 2007-10-26 18:32:00 +0800 | [diff] [blame] | 133 | #if !defined(CONFIG_MPC8641HPCN) && !defined(CONFIG_MPC8610HPCD) |
Jon Loeliger | 465b9d8 | 2006-04-27 10:15:16 -0500 | [diff] [blame] | 134 | |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 135 | /* |
| 136 | * SRR0 has system reset vector, SRR1 has default MSR value |
| 137 | * rfi restores MSR from SRR1 and sets the PC to the SRR0 value |
| 138 | */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 139 | |
| 140 | __asm__ __volatile__ ("mtspr 26, %0" :: "r" (addr)); |
| 141 | __asm__ __volatile__ ("li 4, (1 << 6)" ::: "r4"); |
| 142 | __asm__ __volatile__ ("mtspr 27, 4"); |
| 143 | __asm__ __volatile__ ("rfi"); |
| 144 | |
| 145 | #else /* CONFIG_MPC8641HPCN */ |
Jon Loeliger | e65e32e | 2006-05-31 12:44:44 -0500 | [diff] [blame] | 146 | |
| 147 | out8(PIXIS_BASE + PIXIS_RST, 0); |
| 148 | |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 149 | #endif /* !CONFIG_MPC8641HPCN */ |
Jon Loeliger | e65e32e | 2006-05-31 12:44:44 -0500 | [diff] [blame] | 150 | |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 151 | while (1) ; /* not reached */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 152 | } |
| 153 | |
| 154 | |
Jon Loeliger | d68e2ba | 2006-05-30 17:47:00 -0500 | [diff] [blame] | 155 | /* |
| 156 | * No generic way to do board reset. Simply call soft_reset. |
| 157 | */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 158 | void |
Jon Loeliger | d68e2ba | 2006-05-30 17:47:00 -0500 | [diff] [blame] | 159 | do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 160 | { |
Jason Jin | 333dd1d | 2007-10-26 18:32:00 +0800 | [diff] [blame] | 161 | #if !defined(CONFIG_MPC8641HPCN) && !defined(CONFIG_MPC8610HPCD) |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 162 | |
| 163 | #ifdef CFG_RESET_ADDRESS |
Jon Loeliger | e65e32e | 2006-05-31 12:44:44 -0500 | [diff] [blame] | 164 | ulong addr = CFG_RESET_ADDRESS; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 165 | #else |
| 166 | /* |
| 167 | * note: when CFG_MONITOR_BASE points to a RAM address, |
| 168 | * CFG_MONITOR_BASE - sizeof (ulong) is usually a valid |
| 169 | * address. Better pick an address known to be invalid on your |
| 170 | * system and assign it to CFG_RESET_ADDRESS. |
| 171 | */ |
Jon Loeliger | e65e32e | 2006-05-31 12:44:44 -0500 | [diff] [blame] | 172 | ulong addr = CFG_MONITOR_BASE - sizeof(ulong); |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 173 | #endif |
| 174 | |
Jon Loeliger | 465b9d8 | 2006-04-27 10:15:16 -0500 | [diff] [blame] | 175 | /* flush and disable I/D cache */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 176 | __asm__ __volatile__ ("mfspr 3, 1008" ::: "r3"); |
| 177 | __asm__ __volatile__ ("ori 5, 5, 0xcc00" ::: "r5"); |
| 178 | __asm__ __volatile__ ("ori 4, 3, 0xc00" ::: "r4"); |
| 179 | __asm__ __volatile__ ("andc 5, 3, 5" ::: "r5"); |
| 180 | __asm__ __volatile__ ("sync"); |
| 181 | __asm__ __volatile__ ("mtspr 1008, 4"); |
| 182 | __asm__ __volatile__ ("isync"); |
| 183 | __asm__ __volatile__ ("sync"); |
| 184 | __asm__ __volatile__ ("mtspr 1008, 5"); |
| 185 | __asm__ __volatile__ ("isync"); |
| 186 | __asm__ __volatile__ ("sync"); |
| 187 | |
Jon Loeliger | d68e2ba | 2006-05-30 17:47:00 -0500 | [diff] [blame] | 188 | soft_restart(addr); |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 189 | |
| 190 | #else /* CONFIG_MPC8641HPCN */ |
Jon Loeliger | 465b9d8 | 2006-04-27 10:15:16 -0500 | [diff] [blame] | 191 | |
Haiying Wang | 57b6e9c | 2007-01-22 12:37:30 -0600 | [diff] [blame] | 192 | out8(PIXIS_BASE + PIXIS_RST, 0); |
Jon Loeliger | 465b9d8 | 2006-04-27 10:15:16 -0500 | [diff] [blame] | 193 | |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 194 | #endif /* !CONFIG_MPC8641HPCN */ |
Jon Loeliger | 465b9d8 | 2006-04-27 10:15:16 -0500 | [diff] [blame] | 195 | |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 196 | while (1) ; /* not reached */ |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 197 | } |
| 198 | |
| 199 | |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 200 | /* |
| 201 | * Get timebase clock frequency |
| 202 | */ |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 203 | unsigned long |
| 204 | get_tbclk(void) |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 205 | { |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 206 | sys_info_t sys_info; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 207 | |
| 208 | get_sys_info(&sys_info); |
Jon Loeliger | 465b9d8 | 2006-04-27 10:15:16 -0500 | [diff] [blame] | 209 | return (sys_info.freqSystemBus + 3L) / 4L; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 210 | } |
| 211 | |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 212 | |
| 213 | #if defined(CONFIG_WATCHDOG) |
| 214 | void |
| 215 | watchdog_reset(void) |
| 216 | { |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 217 | } |
| 218 | #endif /* CONFIG_WATCHDOG */ |
| 219 | |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 220 | |
| 221 | #if defined(CONFIG_DDR_ECC) |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 222 | void |
| 223 | dma_init(void) |
Jon Loeliger | 465b9d8 | 2006-04-27 10:15:16 -0500 | [diff] [blame] | 224 | { |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 225 | volatile immap_t *immap = (immap_t *) CFG_IMMR; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 226 | volatile ccsr_dma_t *dma = &immap->im_dma; |
| 227 | |
| 228 | dma->satr0 = 0x00040000; |
| 229 | dma->datr0 = 0x00040000; |
| 230 | asm("sync; isync"); |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 231 | } |
| 232 | |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 233 | uint |
| 234 | dma_check(void) |
Jon Loeliger | 465b9d8 | 2006-04-27 10:15:16 -0500 | [diff] [blame] | 235 | { |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 236 | volatile immap_t *immap = (immap_t *) CFG_IMMR; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 237 | volatile ccsr_dma_t *dma = &immap->im_dma; |
| 238 | volatile uint status = dma->sr0; |
| 239 | |
| 240 | /* While the channel is busy, spin */ |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 241 | while ((status & 4) == 4) { |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 242 | status = dma->sr0; |
| 243 | } |
| 244 | |
| 245 | if (status != 0) { |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 246 | printf("DMA Error: status = %x\n", status); |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 247 | } |
| 248 | return status; |
| 249 | } |
| 250 | |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 251 | int |
| 252 | dma_xfer(void *dest, uint count, void *src) |
Jon Loeliger | 465b9d8 | 2006-04-27 10:15:16 -0500 | [diff] [blame] | 253 | { |
Jon Loeliger | a129544 | 2006-08-22 12:06:18 -0500 | [diff] [blame] | 254 | volatile immap_t *immap = (immap_t *) CFG_IMMR; |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 255 | volatile ccsr_dma_t *dma = &immap->im_dma; |
| 256 | |
| 257 | dma->dar0 = (uint) dest; |
| 258 | dma->sar0 = (uint) src; |
| 259 | dma->bcr0 = count; |
| 260 | dma->mr0 = 0xf000004; |
| 261 | asm("sync;isync"); |
| 262 | dma->mr0 = 0xf000005; |
| 263 | asm("sync;isync"); |
| 264 | return dma_check(); |
| 265 | } |
Jon Loeliger | 465b9d8 | 2006-04-27 10:15:16 -0500 | [diff] [blame] | 266 | |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 267 | #endif /* CONFIG_DDR_ECC */ |
| 268 | |
Becky Bruce | b0b3094 | 2008-01-23 16:31:06 -0600 | [diff] [blame] | 269 | |
| 270 | /* |
| 271 | * Print out the state of various machine registers. |
Becky Bruce | 7e07c77 | 2008-05-08 19:02:51 -0500 | [diff] [blame^] | 272 | * Currently prints out LAWs, BR0/OR0, and BATs |
Becky Bruce | b0b3094 | 2008-01-23 16:31:06 -0600 | [diff] [blame] | 273 | */ |
| 274 | void mpc86xx_reginfo(void) |
| 275 | { |
| 276 | immap_t *immap = (immap_t *)CFG_IMMR; |
| 277 | ccsr_lbc_t *lbc = &immap->im_lbc; |
| 278 | |
Becky Bruce | 7e07c77 | 2008-05-08 19:02:51 -0500 | [diff] [blame^] | 279 | print_bats(); |
Becky Bruce | b0b3094 | 2008-01-23 16:31:06 -0600 | [diff] [blame] | 280 | print_laws(); |
| 281 | |
| 282 | printf ("Local Bus Controller Registers\n" |
| 283 | "\tBR0\t0x%08X\tOR0\t0x%08X \n", in_be32(&lbc->br0), in_be32(&lbc->or0)); |
| 284 | printf("\tBR1\t0x%08X\tOR1\t0x%08X \n", in_be32(&lbc->br1), in_be32(&lbc->or1)); |
| 285 | printf("\tBR2\t0x%08X\tOR2\t0x%08X \n", in_be32(&lbc->br2), in_be32(&lbc->or2)); |
| 286 | printf("\tBR3\t0x%08X\tOR3\t0x%08X \n", in_be32(&lbc->br3), in_be32(&lbc->or3)); |
| 287 | printf("\tBR4\t0x%08X\tOR4\t0x%08X \n", in_be32(&lbc->br4), in_be32(&lbc->or4)); |
| 288 | printf("\tBR5\t0x%08X\tOR5\t0x%08X \n", in_be32(&lbc->br5), in_be32(&lbc->or5)); |
| 289 | printf("\tBR6\t0x%08X\tOR6\t0x%08X \n", in_be32(&lbc->br6), in_be32(&lbc->or6)); |
| 290 | printf("\tBR7\t0x%08X\tOR7\t0x%08X \n", in_be32(&lbc->br7), in_be32(&lbc->or7)); |
Jon Loeliger | 5c8aa97 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 291 | |
| 292 | } |