Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2000-2002 |
| 4 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | /* |
| 8 | * m8xx.c |
| 9 | * |
| 10 | * CPU specific code |
| 11 | * |
| 12 | * written or collected and sometimes rewritten by |
| 13 | * Magnus Damm <damm@bitsmart.com> |
| 14 | * |
| 15 | * minor modifications by |
| 16 | * Wolfgang Denk <wd@denx.de> |
| 17 | */ |
| 18 | |
| 19 | #include <common.h> |
| 20 | #include <watchdog.h> |
| 21 | #include <command.h> |
| 22 | #include <mpc8xx.h> |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 23 | #include <netdev.h> |
| 24 | #include <asm/cache.h> |
Christophe Leroy | 10ff63a | 2018-03-16 17:20:43 +0100 | [diff] [blame] | 25 | #include <asm/cpm_8xx.h> |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 26 | #include <linux/compiler.h> |
| 27 | #include <asm/io.h> |
| 28 | |
| 29 | #if defined(CONFIG_OF_LIBFDT) |
Masahiro Yamada | 75f82d0 | 2018-03-05 01:20:11 +0900 | [diff] [blame] | 30 | #include <linux/libfdt.h> |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 31 | #include <fdt_support.h> |
| 32 | #endif |
| 33 | |
| 34 | DECLARE_GLOBAL_DATA_PTR; |
| 35 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 36 | static int check_CPU(long clock, uint pvr, uint immr) |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 37 | { |
Christophe Leroy | 5c59bdf | 2018-03-16 17:20:33 +0100 | [diff] [blame] | 38 | immap_t __iomem *immap = (immap_t __iomem *)CONFIG_SYS_IMMR; |
Christophe Leroy | ea31cb2 | 2017-07-13 15:09:58 +0200 | [diff] [blame] | 39 | uint k; |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 40 | char buf[32]; |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 41 | |
| 42 | /* the highest 16 bits should be 0x0050 for a 860 */ |
| 43 | |
Christophe Leroy | 0a121f7 | 2018-03-16 17:20:35 +0100 | [diff] [blame] | 44 | if (PVR_VER(pvr) != PVR_VER(PVR_8xx)) |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 45 | return -1; |
| 46 | |
| 47 | k = (immr << 16) | |
Christophe Leroy | 394f9b3 | 2017-07-06 10:33:13 +0200 | [diff] [blame] | 48 | in_be16(&immap->im_cpm.cp_dparam16[PROFF_REVNUM / sizeof(u16)]); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 49 | |
| 50 | /* |
| 51 | * Some boards use sockets so different CPUs can be used. |
| 52 | * We have to check chip version in run time. |
| 53 | */ |
| 54 | switch (k) { |
| 55 | /* MPC866P/MPC866T/MPC859T/MPC859DSL/MPC852T */ |
| 56 | case 0x08010004: /* Rev. A.0 */ |
Christophe Leroy | ea31cb2 | 2017-07-13 15:09:58 +0200 | [diff] [blame] | 57 | printf("MPC866xxxZPnnA"); |
| 58 | break; |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 59 | case 0x08000003: /* Rev. 0.3 */ |
Christophe Leroy | ea31cb2 | 2017-07-13 15:09:58 +0200 | [diff] [blame] | 60 | printf("MPC866xxxZPnn"); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 61 | break; |
Christophe Leroy | ea31cb2 | 2017-07-13 15:09:58 +0200 | [diff] [blame] | 62 | case 0x09000000: /* 870/875/880/885 */ |
| 63 | puts("MPC885ZPnn"); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 64 | break; |
| 65 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 66 | default: |
Christophe Leroy | ea31cb2 | 2017-07-13 15:09:58 +0200 | [diff] [blame] | 67 | printf("unknown MPC86x (0x%08x)", k); |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 68 | break; |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 69 | } |
| 70 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 71 | printf(" at %s MHz: ", strmhz(buf, clock)); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 72 | |
| 73 | print_size(checkicache(), " I-Cache "); |
| 74 | print_size(checkdcache(), " D-Cache"); |
| 75 | |
| 76 | /* do we have a FEC (860T/P or 852/859/866/885)? */ |
| 77 | |
Christophe Leroy | 394f9b3 | 2017-07-06 10:33:13 +0200 | [diff] [blame] | 78 | out_be32(&immap->im_cpm.cp_fec.fec_addr_low, 0x12345678); |
| 79 | if (in_be32(&immap->im_cpm.cp_fec.fec_addr_low) == 0x12345678) |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 80 | printf(" FEC present"); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 81 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 82 | putc('\n'); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 83 | |
| 84 | return 0; |
| 85 | } |
| 86 | |
| 87 | /* ------------------------------------------------------------------------- */ |
| 88 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 89 | int checkcpu(void) |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 90 | { |
| 91 | ulong clock = gd->cpu_clk; |
Christophe Leroy | bda8947 | 2018-03-16 17:20:39 +0100 | [diff] [blame] | 92 | uint immr = get_immr(); /* Return full IMMR contents */ |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 93 | uint pvr = get_pvr(); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 94 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 95 | puts("CPU: "); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 96 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 97 | return check_CPU(clock, pvr, immr); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 98 | } |
| 99 | |
| 100 | /* ------------------------------------------------------------------------- */ |
| 101 | /* L1 i-cache */ |
| 102 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 103 | int checkicache(void) |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 104 | { |
Christophe Leroy | 394f9b3 | 2017-07-06 10:33:13 +0200 | [diff] [blame] | 105 | immap_t __iomem *immap = (immap_t __iomem *)CONFIG_SYS_IMMR; |
| 106 | memctl8xx_t __iomem *memctl = &immap->im_memctl; |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 107 | u32 cacheon = rd_ic_cst() & IDC_ENABLED; |
Christophe Leroy | 394f9b3 | 2017-07-06 10:33:13 +0200 | [diff] [blame] | 108 | /* probe in flash memoryarea */ |
| 109 | u32 k = in_be32(&memctl->memc_br0) & ~0x00007fff; |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 110 | u32 m; |
| 111 | u32 lines = -1; |
| 112 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 113 | wr_ic_cst(IDC_UNALL); |
| 114 | wr_ic_cst(IDC_INVALL); |
| 115 | wr_ic_cst(IDC_DISABLE); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 116 | __asm__ volatile ("isync"); |
| 117 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 118 | while (!((m = rd_ic_cst()) & IDC_CERR2)) { |
| 119 | wr_ic_adr(k); |
| 120 | wr_ic_cst(IDC_LDLCK); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 121 | __asm__ volatile ("isync"); |
| 122 | |
| 123 | lines++; |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 124 | k += 0x10; /* the number of bytes in a cacheline */ |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 125 | } |
| 126 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 127 | wr_ic_cst(IDC_UNALL); |
| 128 | wr_ic_cst(IDC_INVALL); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 129 | |
| 130 | if (cacheon) |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 131 | wr_ic_cst(IDC_ENABLE); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 132 | else |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 133 | wr_ic_cst(IDC_DISABLE); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 134 | |
| 135 | __asm__ volatile ("isync"); |
| 136 | |
| 137 | return lines << 4; |
| 138 | }; |
| 139 | |
| 140 | /* ------------------------------------------------------------------------- */ |
| 141 | /* L1 d-cache */ |
| 142 | /* call with cache disabled */ |
| 143 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 144 | int checkdcache(void) |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 145 | { |
Christophe Leroy | 394f9b3 | 2017-07-06 10:33:13 +0200 | [diff] [blame] | 146 | immap_t __iomem *immap = (immap_t __iomem *)CONFIG_SYS_IMMR; |
| 147 | memctl8xx_t __iomem *memctl = &immap->im_memctl; |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 148 | u32 cacheon = rd_dc_cst() & IDC_ENABLED; |
Christophe Leroy | 394f9b3 | 2017-07-06 10:33:13 +0200 | [diff] [blame] | 149 | /* probe in flash memoryarea */ |
| 150 | u32 k = in_be32(&memctl->memc_br0) & ~0x00007fff; |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 151 | u32 m; |
| 152 | u32 lines = -1; |
| 153 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 154 | wr_dc_cst(IDC_UNALL); |
| 155 | wr_dc_cst(IDC_INVALL); |
| 156 | wr_dc_cst(IDC_DISABLE); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 157 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 158 | while (!((m = rd_dc_cst()) & IDC_CERR2)) { |
| 159 | wr_dc_adr(k); |
| 160 | wr_dc_cst(IDC_LDLCK); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 161 | lines++; |
| 162 | k += 0x10; /* the number of bytes in a cacheline */ |
| 163 | } |
| 164 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 165 | wr_dc_cst(IDC_UNALL); |
| 166 | wr_dc_cst(IDC_INVALL); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 167 | |
| 168 | if (cacheon) |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 169 | wr_dc_cst(IDC_ENABLE); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 170 | else |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 171 | wr_dc_cst(IDC_DISABLE); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 172 | |
| 173 | return lines << 4; |
| 174 | }; |
| 175 | |
| 176 | /* ------------------------------------------------------------------------- */ |
| 177 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 178 | void upmconfig(uint upm, uint *table, uint size) |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 179 | { |
| 180 | uint i; |
| 181 | uint addr = 0; |
Christophe Leroy | 394f9b3 | 2017-07-06 10:33:13 +0200 | [diff] [blame] | 182 | immap_t __iomem *immap = (immap_t __iomem *)CONFIG_SYS_IMMR; |
| 183 | memctl8xx_t __iomem *memctl = &immap->im_memctl; |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 184 | |
| 185 | for (i = 0; i < size; i++) { |
Christophe Leroy | 394f9b3 | 2017-07-06 10:33:13 +0200 | [diff] [blame] | 186 | out_be32(&memctl->memc_mdr, table[i]); /* (16-15) */ |
| 187 | out_be32(&memctl->memc_mcr, addr | upm); /* (16-16) */ |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 188 | addr++; |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | /* ------------------------------------------------------------------------- */ |
| 193 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 194 | int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 195 | { |
| 196 | ulong msr, addr; |
| 197 | |
Christophe Leroy | 394f9b3 | 2017-07-06 10:33:13 +0200 | [diff] [blame] | 198 | immap_t __iomem *immap = (immap_t __iomem *)CONFIG_SYS_IMMR; |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 199 | |
Christophe Leroy | 394f9b3 | 2017-07-06 10:33:13 +0200 | [diff] [blame] | 200 | /* Checkstop Reset enable */ |
| 201 | setbits_be32(&immap->im_clkrst.car_plprcr, PLPRCR_CSR); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 202 | |
| 203 | /* Interrupts and MMU off */ |
| 204 | __asm__ volatile ("mtspr 81, 0"); |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 205 | __asm__ volatile ("mfmsr %0" : "=r" (msr)); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 206 | |
| 207 | msr &= ~0x1030; |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 208 | __asm__ volatile ("mtmsr %0" : : "r" (msr)); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 209 | |
| 210 | /* |
| 211 | * Trying to execute the next instruction at a non-existing address |
| 212 | * should cause a machine check, resulting in reset |
| 213 | */ |
| 214 | #ifdef CONFIG_SYS_RESET_ADDRESS |
| 215 | addr = CONFIG_SYS_RESET_ADDRESS; |
| 216 | #else |
| 217 | /* |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 218 | * note: when CONFIG_SYS_MONITOR_BASE points to a RAM address, |
| 219 | * CONFIG_SYS_MONITOR_BASE - sizeof (ulong) is usually a valid address. |
| 220 | * Better pick an address known to be invalid on your system and assign |
| 221 | * it to CONFIG_SYS_RESET_ADDRESS. |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 222 | * "(ulong)-1" used to be a good choice for many systems... |
| 223 | */ |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 224 | addr = CONFIG_SYS_MONITOR_BASE - sizeof(ulong); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 225 | #endif |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 226 | ((void (*)(void)) addr)(); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 227 | return 1; |
| 228 | } |
| 229 | |
| 230 | /* ------------------------------------------------------------------------- */ |
| 231 | |
| 232 | /* |
| 233 | * Get timebase clock frequency (like cpu_clk in Hz) |
| 234 | * |
| 235 | * See sections 14.2 and 14.6 of the User's Manual |
| 236 | */ |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 237 | unsigned long get_tbclk(void) |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 238 | { |
Christophe Leroy | 5c59bdf | 2018-03-16 17:20:33 +0100 | [diff] [blame] | 239 | immap_t __iomem *immap = (immap_t __iomem *)CONFIG_SYS_IMMR; |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 240 | ulong oscclk, factor, pll; |
| 241 | |
Christophe Leroy | 394f9b3 | 2017-07-06 10:33:13 +0200 | [diff] [blame] | 242 | if (in_be32(&immap->im_clkrst.car_sccr) & SCCR_TBS) |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 243 | return gd->cpu_clk / 16; |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 244 | |
Christophe Leroy | 394f9b3 | 2017-07-06 10:33:13 +0200 | [diff] [blame] | 245 | pll = in_be32(&immap->im_clkrst.car_plprcr); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 246 | |
| 247 | #define PLPRCR_val(a) ((pll & PLPRCR_ ## a ## _MSK) >> PLPRCR_ ## a ## _SHIFT) |
| 248 | |
| 249 | /* |
| 250 | * For newer PQ1 chips (MPC866/87x/88x families), PLL multiplication |
| 251 | * factor is calculated as follows: |
| 252 | * |
| 253 | * MFN |
| 254 | * MFI + ------- |
| 255 | * MFD + 1 |
| 256 | * factor = ----------------- |
| 257 | * (PDF + 1) * 2^S |
| 258 | * |
| 259 | */ |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 260 | factor = (PLPRCR_val(MFI) + PLPRCR_val(MFN) / (PLPRCR_val(MFD) + 1)) / |
| 261 | (PLPRCR_val(PDF) + 1) / (1 << PLPRCR_val(S)); |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 262 | |
| 263 | oscclk = gd->cpu_clk / factor; |
| 264 | |
Christophe Leroy | 394f9b3 | 2017-07-06 10:33:13 +0200 | [diff] [blame] | 265 | if ((in_be32(&immap->im_clkrst.car_sccr) & SCCR_RTSEL) == 0 || |
| 266 | factor > 2) |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 267 | return oscclk / 4; |
Christophe Leroy | 394f9b3 | 2017-07-06 10:33:13 +0200 | [diff] [blame] | 268 | |
Christophe Leroy | 48f896d | 2017-07-06 10:33:17 +0200 | [diff] [blame] | 269 | return oscclk / 16; |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 270 | } |
| 271 | |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 272 | /* |
| 273 | * Initializes on-chip ethernet controllers. |
| 274 | * to override, implement board_eth_init() |
| 275 | */ |
| 276 | int cpu_eth_init(bd_t *bis) |
| 277 | { |
Christophe Leroy | 56ef30a | 2017-07-06 10:33:23 +0200 | [diff] [blame] | 278 | #if defined(CONFIG_MPC8XX_FEC) |
Christophe Leroy | 069fa83 | 2017-07-06 10:23:22 +0200 | [diff] [blame] | 279 | fec_initialize(bis); |
| 280 | #endif |
| 281 | return 0; |
| 282 | } |