blob: 3285ceaa1b363a65a84876d27eb4a7b6feac6450 [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
122 if (io_sel & 1) {
123 if (!(gur->pordevsr & MPC85xx_PORDEVSR_SGMII1_DIS))
Peter Tyser8e9134c2010-10-29 17:59:25 -0500124 printf("eTSEC1 is in sgmii mode.\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500125 if (!(gur->pordevsr & MPC85xx_PORDEVSR_SGMII3_DIS))
Peter Tyser8e9134c2010-10-29 17:59:25 -0500126 printf("eTSEC3 is in sgmii mode.\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500127 }
Kumar Gala949ea662009-11-04 10:22:26 -0600128 puts("\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500129
130#ifdef CONFIG_PCIE3
Kumar Gala3d020382010-12-15 04:55:20 -0600131 pcie_configured = is_serdes_configured(PCIE3);
Ed Swarthout52b98522007-07-27 01:50:51 -0500132
Kumar Gala949ea662009-11-04 10:22:26 -0600133 if (pcie_configured && !(devdisr & MPC85xx_DEVDISR_PCIE3)){
134 SET_STD_PCIE_INFO(pci_info[num], 3);
135 pcie_ep = fsl_setup_hose(&pcie3_hose, pci_info[num].regs);
Kumar Gala3fe80872008-12-02 16:08:36 -0600136#ifdef CONFIG_SYS_PCIE3_MEM_BUS2
Ed Swarthout52b98522007-07-27 01:50:51 -0500137 /* outbound memory */
Kumar Gala949ea662009-11-04 10:22:26 -0600138 pci_set_region(&pcie3_hose.regions[0],
Kumar Gala3fe80872008-12-02 16:08:36 -0600139 CONFIG_SYS_PCIE3_MEM_BUS2,
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200140 CONFIG_SYS_PCIE3_MEM_PHYS2,
141 CONFIG_SYS_PCIE3_MEM_SIZE2,
Ed Swarthout52b98522007-07-27 01:50:51 -0500142 PCI_REGION_MEM);
Ed Swarthout52b98522007-07-27 01:50:51 -0500143
Kumar Gala949ea662009-11-04 10:22:26 -0600144 pcie3_hose.region_count = 1;
145#endif
Peter Tyser2b91f712010-10-29 17:59:24 -0500146 printf("PCIE3: connected to ULI as %s (base addr %lx)\n",
147 pcie_ep ? "Endpoint" : "Root Complex",
148 pci_info[num].regs);
Kumar Gala949ea662009-11-04 10:22:26 -0600149 first_free_busno = fsl_pci_init_port(&pci_info[num++],
150 &pcie3_hose, first_free_busno);
Ed Swarthout52b98522007-07-27 01:50:51 -0500151
Kumar Galae1e870a2007-08-30 16:18:18 -0500152 /*
153 * Activate ULI1575 legacy chip by performing a fake
154 * memory access. Needed to make ULI RTC work.
155 */
Kumar Gala3fe80872008-12-02 16:08:36 -0600156 in_be32((u32 *)CONFIG_SYS_PCIE3_MEM_BUS);
Ed Swarthout52b98522007-07-27 01:50:51 -0500157 } else {
Peter Tyser2b91f712010-10-29 17:59:24 -0500158 printf("PCIE3: disabled\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500159 }
Kumar Gala949ea662009-11-04 10:22:26 -0600160 puts("\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500161#else
Kumar Gala949ea662009-11-04 10:22:26 -0600162 setbits_be32(&gur->devdisr, MPC85xx_DEVDISR_PCIE3); /* disable */
Ed Swarthout52b98522007-07-27 01:50:51 -0500163#endif
164
165#ifdef CONFIG_PCIE1
Kumar Gala3d020382010-12-15 04:55:20 -0600166 pcie_configured = is_serdes_configured(PCIE1);
Ed Swarthout52b98522007-07-27 01:50:51 -0500167
168 if (pcie_configured && !(devdisr & MPC85xx_DEVDISR_PCIE)){
Kumar Gala949ea662009-11-04 10:22:26 -0600169 SET_STD_PCIE_INFO(pci_info[num], 1);
170 pcie_ep = fsl_setup_hose(&pcie1_hose, pci_info[num].regs);
Kumar Gala3fe80872008-12-02 16:08:36 -0600171#ifdef CONFIG_SYS_PCIE1_MEM_BUS2
Ed Swarthout52b98522007-07-27 01:50:51 -0500172 /* outbound memory */
Kumar Gala949ea662009-11-04 10:22:26 -0600173 pci_set_region(&pcie1_hose.regions[0],
Kumar Gala3fe80872008-12-02 16:08:36 -0600174 CONFIG_SYS_PCIE1_MEM_BUS2,
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200175 CONFIG_SYS_PCIE1_MEM_PHYS2,
176 CONFIG_SYS_PCIE1_MEM_SIZE2,
Ed Swarthout52b98522007-07-27 01:50:51 -0500177 PCI_REGION_MEM);
Ed Swarthout52b98522007-07-27 01:50:51 -0500178
Kumar Gala949ea662009-11-04 10:22:26 -0600179 pcie1_hose.region_count = 1;
180#endif
Peter Tyser2b91f712010-10-29 17:59:24 -0500181 printf("PCIE1: connected to Slot 2 as %s (base addr %lx)\n",
Peter Tyser62825a52010-01-17 15:38:26 -0600182 pcie_ep ? "Endpoint" : "Root Complex",
Kumar Gala949ea662009-11-04 10:22:26 -0600183 pci_info[num].regs);
Ed Swarthout52b98522007-07-27 01:50:51 -0500184
Kumar Gala949ea662009-11-04 10:22:26 -0600185 first_free_busno = fsl_pci_init_port(&pci_info[num++],
186 &pcie1_hose, first_free_busno);
Ed Swarthout52b98522007-07-27 01:50:51 -0500187 } else {
Peter Tyser2b91f712010-10-29 17:59:24 -0500188 printf("PCIE1: disabled\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500189 }
190
Kumar Gala949ea662009-11-04 10:22:26 -0600191 puts("\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500192#else
Kumar Gala949ea662009-11-04 10:22:26 -0600193 setbits_be32(&gur->devdisr, MPC85xx_DEVDISR_PCIE); /* disable */
Ed Swarthout52b98522007-07-27 01:50:51 -0500194#endif
195
196#ifdef CONFIG_PCIE2
Kumar Gala3d020382010-12-15 04:55:20 -0600197 pcie_configured = is_serdes_configured(PCIE2);
Ed Swarthout52b98522007-07-27 01:50:51 -0500198
Kumar Gala949ea662009-11-04 10:22:26 -0600199 if (pcie_configured && !(devdisr & MPC85xx_DEVDISR_PCIE2)){
200 SET_STD_PCIE_INFO(pci_info[num], 2);
201 pcie_ep = fsl_setup_hose(&pcie2_hose, pci_info[num].regs);
Kumar Gala3fe80872008-12-02 16:08:36 -0600202#ifdef CONFIG_SYS_PCIE2_MEM_BUS2
Ed Swarthout52b98522007-07-27 01:50:51 -0500203 /* outbound memory */
Kumar Gala949ea662009-11-04 10:22:26 -0600204 pci_set_region(&pcie2_hose.regions[0],
Kumar Gala3fe80872008-12-02 16:08:36 -0600205 CONFIG_SYS_PCIE2_MEM_BUS2,
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200206 CONFIG_SYS_PCIE2_MEM_PHYS2,
207 CONFIG_SYS_PCIE2_MEM_SIZE2,
Ed Swarthout52b98522007-07-27 01:50:51 -0500208 PCI_REGION_MEM);
Ed Swarthout52b98522007-07-27 01:50:51 -0500209
Kumar Gala949ea662009-11-04 10:22:26 -0600210 pcie2_hose.region_count = 1;
211#endif
Peter Tyser2b91f712010-10-29 17:59:24 -0500212 printf("PCIE2: connected to Slot 1 as %s (base addr %lx)\n",
213 pcie_ep ? "Endpoint" : "Root Complex",
214 pci_info[num].regs);
Kumar Gala949ea662009-11-04 10:22:26 -0600215 first_free_busno = fsl_pci_init_port(&pci_info[num++],
216 &pcie2_hose, first_free_busno);
Ed Swarthout52b98522007-07-27 01:50:51 -0500217 } else {
Peter Tyser2b91f712010-10-29 17:59:24 -0500218 printf("PCIE2: disabled\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500219 }
220
Kumar Gala949ea662009-11-04 10:22:26 -0600221 puts("\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500222#else
Kumar Gala949ea662009-11-04 10:22:26 -0600223 setbits_be32(&gur->devdisr, MPC85xx_DEVDISR_PCIE2); /* disable */
Ed Swarthout52b98522007-07-27 01:50:51 -0500224#endif
225
Ed Swarthout52b98522007-07-27 01:50:51 -0500226#ifdef CONFIG_PCI1
Kumar Gala949ea662009-11-04 10:22:26 -0600227 pci_speed = 66666000;
228 pci_32 = 1;
229 pci_arb = pordevsr & MPC85xx_PORDEVSR_PCI1_ARB;
230 pci_clk_sel = porpllsr & MPC85xx_PORDEVSR_PCI1_SPD;
Ed Swarthout52b98522007-07-27 01:50:51 -0500231
232 if (!(devdisr & MPC85xx_DEVDISR_PCI1)) {
Kumar Gala949ea662009-11-04 10:22:26 -0600233 SET_STD_PCI_INFO(pci_info[num], 1);
234 pci_agent = fsl_setup_hose(&pci1_hose, pci_info[num].regs);
Peter Tyser2b91f712010-10-29 17:59:24 -0500235 printf("PCI: %d bit, %s MHz, %s, %s, %s (base address %lx)\n",
Ed Swarthout52b98522007-07-27 01:50:51 -0500236 (pci_32) ? 32 : 64,
237 (pci_speed == 33333000) ? "33" :
238 (pci_speed == 66666000) ? "66" : "unknown",
239 pci_clk_sel ? "sync" : "async",
240 pci_agent ? "agent" : "host",
241 pci_arb ? "arbiter" : "external-arbiter",
Kumar Gala949ea662009-11-04 10:22:26 -0600242 pci_info[num].regs);
Ed Swarthout52b98522007-07-27 01:50:51 -0500243
Kumar Gala949ea662009-11-04 10:22:26 -0600244 first_free_busno = fsl_pci_init_port(&pci_info[num++],
245 &pci1_hose, first_free_busno);
Ed Swarthout52b98522007-07-27 01:50:51 -0500246 } else {
Peter Tyser2b91f712010-10-29 17:59:24 -0500247 printf("PCI: disabled\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500248 }
Kumar Gala949ea662009-11-04 10:22:26 -0600249
250 puts("\n");
Ed Swarthout52b98522007-07-27 01:50:51 -0500251#else
Kumar Gala949ea662009-11-04 10:22:26 -0600252 setbits_be32(&gur->devdisr, MPC85xx_DEVDISR_PCI1); /* disable */
Jon Loeliger0553fc02007-04-11 16:51:02 -0500253#endif
Ed Swarthout52b98522007-07-27 01:50:51 -0500254}
255
Jon Loeliger0553fc02007-04-11 16:51:02 -0500256
Jon Loeliger0553fc02007-04-11 16:51:02 -0500257int last_stage_init(void)
258{
259 return 0;
260}
261
262
263unsigned long
264get_board_sys_clk(ulong dummy)
265{
266 u8 i, go_bit, rd_clks;
267 ulong val = 0;
Kumar Gala146c4b22009-07-22 10:12:39 -0500268 u8 *pixis_base = (u8 *)PIXIS_BASE;
Jon Loeliger0553fc02007-04-11 16:51:02 -0500269
Kumar Gala146c4b22009-07-22 10:12:39 -0500270 go_bit = in_8(pixis_base + PIXIS_VCTL);
Jon Loeliger0553fc02007-04-11 16:51:02 -0500271 go_bit &= 0x01;
272
Kumar Gala146c4b22009-07-22 10:12:39 -0500273 rd_clks = in_8(pixis_base + PIXIS_VCFGEN0);
Jon Loeliger0553fc02007-04-11 16:51:02 -0500274 rd_clks &= 0x1C;
275
276 /*
277 * Only if both go bit and the SCLK bit in VCFGEN0 are set
278 * should we be using the AUX register. Remember, we also set the
279 * GO bit to boot from the alternate bank on the on-board flash
280 */
281
282 if (go_bit) {
283 if (rd_clks == 0x1c)
Kumar Gala146c4b22009-07-22 10:12:39 -0500284 i = in_8(pixis_base + PIXIS_AUX);
Jon Loeliger0553fc02007-04-11 16:51:02 -0500285 else
Kumar Gala146c4b22009-07-22 10:12:39 -0500286 i = in_8(pixis_base + PIXIS_SPD);
Jon Loeliger0553fc02007-04-11 16:51:02 -0500287 } else {
Kumar Gala146c4b22009-07-22 10:12:39 -0500288 i = in_8(pixis_base + PIXIS_SPD);
Jon Loeliger0553fc02007-04-11 16:51:02 -0500289 }
290
291 i &= 0x07;
292
293 switch (i) {
294 case 0:
295 val = 33333333;
296 break;
297 case 1:
298 val = 40000000;
299 break;
300 case 2:
301 val = 50000000;
302 break;
303 case 3:
304 val = 66666666;
305 break;
306 case 4:
307 val = 83000000;
308 break;
309 case 5:
310 val = 100000000;
311 break;
312 case 6:
313 val = 133333333;
314 break;
315 case 7:
316 val = 166666666;
317 break;
318 }
319
320 return val;
321}
322
Andy Flemingafcf7762008-08-31 16:33:29 -0500323int board_eth_init(bd_t *bis)
324{
Ben Warren65b86232008-08-31 21:41:08 -0700325#ifdef CONFIG_TSEC_ENET
Andy Flemingafcf7762008-08-31 16:33:29 -0500326 struct tsec_info_struct tsec_info[2];
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200327 volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
Andy Flemingafcf7762008-08-31 16:33:29 -0500328 uint io_sel = (gur->pordevsr & MPC85xx_PORDEVSR_IO_SEL) >> 19;
329 int num = 0;
330
331#ifdef CONFIG_TSEC1
332 SET_STD_TSEC_INFO(tsec_info[num], 1);
333 if (!(gur->pordevsr & MPC85xx_PORDEVSR_SGMII1_DIS))
334 tsec_info[num].flags |= TSEC_SGMII;
335 num++;
336#endif
337#ifdef CONFIG_TSEC3
338 SET_STD_TSEC_INFO(tsec_info[num], 3);
339 if (!(gur->pordevsr & MPC85xx_PORDEVSR_SGMII3_DIS))
340 tsec_info[num].flags |= TSEC_SGMII;
341 num++;
342#endif
343
344 if (!num) {
345 printf("No TSECs initialized\n");
346
347 return 0;
348 }
349
350 if (io_sel & 1)
351 fsl_sgmii_riser_init(tsec_info, num);
352
353
354 tsec_eth_init(bis, tsec_info, num);
Andy Flemingafcf7762008-08-31 16:33:29 -0500355#endif
Ben Warren65b86232008-08-31 21:41:08 -0700356 return pci_eth_init(bis);
357}
Andy Flemingafcf7762008-08-31 16:33:29 -0500358
Kumar Gala67b349b2007-11-26 17:12:24 -0600359#if defined(CONFIG_OF_BOARD_SETUP)
Kumar Galac10a0c42008-10-21 08:28:33 -0500360void ft_board_setup(void *blob, bd_t *bd)
Jon Loeliger0553fc02007-04-11 16:51:02 -0500361{
Wolfgang Denk58c495b2007-05-05 18:23:11 +0200362 ft_cpu_setup(blob, bd);
Jon Loeliger0553fc02007-04-11 16:51:02 -0500363
Kumar Galad0f27d32010-07-08 22:37:44 -0500364 FT_FSL_PCI_SETUP;
Kumar Galac10a0c42008-10-21 08:28:33 -0500365
Andy Flemingacaccae2008-12-05 20:10:22 -0600366#ifdef CONFIG_FSL_SGMII_RISER
367 fsl_sgmii_riser_fdt_fixup(blob);
368#endif
Jon Loeliger0553fc02007-04-11 16:51:02 -0500369}
370#endif