2009-05-14 00:34:26 +00:00
|
|
|
/*-
|
|
|
|
* Copyright (c) 2008-2009 Semihalf, Rafal Jaworowski
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
*
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
__FBSDID("$FreeBSD$");
|
|
|
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/systm.h>
|
|
|
|
#include <sys/kernel.h>
|
|
|
|
#include <sys/bus.h>
|
|
|
|
#include <sys/pcpu.h>
|
|
|
|
#include <sys/proc.h>
|
|
|
|
#include <sys/smp.h>
|
|
|
|
|
|
|
|
#include <machine/bus.h>
|
|
|
|
#include <machine/cpu.h>
|
|
|
|
#include <machine/hid.h>
|
|
|
|
#include <machine/platform.h>
|
|
|
|
#include <machine/platformvar.h>
|
|
|
|
#include <machine/smp.h>
|
|
|
|
#include <machine/spr.h>
|
|
|
|
#include <machine/vmparam.h>
|
|
|
|
|
Convert Freescale PowerPC platforms to FDT convention.
The following systems are affected:
- MPC8555CDS
- MPC8572DS
This overhaul covers the following major changes:
- All integrated peripherals drivers for Freescale MPC85XX SoC, which are
currently in the FreeBSD source tree are reworked and adjusted so they
derive config data out of the device tree blob (instead of hard coded /
tabelarized values).
- This includes: LBC, PCI / PCI-Express, I2C, DS1553, OpenPIC, TSEC, SEC,
QUICC, UART, CFI.
- Thanks to the common FDT infrastrucutre (fdtbus, simplebus) we retire
ocpbus(4) driver, which was based on hard-coded config data.
Note that world for these platforms has to be built WITH_FDT.
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
2010-07-11 21:08:29 +00:00
|
|
|
#include <dev/fdt/fdt_common.h>
|
|
|
|
#include <dev/ofw/ofw_bus.h>
|
|
|
|
#include <dev/ofw/ofw_bus_subr.h>
|
|
|
|
#include <dev/ofw/openfirm.h>
|
|
|
|
|
2009-05-14 00:34:26 +00:00
|
|
|
#include <powerpc/mpc85xx/mpc85xx.h>
|
|
|
|
|
|
|
|
#include "platform_if.h"
|
|
|
|
|
2009-05-21 11:43:37 +00:00
|
|
|
#ifdef SMP
|
|
|
|
extern void *ap_pcpu;
|
|
|
|
extern uint8_t __boot_page[]; /* Boot page body */
|
2011-08-02 15:35:43 +00:00
|
|
|
extern uint32_t kernload_ap; /* Kernel physical load address */
|
2009-05-21 11:43:37 +00:00
|
|
|
#endif
|
|
|
|
|
2011-01-17 23:54:50 +00:00
|
|
|
extern uint32_t *bootinfo;
|
|
|
|
|
2009-06-05 09:46:00 +00:00
|
|
|
static int cpu, maxcpu;
|
2009-05-14 00:34:26 +00:00
|
|
|
|
|
|
|
static int bare_probe(platform_t);
|
|
|
|
static void bare_mem_regions(platform_t, struct mem_region **phys, int *physsz,
|
|
|
|
struct mem_region **avail, int *availsz);
|
|
|
|
static u_long bare_timebase_freq(platform_t, struct cpuref *cpuref);
|
|
|
|
static int bare_smp_first_cpu(platform_t, struct cpuref *cpuref);
|
|
|
|
static int bare_smp_next_cpu(platform_t, struct cpuref *cpuref);
|
|
|
|
static int bare_smp_get_bsp(platform_t, struct cpuref *cpuref);
|
|
|
|
static int bare_smp_start_cpu(platform_t, struct pcpu *cpu);
|
|
|
|
|
2010-08-31 15:27:46 +00:00
|
|
|
static void e500_reset(platform_t);
|
|
|
|
|
2009-05-14 00:34:26 +00:00
|
|
|
static platform_method_t bare_methods[] = {
|
|
|
|
PLATFORMMETHOD(platform_probe, bare_probe),
|
|
|
|
PLATFORMMETHOD(platform_mem_regions, bare_mem_regions),
|
|
|
|
PLATFORMMETHOD(platform_timebase_freq, bare_timebase_freq),
|
|
|
|
|
|
|
|
PLATFORMMETHOD(platform_smp_first_cpu, bare_smp_first_cpu),
|
|
|
|
PLATFORMMETHOD(platform_smp_next_cpu, bare_smp_next_cpu),
|
|
|
|
PLATFORMMETHOD(platform_smp_get_bsp, bare_smp_get_bsp),
|
|
|
|
PLATFORMMETHOD(platform_smp_start_cpu, bare_smp_start_cpu),
|
|
|
|
|
2010-09-11 04:45:51 +00:00
|
|
|
PLATFORMMETHOD(platform_reset, e500_reset),
|
2010-08-31 15:27:46 +00:00
|
|
|
|
2009-05-14 00:34:26 +00:00
|
|
|
{ 0, 0 }
|
|
|
|
};
|
|
|
|
|
|
|
|
static platform_def_t bare_platform = {
|
|
|
|
"bare metal",
|
|
|
|
bare_methods,
|
|
|
|
0
|
|
|
|
};
|
|
|
|
|
|
|
|
PLATFORM_DEF(bare_platform);
|
|
|
|
|
|
|
|
static int
|
|
|
|
bare_probe(platform_t plat)
|
|
|
|
{
|
Convert Freescale PowerPC platforms to FDT convention.
The following systems are affected:
- MPC8555CDS
- MPC8572DS
This overhaul covers the following major changes:
- All integrated peripherals drivers for Freescale MPC85XX SoC, which are
currently in the FreeBSD source tree are reworked and adjusted so they
derive config data out of the device tree blob (instead of hard coded /
tabelarized values).
- This includes: LBC, PCI / PCI-Express, I2C, DS1553, OpenPIC, TSEC, SEC,
QUICC, UART, CFI.
- Thanks to the common FDT infrastrucutre (fdtbus, simplebus) we retire
ocpbus(4) driver, which was based on hard-coded config data.
Note that world for these platforms has to be built WITH_FDT.
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
2010-07-11 21:08:29 +00:00
|
|
|
uint32_t ver, sr;
|
|
|
|
int i, law_max, tgt;
|
2009-06-05 09:46:00 +00:00
|
|
|
|
|
|
|
ver = SVR_VER(mfspr(SPR_SVR));
|
2011-05-29 00:59:38 +00:00
|
|
|
switch (ver & ~0x0008) { /* Mask Security Enabled bit */
|
|
|
|
case SVR_P4080:
|
|
|
|
maxcpu = 8;
|
|
|
|
break;
|
|
|
|
case SVR_P4040:
|
|
|
|
maxcpu = 4;
|
|
|
|
break;
|
|
|
|
case SVR_MPC8572:
|
|
|
|
case SVR_P1020:
|
|
|
|
case SVR_P2020:
|
2009-06-05 09:46:00 +00:00
|
|
|
maxcpu = 2;
|
2011-05-29 00:59:38 +00:00
|
|
|
break;
|
|
|
|
default:
|
2009-06-05 09:46:00 +00:00
|
|
|
maxcpu = 1;
|
2011-05-29 00:59:38 +00:00
|
|
|
break;
|
|
|
|
}
|
2009-05-14 00:34:26 +00:00
|
|
|
|
Convert Freescale PowerPC platforms to FDT convention.
The following systems are affected:
- MPC8555CDS
- MPC8572DS
This overhaul covers the following major changes:
- All integrated peripherals drivers for Freescale MPC85XX SoC, which are
currently in the FreeBSD source tree are reworked and adjusted so they
derive config data out of the device tree blob (instead of hard coded /
tabelarized values).
- This includes: LBC, PCI / PCI-Express, I2C, DS1553, OpenPIC, TSEC, SEC,
QUICC, UART, CFI.
- Thanks to the common FDT infrastrucutre (fdtbus, simplebus) we retire
ocpbus(4) driver, which was based on hard-coded config data.
Note that world for these platforms has to be built WITH_FDT.
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
2010-07-11 21:08:29 +00:00
|
|
|
/*
|
|
|
|
* Clear local access windows. Skip DRAM entries, so we don't shoot
|
|
|
|
* ourselves in the foot.
|
|
|
|
*/
|
|
|
|
law_max = law_getmax();
|
|
|
|
for (i = 0; i < law_max; i++) {
|
|
|
|
sr = ccsr_read4(OCP85XX_LAWSR(i));
|
|
|
|
if ((sr & 0x80000000) == 0)
|
|
|
|
continue;
|
|
|
|
tgt = (sr & 0x01f00000) >> 20;
|
|
|
|
if (tgt == OCP85XX_TGTIF_RAM1 || tgt == OCP85XX_TGTIF_RAM2 ||
|
|
|
|
tgt == OCP85XX_TGTIF_RAM_INTL)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
ccsr_write4(OCP85XX_LAWSR(i), sr & 0x7fffffff);
|
|
|
|
}
|
|
|
|
|
2009-05-14 00:34:26 +00:00
|
|
|
return (BUS_PROBE_GENERIC);
|
|
|
|
}
|
|
|
|
|
|
|
|
#define MEM_REGIONS 8
|
|
|
|
static struct mem_region avail_regions[MEM_REGIONS];
|
|
|
|
|
|
|
|
void
|
|
|
|
bare_mem_regions(platform_t plat, struct mem_region **phys, int *physsz,
|
|
|
|
struct mem_region **avail, int *availsz)
|
|
|
|
{
|
Convert Freescale PowerPC platforms to FDT convention.
The following systems are affected:
- MPC8555CDS
- MPC8572DS
This overhaul covers the following major changes:
- All integrated peripherals drivers for Freescale MPC85XX SoC, which are
currently in the FreeBSD source tree are reworked and adjusted so they
derive config data out of the device tree blob (instead of hard coded /
tabelarized values).
- This includes: LBC, PCI / PCI-Express, I2C, DS1553, OpenPIC, TSEC, SEC,
QUICC, UART, CFI.
- Thanks to the common FDT infrastrucutre (fdtbus, simplebus) we retire
ocpbus(4) driver, which was based on hard-coded config data.
Note that world for these platforms has to be built WITH_FDT.
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
2010-07-11 21:08:29 +00:00
|
|
|
uint32_t memsize;
|
|
|
|
int i, rv;
|
|
|
|
|
|
|
|
rv = fdt_get_mem_regions(avail_regions, availsz, &memsize);
|
|
|
|
|
|
|
|
if (rv != 0)
|
|
|
|
return;
|
|
|
|
|
|
|
|
for (i = 0; i < *availsz; i++) {
|
|
|
|
if (avail_regions[i].mr_start < 1048576) {
|
|
|
|
avail_regions[i].mr_size =
|
|
|
|
avail_regions[i].mr_size -
|
|
|
|
(1048576 - avail_regions[i].mr_start);
|
2009-05-14 00:34:26 +00:00
|
|
|
avail_regions[i].mr_start = 1048576;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*avail = avail_regions;
|
|
|
|
|
|
|
|
/* On the bare metal platform phys == avail memory */
|
|
|
|
*physsz = *availsz;
|
|
|
|
*phys = *avail;
|
|
|
|
}
|
|
|
|
|
|
|
|
static u_long
|
|
|
|
bare_timebase_freq(platform_t plat, struct cpuref *cpuref)
|
|
|
|
{
|
2011-01-17 23:54:50 +00:00
|
|
|
u_long ticks;
|
Convert Freescale PowerPC platforms to FDT convention.
The following systems are affected:
- MPC8555CDS
- MPC8572DS
This overhaul covers the following major changes:
- All integrated peripherals drivers for Freescale MPC85XX SoC, which are
currently in the FreeBSD source tree are reworked and adjusted so they
derive config data out of the device tree blob (instead of hard coded /
tabelarized values).
- This includes: LBC, PCI / PCI-Express, I2C, DS1553, OpenPIC, TSEC, SEC,
QUICC, UART, CFI.
- Thanks to the common FDT infrastrucutre (fdtbus, simplebus) we retire
ocpbus(4) driver, which was based on hard-coded config data.
Note that world for these platforms has to be built WITH_FDT.
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
2010-07-11 21:08:29 +00:00
|
|
|
phandle_t cpus, child;
|
|
|
|
pcell_t freq;
|
|
|
|
|
2011-08-02 23:49:23 +00:00
|
|
|
if (bootinfo != NULL) {
|
2011-08-02 15:35:43 +00:00
|
|
|
if (bootinfo[0] == 1) {
|
|
|
|
/* Backward compatibility. See 8-STABLE. */
|
|
|
|
ticks = bootinfo[3] >> 3;
|
|
|
|
} else {
|
2011-08-02 23:49:23 +00:00
|
|
|
/* Compatibility with Juniper's loader. */
|
2011-08-02 15:35:43 +00:00
|
|
|
ticks = bootinfo[5] >> 3;
|
2011-08-02 23:49:23 +00:00
|
|
|
}
|
2011-05-26 20:47:05 +00:00
|
|
|
} else
|
|
|
|
ticks = 0;
|
2011-01-17 23:54:50 +00:00
|
|
|
|
2011-12-02 15:24:39 +00:00
|
|
|
if ((cpus = OF_finddevice("/cpus")) == -1)
|
Convert Freescale PowerPC platforms to FDT convention.
The following systems are affected:
- MPC8555CDS
- MPC8572DS
This overhaul covers the following major changes:
- All integrated peripherals drivers for Freescale MPC85XX SoC, which are
currently in the FreeBSD source tree are reworked and adjusted so they
derive config data out of the device tree blob (instead of hard coded /
tabelarized values).
- This includes: LBC, PCI / PCI-Express, I2C, DS1553, OpenPIC, TSEC, SEC,
QUICC, UART, CFI.
- Thanks to the common FDT infrastrucutre (fdtbus, simplebus) we retire
ocpbus(4) driver, which was based on hard-coded config data.
Note that world for these platforms has to be built WITH_FDT.
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
2010-07-11 21:08:29 +00:00
|
|
|
goto out;
|
|
|
|
|
|
|
|
if ((child = OF_child(cpus)) == 0)
|
|
|
|
goto out;
|
2009-05-14 00:34:26 +00:00
|
|
|
|
2011-01-17 23:54:50 +00:00
|
|
|
freq = 0;
|
Convert Freescale PowerPC platforms to FDT convention.
The following systems are affected:
- MPC8555CDS
- MPC8572DS
This overhaul covers the following major changes:
- All integrated peripherals drivers for Freescale MPC85XX SoC, which are
currently in the FreeBSD source tree are reworked and adjusted so they
derive config data out of the device tree blob (instead of hard coded /
tabelarized values).
- This includes: LBC, PCI / PCI-Express, I2C, DS1553, OpenPIC, TSEC, SEC,
QUICC, UART, CFI.
- Thanks to the common FDT infrastrucutre (fdtbus, simplebus) we retire
ocpbus(4) driver, which was based on hard-coded config data.
Note that world for these platforms has to be built WITH_FDT.
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
2010-07-11 21:08:29 +00:00
|
|
|
if (OF_getprop(child, "bus-frequency", (void *)&freq,
|
|
|
|
sizeof(freq)) <= 0)
|
|
|
|
goto out;
|
2011-01-17 23:54:50 +00:00
|
|
|
|
2009-05-14 00:34:26 +00:00
|
|
|
/*
|
|
|
|
* Time Base and Decrementer are updated every 8 CCB bus clocks.
|
|
|
|
* HID0[SEL_TBCLK] = 0
|
|
|
|
*/
|
2011-01-17 23:54:50 +00:00
|
|
|
if (freq != 0)
|
|
|
|
ticks = freq / 8;
|
|
|
|
|
Convert Freescale PowerPC platforms to FDT convention.
The following systems are affected:
- MPC8555CDS
- MPC8572DS
This overhaul covers the following major changes:
- All integrated peripherals drivers for Freescale MPC85XX SoC, which are
currently in the FreeBSD source tree are reworked and adjusted so they
derive config data out of the device tree blob (instead of hard coded /
tabelarized values).
- This includes: LBC, PCI / PCI-Express, I2C, DS1553, OpenPIC, TSEC, SEC,
QUICC, UART, CFI.
- Thanks to the common FDT infrastrucutre (fdtbus, simplebus) we retire
ocpbus(4) driver, which was based on hard-coded config data.
Note that world for these platforms has to be built WITH_FDT.
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
2010-07-11 21:08:29 +00:00
|
|
|
out:
|
2009-05-14 00:34:26 +00:00
|
|
|
if (ticks <= 0)
|
|
|
|
panic("Unable to determine timebase frequency!");
|
|
|
|
|
|
|
|
return (ticks);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
bare_smp_first_cpu(platform_t plat, struct cpuref *cpuref)
|
|
|
|
{
|
|
|
|
|
|
|
|
cpu = 0;
|
|
|
|
cpuref->cr_cpuid = cpu;
|
|
|
|
cpuref->cr_hwref = cpuref->cr_cpuid;
|
|
|
|
if (bootverbose)
|
|
|
|
printf("powerpc_smp_first_cpu: cpuid %d\n", cpuref->cr_cpuid);
|
|
|
|
cpu++;
|
|
|
|
|
|
|
|
return (0);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
bare_smp_next_cpu(platform_t plat, struct cpuref *cpuref)
|
|
|
|
{
|
|
|
|
|
2009-06-05 09:46:00 +00:00
|
|
|
if (cpu >= maxcpu)
|
2009-05-14 00:34:26 +00:00
|
|
|
return (ENOENT);
|
|
|
|
|
|
|
|
cpuref->cr_cpuid = cpu++;
|
|
|
|
cpuref->cr_hwref = cpuref->cr_cpuid;
|
|
|
|
if (bootverbose)
|
|
|
|
printf("powerpc_smp_next_cpu: cpuid %d\n", cpuref->cr_cpuid);
|
|
|
|
|
|
|
|
return (0);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
bare_smp_get_bsp(platform_t plat, struct cpuref *cpuref)
|
|
|
|
{
|
|
|
|
|
|
|
|
cpuref->cr_cpuid = mfspr(SPR_PIR);
|
|
|
|
cpuref->cr_hwref = cpuref->cr_cpuid;
|
|
|
|
|
|
|
|
return (0);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
bare_smp_start_cpu(platform_t plat, struct pcpu *pc)
|
|
|
|
{
|
2009-05-21 11:43:37 +00:00
|
|
|
#ifdef SMP
|
|
|
|
uint32_t bptr, eebpcr;
|
|
|
|
int timeout;
|
|
|
|
|
|
|
|
eebpcr = ccsr_read4(OCP85XX_EEBPCR);
|
2011-05-18 16:56:36 +00:00
|
|
|
if ((eebpcr & (1 << (pc->pc_cpuid + 24))) != 0) {
|
2009-05-21 11:43:37 +00:00
|
|
|
printf("%s: CPU=%d already out of hold-off state!\n",
|
|
|
|
__func__, pc->pc_cpuid);
|
|
|
|
return (ENXIO);
|
|
|
|
}
|
|
|
|
|
|
|
|
ap_pcpu = pc;
|
|
|
|
__asm __volatile("msync; isync");
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Set BPTR to the physical address of the boot page
|
|
|
|
*/
|
2011-08-02 15:35:43 +00:00
|
|
|
bptr = ((uint32_t)__boot_page - KERNBASE) + kernload_ap;
|
2009-05-21 11:43:37 +00:00
|
|
|
ccsr_write4(OCP85XX_BPTR, (bptr >> 12) | 0x80000000);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Release AP from hold-off state
|
|
|
|
*/
|
2011-05-18 16:56:36 +00:00
|
|
|
eebpcr |= (1 << (pc->pc_cpuid + 24));
|
2009-05-21 11:43:37 +00:00
|
|
|
ccsr_write4(OCP85XX_EEBPCR, eebpcr);
|
|
|
|
__asm __volatile("isync; msync");
|
|
|
|
|
|
|
|
timeout = 500;
|
|
|
|
while (!pc->pc_awake && timeout--)
|
|
|
|
DELAY(1000); /* wait 1ms */
|
2009-05-14 00:34:26 +00:00
|
|
|
|
2009-05-21 11:43:37 +00:00
|
|
|
return ((pc->pc_awake) ? 0 : EBUSY);
|
|
|
|
#else
|
2009-05-14 00:34:26 +00:00
|
|
|
/* No SMP support */
|
|
|
|
return (ENXIO);
|
2009-05-21 11:43:37 +00:00
|
|
|
#endif
|
2009-05-14 00:34:26 +00:00
|
|
|
}
|
2010-08-31 15:27:46 +00:00
|
|
|
|
|
|
|
static void
|
|
|
|
e500_reset(platform_t plat)
|
|
|
|
{
|
|
|
|
|
2011-05-27 23:18:41 +00:00
|
|
|
/*
|
|
|
|
* Try the dedicated reset register first.
|
|
|
|
* If the SoC doesn't have one, we'll fall
|
|
|
|
* back to using the debug control register.
|
|
|
|
*/
|
|
|
|
ccsr_write4(OCP85XX_RSTCR, 2);
|
|
|
|
|
|
|
|
/* Clear DBCR0, disables debug interrupts and events. */
|
|
|
|
mtspr(SPR_DBCR0, 0);
|
|
|
|
__asm __volatile("isync");
|
|
|
|
|
|
|
|
/* Enable Debug Interrupts in MSR. */
|
|
|
|
mtmsr(mfmsr() | PSL_DE);
|
|
|
|
|
|
|
|
/* Enable debug interrupts and issue reset. */
|
|
|
|
mtspr(SPR_DBCR0, mfspr(SPR_DBCR0) | DBCR0_IDM | DBCR0_RST_SYSTEM);
|
2010-08-31 15:27:46 +00:00
|
|
|
|
|
|
|
printf("Reset failed...\n");
|
|
|
|
while (1);
|
|
|
|
}
|
|
|
|
|