blob: 2b6900c081ba7356175e4e2d15e188caca6732eb [file] [log] [blame]
Jon Loeliger0553fc02007-04-11 16:51:02 -05001/*
Kumar Galad0f27d32010-07-08 22:37:44 -05002 * Copyright 2007,2009-2010 Freescale Semiconductor, Inc.
Jon Loeliger0553fc02007-04-11 16:51:02 -05003 *
4 * See file CREDITS for list of people who contributed to this
5 * project.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 * MA 02111-1307 USA
21 */
22
23#include <common.h>
24#include <command.h>
Ed Swarthout52b98522007-07-27 01:50:51 -050025#include <pci.h>
Jon Loeliger0553fc02007-04-11 16:51:02 -050026#include <asm/processor.h>
Kumar Gala573ad302008-08-26 08:02:30 -050027#include <asm/mmu.h>
Jon Loeliger0553fc02007-04-11 16:51:02 -050028#include <asm/immap_85xx.h>
Kumar Gala9bbd6432009-04-02 13:22:48 -050029#include <asm/fsl_pci.h>
Kumar Gala573ad302008-08-26 08:02:30 -050030#include <asm/fsl_ddr_sdram.h>
Kumar Gala3d020382010-12-15 04:55:20 -060031#include <asm/fsl_serdes.h>
Kumar Galae1e870a2007-08-30 16:18:18 -050032#include <asm/io.h>
Jon Loeliger0553fc02007-04-11 16:51:02 -050033#include <miiphy.h>
Kumar Gala67b349b2007-11-26 17:12:24 -060034#include <libfdt.h>
35#include <fdt_support.h>
Andy Flemingafcf7762008-08-31 16:33:29 -050036#include <tsec.h>
Ben Warren65b86232008-08-31 21:41:08 -070037#include <netdev.h>
Jon Loeliger0553fc02007-04-11 16:51:02 -050038
Andy Flemingafcf7762008-08-31 16:33:29 -050039#include "../common/sgmii_riser.h"
Jon Loeliger0553fc02007-04-11 16:51:02 -050040
Jon Loeliger0553fc02007-04-11 16:51:02 -050041int checkboard (void)
42{
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020043 volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
Becky Bruce0d4cee12010-06-17 11:37:20 -050044 volatile fsl_lbc_t *lbc = LBC_BASE_ADDR;
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020045 volatile ccsr_local_ecm_t *ecm = (void *)(CONFIG_SYS_MPC85xx_ECM_ADDR);
Kumar Galae21db032009-07-14 22:42:01 -050046 u8 vboot;
47 u8 *pixis_base = (u8 *)PIXIS_BASE;
Jon Loeliger0553fc02007-04-11 16:51:02 -050048
Wolfgang Denk58c495b2007-05-05 18:23:11 +020049 if ((uint)&gur->porpllsr != 0xe00e0000) {
Wolfgang Denk12cec0a2008-07-11 01:16:00 +020050 printf("immap size error %lx\n",(ulong)&gur->porpllsr);
Jon Loeliger0553fc02007-04-11 16:51:02 -050051 }
Kumar Galae21db032009-07-14 22:42:01 -050052 printf ("Board: MPC8544DS, Sys ID: 0x%02x, "
53 "Sys Ver: 0x%02x, FPGA Ver: 0x%02x, ",
54 in_8(pixis_base + PIXIS_ID), in_8(pixis_base + PIXIS_VER),
55 in_8(pixis_base + PIXIS_PVER));
56
57 vboot = in_8(pixis_base + PIXIS_VBOOT);
58 if (vboot & PIXIS_VBOOT_FMAP)
59 printf ("vBank: %d\n", ((vboot & PIXIS_VBOOT_FBANK) >> 6));
60 else
61 puts ("Promjet\n");
Jon Loeliger0553fc02007-04-11 16:51:02 -050062
Ed Swarthout52b98522007-07-27 01:50:51 -050063 lbc->ltesr = 0xffffffff; /* Clear LBC error interrupts */
64 lbc->lteir = 0xffffffff; /* Enable LBC error interrupts */
65 ecm->eedr = 0xffffffff; /* Clear ecm errors */
66 ecm->eeer = 0xffffffff; /* Enable ecm errors */
67
Jon Loeliger0553fc02007-04-11 16:51:02 -050068 return 0;
69}
70
Becky Brucebd99ae72008-06-09 16:03:40 -050071phys_size_t
Jon Loeliger0553fc02007-04-11 16:51:02 -050072initdram(int board_type)
73{
74 long dram_size = 0;
75
76 puts("Initializing\n");
77
Kumar Gala573ad302008-08-26 08:02:30 -050078 dram_size = fsl_ddr_sdram();
79
80 dram_size = setup_ddr_tlbs(dram_size / 0x100000);
81
82 dram_size *= 0x100000;
Jon Loeliger0553fc02007-04-11 16:51:02 -050083
Jon Loeliger0553fc02007-04-11 16:51:02 -050084 puts(" DDR: ");
85 return dram_size;
86}
87
Ed Swarthout52b98522007-07-27 01:50:51 -050088#ifdef CONFIG_PCI1
89static struct pci_controller pci1_hose;
90#endif
91
92#ifdef CONFIG_PCIE1
93static struct pci_controller pcie1_hose;
94#endif
95
96#ifdef CONFIG_PCIE2
97static struct pci_controller pcie2_hose;
98#endif
99
100#ifdef CONFIG_PCIE3
101static struct pci_controller pcie3_hose;
102#endif
103
Kumar Gala949ea662009-11-04 10:22:26 -0600104void pci_init_board(void)
Ed Swarthout52b98522007-07-27 01:50:51 -0500105{
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200106 volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
Kumar Gala949ea662009-11-04 10:22:26 -0600107 struct fsl_pci_info pci_info[4];
108 u32 devdisr, pordevsr, io_sel;
109 u32 porpllsr, pci_agent, pci_speed, pci_32, pci_arb, pci_clk_sel;
110 int first_free_busno = 0;
111 int num = 0;
112
113 int pcie_ep, pcie_configured;
Ed Swarthout52b98522007-07-27 01:50:51 -0500114
Kumar Gala949ea662009-11-04 10:22:26 -0600115 devdisr = in_be32(&gur->devdisr);
116 pordevsr = in_be32(&gur->pordevsr);
117 porpllsr = in_be32(&gur->porpllsr);
118 io_sel = (pordevsr & MPC85xx_PORDEVSR_IO_SEL) >> 19;
119
120 debug (" pci_init_board: devdisr=%x, io_sel=%x\n", devdisr, io_sel);
Ed Swarthout52b98522007-07-27 01:50:51 -0500121
Kumar Gala949ea662009-11-04 10:22:26 -0600122 puts("\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500123
124#ifdef CONFIG_PCIE3
Kumar Gala3d020382010-12-15 04:55:20 -0600125 pcie_configured = is_serdes_configured(PCIE3);
Ed Swarthout52b98522007-07-27 01:50:51 -0500126
Kumar Gala949ea662009-11-04 10:22:26 -0600127 if (pcie_configured && !(devdisr & MPC85xx_DEVDISR_PCIE3)){
128 SET_STD_PCIE_INFO(pci_info[num], 3);
129 pcie_ep = fsl_setup_hose(&pcie3_hose, pci_info[num].regs);
Kumar Gala3fe80872008-12-02 16:08:36 -0600130#ifdef CONFIG_SYS_PCIE3_MEM_BUS2
Ed Swarthout52b98522007-07-27 01:50:51 -0500131 /* outbound memory */
Kumar Gala949ea662009-11-04 10:22:26 -0600132 pci_set_region(&pcie3_hose.regions[0],
Kumar Gala3fe80872008-12-02 16:08:36 -0600133 CONFIG_SYS_PCIE3_MEM_BUS2,
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200134 CONFIG_SYS_PCIE3_MEM_PHYS2,
135 CONFIG_SYS_PCIE3_MEM_SIZE2,
Ed Swarthout52b98522007-07-27 01:50:51 -0500136 PCI_REGION_MEM);
Ed Swarthout52b98522007-07-27 01:50:51 -0500137
Kumar Gala949ea662009-11-04 10:22:26 -0600138 pcie3_hose.region_count = 1;
139#endif
Peter Tyser2b91f712010-10-29 17:59:24 -0500140 printf("PCIE3: connected to ULI as %s (base addr %lx)\n",
141 pcie_ep ? "Endpoint" : "Root Complex",
142 pci_info[num].regs);
Kumar Gala949ea662009-11-04 10:22:26 -0600143 first_free_busno = fsl_pci_init_port(&pci_info[num++],
144 &pcie3_hose, first_free_busno);
Ed Swarthout52b98522007-07-27 01:50:51 -0500145
Kumar Galae1e870a2007-08-30 16:18:18 -0500146 /*
147 * Activate ULI1575 legacy chip by performing a fake
148 * memory access. Needed to make ULI RTC work.
149 */
Kumar Gala3fe80872008-12-02 16:08:36 -0600150 in_be32((u32 *)CONFIG_SYS_PCIE3_MEM_BUS);
Ed Swarthout52b98522007-07-27 01:50:51 -0500151 } else {
Peter Tyser2b91f712010-10-29 17:59:24 -0500152 printf("PCIE3: disabled\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500153 }
Kumar Gala949ea662009-11-04 10:22:26 -0600154 puts("\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500155#else
Kumar Gala949ea662009-11-04 10:22:26 -0600156 setbits_be32(&gur->devdisr, MPC85xx_DEVDISR_PCIE3); /* disable */
Ed Swarthout52b98522007-07-27 01:50:51 -0500157#endif
158
159#ifdef CONFIG_PCIE1
Kumar Gala3d020382010-12-15 04:55:20 -0600160 pcie_configured = is_serdes_configured(PCIE1);
Ed Swarthout52b98522007-07-27 01:50:51 -0500161
162 if (pcie_configured && !(devdisr & MPC85xx_DEVDISR_PCIE)){
Kumar Gala949ea662009-11-04 10:22:26 -0600163 SET_STD_PCIE_INFO(pci_info[num], 1);
164 pcie_ep = fsl_setup_hose(&pcie1_hose, pci_info[num].regs);
Kumar Gala3fe80872008-12-02 16:08:36 -0600165#ifdef CONFIG_SYS_PCIE1_MEM_BUS2
Ed Swarthout52b98522007-07-27 01:50:51 -0500166 /* outbound memory */
Kumar Gala949ea662009-11-04 10:22:26 -0600167 pci_set_region(&pcie1_hose.regions[0],
Kumar Gala3fe80872008-12-02 16:08:36 -0600168 CONFIG_SYS_PCIE1_MEM_BUS2,
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200169 CONFIG_SYS_PCIE1_MEM_PHYS2,
170 CONFIG_SYS_PCIE1_MEM_SIZE2,
Ed Swarthout52b98522007-07-27 01:50:51 -0500171 PCI_REGION_MEM);
Ed Swarthout52b98522007-07-27 01:50:51 -0500172
Kumar Gala949ea662009-11-04 10:22:26 -0600173 pcie1_hose.region_count = 1;
174#endif
Peter Tyser2b91f712010-10-29 17:59:24 -0500175 printf("PCIE1: connected to Slot 2 as %s (base addr %lx)\n",
Peter Tyser62825a52010-01-17 15:38:26 -0600176 pcie_ep ? "Endpoint" : "Root Complex",
Kumar Gala949ea662009-11-04 10:22:26 -0600177 pci_info[num].regs);
Ed Swarthout52b98522007-07-27 01:50:51 -0500178
Kumar Gala949ea662009-11-04 10:22:26 -0600179 first_free_busno = fsl_pci_init_port(&pci_info[num++],
180 &pcie1_hose, first_free_busno);
Ed Swarthout52b98522007-07-27 01:50:51 -0500181 } else {
Peter Tyser2b91f712010-10-29 17:59:24 -0500182 printf("PCIE1: disabled\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500183 }
184
Kumar Gala949ea662009-11-04 10:22:26 -0600185 puts("\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500186#else
Kumar Gala949ea662009-11-04 10:22:26 -0600187 setbits_be32(&gur->devdisr, MPC85xx_DEVDISR_PCIE); /* disable */
Ed Swarthout52b98522007-07-27 01:50:51 -0500188#endif
189
190#ifdef CONFIG_PCIE2
Kumar Gala3d020382010-12-15 04:55:20 -0600191 pcie_configured = is_serdes_configured(PCIE2);
Ed Swarthout52b98522007-07-27 01:50:51 -0500192
Kumar Gala949ea662009-11-04 10:22:26 -0600193 if (pcie_configured && !(devdisr & MPC85xx_DEVDISR_PCIE2)){
194 SET_STD_PCIE_INFO(pci_info[num], 2);
195 pcie_ep = fsl_setup_hose(&pcie2_hose, pci_info[num].regs);
Kumar Gala3fe80872008-12-02 16:08:36 -0600196#ifdef CONFIG_SYS_PCIE2_MEM_BUS2
Ed Swarthout52b98522007-07-27 01:50:51 -0500197 /* outbound memory */
Kumar Gala949ea662009-11-04 10:22:26 -0600198 pci_set_region(&pcie2_hose.regions[0],
Kumar Gala3fe80872008-12-02 16:08:36 -0600199 CONFIG_SYS_PCIE2_MEM_BUS2,
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200200 CONFIG_SYS_PCIE2_MEM_PHYS2,
201 CONFIG_SYS_PCIE2_MEM_SIZE2,
Ed Swarthout52b98522007-07-27 01:50:51 -0500202 PCI_REGION_MEM);
Ed Swarthout52b98522007-07-27 01:50:51 -0500203
Kumar Gala949ea662009-11-04 10:22:26 -0600204 pcie2_hose.region_count = 1;
205#endif
Peter Tyser2b91f712010-10-29 17:59:24 -0500206 printf("PCIE2: connected to Slot 1 as %s (base addr %lx)\n",
207 pcie_ep ? "Endpoint" : "Root Complex",
208 pci_info[num].regs);
Kumar Gala949ea662009-11-04 10:22:26 -0600209 first_free_busno = fsl_pci_init_port(&pci_info[num++],
210 &pcie2_hose, first_free_busno);
Ed Swarthout52b98522007-07-27 01:50:51 -0500211 } else {
Peter Tyser2b91f712010-10-29 17:59:24 -0500212 printf("PCIE2: disabled\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500213 }
214
Kumar Gala949ea662009-11-04 10:22:26 -0600215 puts("\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500216#else
Kumar Gala949ea662009-11-04 10:22:26 -0600217 setbits_be32(&gur->devdisr, MPC85xx_DEVDISR_PCIE2); /* disable */
Ed Swarthout52b98522007-07-27 01:50:51 -0500218#endif
219
Ed Swarthout52b98522007-07-27 01:50:51 -0500220#ifdef CONFIG_PCI1
Kumar Gala949ea662009-11-04 10:22:26 -0600221 pci_speed = 66666000;
222 pci_32 = 1;
223 pci_arb = pordevsr & MPC85xx_PORDEVSR_PCI1_ARB;
224 pci_clk_sel = porpllsr & MPC85xx_PORDEVSR_PCI1_SPD;
Ed Swarthout52b98522007-07-27 01:50:51 -0500225
226 if (!(devdisr & MPC85xx_DEVDISR_PCI1)) {
Kumar Gala949ea662009-11-04 10:22:26 -0600227 SET_STD_PCI_INFO(pci_info[num], 1);
228 pci_agent = fsl_setup_hose(&pci1_hose, pci_info[num].regs);
Peter Tyser2b91f712010-10-29 17:59:24 -0500229 printf("PCI: %d bit, %s MHz, %s, %s, %s (base address %lx)\n",
Ed Swarthout52b98522007-07-27 01:50:51 -0500230 (pci_32) ? 32 : 64,
231 (pci_speed == 33333000) ? "33" :
232 (pci_speed == 66666000) ? "66" : "unknown",
233 pci_clk_sel ? "sync" : "async",
234 pci_agent ? "agent" : "host",
235 pci_arb ? "arbiter" : "external-arbiter",
Kumar Gala949ea662009-11-04 10:22:26 -0600236 pci_info[num].regs);
Ed Swarthout52b98522007-07-27 01:50:51 -0500237
Kumar Gala949ea662009-11-04 10:22:26 -0600238 first_free_busno = fsl_pci_init_port(&pci_info[num++],
239 &pci1_hose, first_free_busno);
Ed Swarthout52b98522007-07-27 01:50:51 -0500240 } else {
Peter Tyser2b91f712010-10-29 17:59:24 -0500241 printf("PCI: disabled\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500242 }
Kumar Gala949ea662009-11-04 10:22:26 -0600243
244 puts("\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500245#else
Kumar Gala949ea662009-11-04 10:22:26 -0600246 setbits_be32(&gur->devdisr, MPC85xx_DEVDISR_PCI1); /* disable */
Jon Loeliger0553fc02007-04-11 16:51:02 -0500247#endif
Ed Swarthout52b98522007-07-27 01:50:51 -0500248}
249
Jon Loeliger0553fc02007-04-11 16:51:02 -0500250
Jon Loeliger0553fc02007-04-11 16:51:02 -0500251int last_stage_init(void)
252{
253 return 0;
254}
255
256
257unsigned long
258get_board_sys_clk(ulong dummy)
259{
260 u8 i, go_bit, rd_clks;
261 ulong val = 0;
Kumar Gala146c4b22009-07-22 10:12:39 -0500262 u8 *pixis_base = (u8 *)PIXIS_BASE;
Jon Loeliger0553fc02007-04-11 16:51:02 -0500263
Kumar Gala146c4b22009-07-22 10:12:39 -0500264 go_bit = in_8(pixis_base + PIXIS_VCTL);
Jon Loeliger0553fc02007-04-11 16:51:02 -0500265 go_bit &= 0x01;
266
Kumar Gala146c4b22009-07-22 10:12:39 -0500267 rd_clks = in_8(pixis_base + PIXIS_VCFGEN0);
Jon Loeliger0553fc02007-04-11 16:51:02 -0500268 rd_clks &= 0x1C;
269
270 /*
271 * Only if both go bit and the SCLK bit in VCFGEN0 are set
272 * should we be using the AUX register. Remember, we also set the
273 * GO bit to boot from the alternate bank on the on-board flash
274 */
275
276 if (go_bit) {
277 if (rd_clks == 0x1c)
Kumar Gala146c4b22009-07-22 10:12:39 -0500278 i = in_8(pixis_base + PIXIS_AUX);
Jon Loeliger0553fc02007-04-11 16:51:02 -0500279 else
Kumar Gala146c4b22009-07-22 10:12:39 -0500280 i = in_8(pixis_base + PIXIS_SPD);
Jon Loeliger0553fc02007-04-11 16:51:02 -0500281 } else {
Kumar Gala146c4b22009-07-22 10:12:39 -0500282 i = in_8(pixis_base + PIXIS_SPD);
Jon Loeliger0553fc02007-04-11 16:51:02 -0500283 }
284
285 i &= 0x07;
286
287 switch (i) {
288 case 0:
289 val = 33333333;
290 break;
291 case 1:
292 val = 40000000;
293 break;
294 case 2:
295 val = 50000000;
296 break;
297 case 3:
298 val = 66666666;
299 break;
300 case 4:
301 val = 83000000;
302 break;
303 case 5:
304 val = 100000000;
305 break;
306 case 6:
307 val = 133333333;
308 break;
309 case 7:
310 val = 166666666;
311 break;
312 }
313
314 return val;
315}
316
Andy Flemingafcf7762008-08-31 16:33:29 -0500317int board_eth_init(bd_t *bis)
318{
Ben Warren65b86232008-08-31 21:41:08 -0700319#ifdef CONFIG_TSEC_ENET
Andy Flemingafcf7762008-08-31 16:33:29 -0500320 struct tsec_info_struct tsec_info[2];
Andy Flemingafcf7762008-08-31 16:33:29 -0500321 int num = 0;
322
323#ifdef CONFIG_TSEC1
324 SET_STD_TSEC_INFO(tsec_info[num], 1);
Kumar Galae6dc4842010-12-16 14:28:06 -0600325 if (is_serdes_configured(SGMII_TSEC1)) {
326 puts("eTSEC1 is in sgmii mode.\n");
Andy Flemingafcf7762008-08-31 16:33:29 -0500327 tsec_info[num].flags |= TSEC_SGMII;
Kumar Galae6dc4842010-12-16 14:28:06 -0600328 }
Andy Flemingafcf7762008-08-31 16:33:29 -0500329 num++;
330#endif
331#ifdef CONFIG_TSEC3
332 SET_STD_TSEC_INFO(tsec_info[num], 3);
Kumar Galae6dc4842010-12-16 14:28:06 -0600333 if (is_serdes_configured(SGMII_TSEC3)) {
334 puts("eTSEC3 is in sgmii mode.\n");
Andy Flemingafcf7762008-08-31 16:33:29 -0500335 tsec_info[num].flags |= TSEC_SGMII;
Kumar Galae6dc4842010-12-16 14:28:06 -0600336 }
Andy Flemingafcf7762008-08-31 16:33:29 -0500337 num++;
338#endif
339
340 if (!num) {
341 printf("No TSECs initialized\n");
342
343 return 0;
344 }
345
Kumar Galae6dc4842010-12-16 14:28:06 -0600346 if (is_serdes_configured(SGMII_TSEC1) ||
347 is_serdes_configured(SGMII_TSEC3)) {
Andy Flemingafcf7762008-08-31 16:33:29 -0500348 fsl_sgmii_riser_init(tsec_info, num);
Kumar Galae6dc4842010-12-16 14:28:06 -0600349 }
Andy Flemingafcf7762008-08-31 16:33:29 -0500350
351
352 tsec_eth_init(bis, tsec_info, num);
Andy Flemingafcf7762008-08-31 16:33:29 -0500353#endif
Ben Warren65b86232008-08-31 21:41:08 -0700354 return pci_eth_init(bis);
355}
Andy Flemingafcf7762008-08-31 16:33:29 -0500356
Kumar Gala67b349b2007-11-26 17:12:24 -0600357#if defined(CONFIG_OF_BOARD_SETUP)
Kumar Galac10a0c42008-10-21 08:28:33 -0500358void ft_board_setup(void *blob, bd_t *bd)
Jon Loeliger0553fc02007-04-11 16:51:02 -0500359{
Wolfgang Denk58c495b2007-05-05 18:23:11 +0200360 ft_cpu_setup(blob, bd);
Jon Loeliger0553fc02007-04-11 16:51:02 -0500361
Kumar Galad0f27d32010-07-08 22:37:44 -0500362 FT_FSL_PCI_SETUP;
Kumar Galac10a0c42008-10-21 08:28:33 -0500363
Andy Flemingacaccae2008-12-05 20:10:22 -0600364#ifdef CONFIG_FSL_SGMII_RISER
365 fsl_sgmii_riser_fdt_fixup(blob);
366#endif
Jon Loeliger0553fc02007-04-11 16:51:02 -0500367}
368#endif