Commit 12b43d51 authored by wdenk's avatar wdenk

Add support for MPC8220 based "sorcery" board.

parent f5c5ef4a
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
Changes for U-Boot 1.1.3: Changes for U-Boot 1.1.3:
====================================================================== ======================================================================
* Add support for TQM8560 board * Add support for MPC8220 based "sorcery" board.
* Add support for TQM8560 board.
* Add FEC support for TQM8540 board. * Add FEC support for TQM8540 board.
Interfaces are named as follows: "ENET1" - TSEC2, "ENET2" - FEC Interfaces are named as follows: "ENET1" - TSEC2, "ENET2" - FEC
......
...@@ -864,6 +864,9 @@ XPEDITE1K_config: unconfig ...@@ -864,6 +864,9 @@ XPEDITE1K_config: unconfig
Alaska8220_config: unconfig Alaska8220_config: unconfig
@./mkconfig $(@:_config=) ppc mpc8220 alaska @./mkconfig $(@:_config=) ppc mpc8220 alaska
sorcery_config: unconfig
@./mkconfig $(@:_config=) ppc mpc8220 sorcery
Yukon8220_config: unconfig Yukon8220_config: unconfig
@./mkconfig $(@:_config=) ppc mpc8220 yukon @./mkconfig $(@:_config=) ppc mpc8220 yukon
......
# (C) Copyright 2003-2004 # (C) Copyright 2003-2005
# Wolfgang Denk, DENX Software Engineering, wd@denx.de. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
# #
# See file CREDITS for list of people who contributed to this # See file CREDITS for list of people who contributed to this
...@@ -24,7 +24,7 @@ include $(TOPDIR)/config.mk ...@@ -24,7 +24,7 @@ include $(TOPDIR)/config.mk
LIB = lib$(BOARD).a LIB = lib$(BOARD).a
OBJS := $(BOARD).o flash.o extserial.o serial.o OBJS := $(BOARD).o flash.o extserial.o
$(LIB): $(OBJS) $(SOBJS) $(LIB): $(OBJS) $(SOBJS)
$(AR) crv $@ $(OBJS) $(AR) crv $@ $(OBJS)
......
# (C) Copyright 2005
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# See file CREDITS for list of people who contributed to this
# project.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
include $(TOPDIR)/config.mk
LIB = lib$(BOARD).a
OBJS := $(BOARD).o
$(LIB): $(OBJS) $(SOBJS)
$(AR) crv $@ $(OBJS)
clean:
rm -f $(SOBJS) $(OBJS)
distclean: clean
rm -f $(LIB) core *.bak .depend
#########################################################################
.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
$(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
-include .depend
#########################################################################
#
# (C) Copyright 2003-2004
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# See file CREDITS for list of people who contributed to this
# project.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
#
# sorcery board
#
TEXT_BASE = 0xfff00000
PLATFORM_CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE) -I$(TOPDIR)/board
/*
* (C) Copyright 2004, Freescale Inc.
* TsiChung Liew, Tsi-Chung.Liew@freescale.com
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/
#include <common.h>
#include <mpc8220.h>
#include <asm/processor.h>
#include <asm/mmu.h>
long int initdram (int board_type)
{
ulong size;
size = dramSetup ();
return get_ram_size((ulong *)CFG_SDRAM_BASE, size);
}
int checkboard (void)
{
puts ("Board: Sorcery-C MPC8220\n");
return 0;
}
/*
* (C) Copyright 2003-2004
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/
OUTPUT_ARCH(powerpc)
SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
/* Do we need any of these for elf?
__DYNAMIC = 0; */
SECTIONS
{
/* Read-only sections, merged into text segment: */
. = + SIZEOF_HEADERS;
.interp : { *(.interp) }
.hash : { *(.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.rel.text : { *(.rel.text) }
.rela.text : { *(.rela.text) }
.rel.data : { *(.rel.data) }
.rela.data : { *(.rela.data) }
.rel.rodata : { *(.rel.rodata) }
.rela.rodata : { *(.rela.rodata) }
.rel.got : { *(.rel.got) }
.rela.got : { *(.rela.got) }
.rel.ctors : { *(.rel.ctors) }
.rela.ctors : { *(.rela.ctors) }
.rel.dtors : { *(.rel.dtors) }
.rela.dtors : { *(.rela.dtors) }
.rel.bss : { *(.rel.bss) }
.rela.bss : { *(.rela.bss) }
.rel.plt : { *(.rel.plt) }
.rela.plt : { *(.rela.plt) }
.init : { *(.init) }
.plt : { *(.plt) }
.text :
{
cpu/mpc8220/start.o (.text)
*(.text)
*(.fixup)
*(.got1)
. = ALIGN(16);
*(.rodata)
*(.rodata1)
*(.rodata.str1.4)
}
.fini : { *(.fini) } =0
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
/* Read-write section, merged into data segment: */
. = (. + 0x0FFF) & 0xFFFFF000;
_erotext = .;
PROVIDE (erotext = .);
.reloc :
{
*(.got)
_GOT2_TABLE_ = .;
*(.got2)
_FIXUP_TABLE_ = .;
*(.fixup)
}
__got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
__fixup_entries = (. - _FIXUP_TABLE_) >> 2;
.data :
{
*(.data)
*(.data1)
*(.sdata)
*(.sdata2)
*(.dynamic)
CONSTRUCTORS
}
_edata = .;
PROVIDE (edata = .);
__u_boot_cmd_start = .;
.u_boot_cmd : { *(.u_boot_cmd) }
__u_boot_cmd_end = .;
__start___ex_table = .;
__ex_table : { *(__ex_table) }
__stop___ex_table = .;
. = ALIGN(4096);
__init_begin = .;
.text.init : { *(.text.init) }
.data.init : { *(.data.init) }
. = ALIGN(4096);
__init_end = .;
__bss_start = .;
.bss :
{
*(.sbss) *(.scommon)
*(.dynbss)
*(.bss)
*(COMMON)
}
_end = . ;
PROVIDE (end = .);
}
...@@ -27,8 +27,9 @@ LIB = lib$(CPU).a ...@@ -27,8 +27,9 @@ LIB = lib$(CPU).a
START = start.o START = start.o
ASOBJS = io.o fec_dma_tasks.o ASOBJS = io.o fec_dma_tasks.o
OBJS = i2c.o traps.o cpu.o cpu_init.o fec.o dramSetup.o interrupts.o \ OBJS = cpu.o cpu_init.o dramSetup.o fec.o i2c.o \
loadtask.o uart.o speed.o interrupts.o loadtask.o serial.o speed.o \
traps.o uart.o
all: .depend $(START) $(ASOBJS) $(LIB) all: .depend $(START) $(ASOBJS) $(LIB)
......
...@@ -55,7 +55,11 @@ void cpu_init_f (void) ...@@ -55,7 +55,11 @@ void cpu_init_f (void)
*/ */
#if defined (CFG_CS0_BASE) #if defined (CFG_CS0_BASE)
flexbus->csar0 = CFG_CS0_BASE; flexbus->csar0 = CFG_CS0_BASE;
/* Sorcery-C can hang-up after CTRL reg initialization */
#if defined (CFG_CS0_CTRL)
flexbus->cscr0 = CFG_CS0_CTRL; flexbus->cscr0 = CFG_CS0_CTRL;
#endif
flexbus->csmr0 = ((CFG_CS0_MASK - 1) & 0xffff0000) | 1; flexbus->csmr0 = ((CFG_CS0_MASK - 1) & 0xffff0000) | 1;
__asm__ volatile ("sync"); __asm__ volatile ("sync");
#endif #endif
...@@ -97,15 +101,15 @@ void cpu_init_f (void) ...@@ -97,15 +101,15 @@ void cpu_init_f (void)
/* This section of the code cannot place in cpu_init_r(), /* This section of the code cannot place in cpu_init_r(),
it will cause the system to hang */ it will cause the system to hang */
/* enable timebase */ /* enable timebase */
xlbarb->config = 0x00002000;
xlbarb->addrTenTimeOut = 0x1000; xlbarb->addrTenTimeOut = 0x1000;
xlbarb->dataTenTimeOut = 0x1000; xlbarb->dataTenTimeOut = 0x1000;
xlbarb->busActTimeOut = 0x2000; xlbarb->busActTimeOut = 0x2000;
xlbarb->config = 0x00002000;
/* Master Priority Enable */ /* Master Priority Enable */
xlbarb->mastPriEn = 0x1f;
xlbarb->mastPriority = 0; xlbarb->mastPriority = 0;
xlbarb->mastPriEn = 0x1f;
} }
/* /*
......
...@@ -32,9 +32,9 @@ characteristics to initialize the dram on MPC8220 ...@@ -32,9 +32,9 @@ characteristics to initialize the dram on MPC8220
#include "i2cCore.h" #include "i2cCore.h"
#include "dramSetup.h" #include "dramSetup.h"
#define SPD_SIZE 0x40 #define SPD_SIZE CFG_SDRAM_SPD_SIZE
#define DRAM_SPD 0xA2 /* on Board SPD eeprom */ #define DRAM_SPD (CFG_SDRAM_SPD_I2C_ADDR)<<1 /* on Board SPD eeprom */
#define TOTAL_BANK 2 #define TOTAL_BANK CFG_SDRAM_TOTAL_BANKS
int spd_status (volatile i2c8220_t * pi2c, u8 sta_bit, u8 truefalse) int spd_status (volatile i2c8220_t * pi2c, u8 sta_bit, u8 truefalse)
{ {
...@@ -144,7 +144,7 @@ int readSpdData (u8 * spdData) ...@@ -144,7 +144,7 @@ int readSpdData (u8 * spdData)
break; break;
} }
pi2cReg->adr = 0x90; /* I2C device address */ pi2cReg->adr = CFG_I2C_SLAVE<<1;
pi2cReg->cr = I2C_CTL_EN; /* Set Enable */ pi2cReg->cr = I2C_CTL_EN; /* Set Enable */
...@@ -569,7 +569,7 @@ u32 dramSetup (void) ...@@ -569,7 +569,7 @@ u32 dramSetup (void)
cfg_value |= CFG1_SWT2RWP ((type == TYPE_DDR) ? 7 : 2); cfg_value |= CFG1_SWT2RWP ((type == TYPE_DDR) ? 7 : 2);
/* Set the Read CAS latency. We're going to use a CL of /* Set the Read CAS latency. We're going to use a CL of
* 2 for DDR and SDR. * 2.5 for DDR and 2 SDR.
*/ */
cfg_value |= CFG1_RLATENCY ((type == TYPE_DDR) ? 7 : 2); cfg_value |= CFG1_RLATENCY ((type == TYPE_DDR) ? 7 : 2);
...@@ -685,10 +685,14 @@ u32 dramSetup (void) ...@@ -685,10 +685,14 @@ u32 dramSetup (void)
} }
/* Set up mode value for CAS latency == 2 */ /* Set up mode value for CAS latency */
#if (CFG_SDRAM_CAS_LATENCY==5) /* CL=2.5 */
mode_value = (MODE_MODE | MODE_BURSTLEN (MODE_BURSTLEN_8) |
MODE_BT_SEQUENTIAL | MODE_CL (MODE_CL_2p5) | MODE_CMD);
#else
mode_value = (MODE_MODE | MODE_BURSTLEN (MODE_BURSTLEN_8) | mode_value = (MODE_MODE | MODE_BURSTLEN (MODE_BURSTLEN_8) |
MODE_BT_SEQUENTIAL | MODE_CL (MODE_CL_2) | MODE_CMD); MODE_BT_SEQUENTIAL | MODE_CL (MODE_CL_2) | MODE_CMD);
#endif
asm volatile ("sync"); asm volatile ("sync");
/* Write Extended Mode - enable DLL */ /* Write Extended Mode - enable DLL */
...@@ -698,7 +702,7 @@ u32 dramSetup (void) ...@@ -698,7 +702,7 @@ u32 dramSetup (void)
memctl->mode = (temp >> 16); /* mode */ memctl->mode = (temp >> 16); /* mode */
asm volatile ("sync"); asm volatile ("sync");
/* Write Mode - reset DLL, set CAS latency == 2 */ /* Write Mode - reset DLL, set CAS latency */
temp = mode_value | MODE_OPMODE (MODE_OPMODE_RESETDLL); temp = mode_value | MODE_OPMODE (MODE_OPMODE_RESETDLL);
memctl->mode = (temp >> 16); /* mode */ memctl->mode = (temp >> 16); /* mode */
asm volatile ("sync"); asm volatile ("sync");
......
...@@ -42,30 +42,30 @@ int get_clocks (void) ...@@ -42,30 +42,30 @@ int get_clocks (void)
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
pllcfg_t bus2core[] = { pllcfg_t bus2core[] = {
{0x10, 2, 8}, /* 1 */ {0x02, 2, 8}, /* 1 */
{0x08, 2, 4}, {0x01, 2, 4},
{0x60, 3, 8}, /* 1.5 */ {0x0C, 3, 8}, /* 1.5 */
{0x00, 3, 4}, {0x00, 3, 4},
{0xc0, 3, 2}, {0x18, 3, 2},
{0x28, 4, 4}, /* 2 */ {0x05, 4, 4}, /* 2 */
{0x20, 4, 2}, {0x04, 4, 2},
{0x88, 5, 4}, /* 2.5 */ {0x11, 5, 4}, /* 2.5 */
{0x30, 5, 2}, {0x06, 5, 2},
{0x80, 6, 4}, /* 3 */ {0x10, 6, 4}, /* 3 */
{0x40, 6, 2}, {0x08, 6, 2},
{0x70, 7, 2}, /* 3.5 */ {0x0E, 7, 2}, /* 3.5 */
{0x50, 8, 2}, /* 4 */ {0x0A, 8, 2}, /* 4 */
{0x38, 9, 2}, /* 4.5 */ {0x07, 9, 2}, /* 4.5 */
{0x58, 10, 2}, /* 5 */ {0x0B, 10, 2}, /* 5 */
{0x48, 11, 2}, /* 5.5 */ {0x09, 11, 2}, /* 5.5 */
{0x68, 12, 2}, /* 6 */ {0x0D, 12, 2}, /* 6 */
{0x90, 13, 2}, /* 6.5 */ {0x12, 13, 2}, /* 6.5 */
{0xa0, 14, 2}, /* 7 */ {0x14, 14, 2}, /* 7 */
{0xb0, 15, 2}, /* 7.5 */ {0x16, 15, 2}, /* 7.5 */
{0xe0, 16, 2} /* 8 */ {0x1C, 16, 2} /* 8 */
}; };
u32 hid1; u32 hid1;
int i, size; int i, size, pci2bus;
#if !defined(CFG_MPC8220_CLKIN) #if !defined(CFG_MPC8220_CLKIN)
#error clock measuring not implemented yet - define CFG_MPC8220_CLKIN #error clock measuring not implemented yet - define CFG_MPC8220_CLKIN
...@@ -73,9 +73,12 @@ int get_clocks (void) ...@@ -73,9 +73,12 @@ int get_clocks (void)
gd->inp_clk = CFG_MPC8220_CLKIN; gd->inp_clk = CFG_MPC8220_CLKIN;
/* Bus clock is fixed at 120Mhz for now */ /* Read XLB to PCI(INP) clock multiplier */
/* will do dynamic in the future */ pci2bus = (*((volatile u32 *)PCI_REG_PCIGSCR) &
gd->bus_clk = CFG_MPC8220_CLKIN * 4; PCI_REG_PCIGSCR_PCI2XLB_CLK_MASK)>>PCI_REG_PCIGSCR_PCI2XLB_CLK_BIT;
/* XLB bus clock */
gd->bus_clk = CFG_MPC8220_CLKIN * pci2bus;
/* PCI clock is same as input clock */ /* PCI clock is same as input clock */
gd->pci_clk = CFG_MPC8220_CLKIN; gd->pci_clk = CFG_MPC8220_CLKIN;
...@@ -88,14 +91,13 @@ int get_clocks (void) ...@@ -88,14 +91,13 @@ int get_clocks (void)
asm volatile ("mfspr %0, 1009":"=r" (hid1):); asm volatile ("mfspr %0, 1009":"=r" (hid1):);
size = sizeof (bus2core) / sizeof (pllcfg_t); size = sizeof (bus2core) / sizeof (pllcfg_t);
hid1 >>= 24;
hid1 >>= 27;
for (i = 0; i < size; i++) for (i = 0; i < size; i++)
if (hid1 == bus2core[i].hid1) { if (hid1 == bus2core[i].hid1) {
gd->cpu_clk = (bus2core[i].multi * gd->bus_clk) >> 1; gd->cpu_clk = (bus2core[i].multi * gd->bus_clk) >> 1;
/* Input Multiplier is determined by MPLL, gd->vco_clk = CFG_MPC8220_SYSPLL_VCO_MULTIPLIER * (gd->pci_clk * bus2core[i].vco_div)/2;
hardcoded for now at 16 */
gd->vco_clk = gd->pci_clk * 16;
break; break;
} }
......
...@@ -111,6 +111,7 @@ boot_warm: ...@@ -111,6 +111,7 @@ boot_warm:
/* MBAR is mirrored into the MBAR SPR */ /* MBAR is mirrored into the MBAR SPR */
mtspr MBAR,r3 mtspr MBAR,r3
mtspr SPRN_SPRG7W,r3
lis r4, CFG_DEFAULT_MBAR@h lis r4, CFG_DEFAULT_MBAR@h
stw r3, 0(r4) stw r3, 0(r4)
#endif /* CFG_DEFAULT_MBAR */ #endif /* CFG_DEFAULT_MBAR */
......
...@@ -47,8 +47,7 @@ int psc_serial_init (void) ...@@ -47,8 +47,7 @@ int psc_serial_init (void)
/* write to CSR: RX/TX baud rate from timers */ /* write to CSR: RX/TX baud rate from timers */
psc->sr_csr = 0xdd000000; psc->sr_csr = 0xdd000000;
psc->mr1_2 = PSC_MR1_BITS_CHAR_8 | PSC_MR1_NO_PARITY | PSC_MR1_RX_RTS; psc->mr1_2 = PSC_MR1_BITS_CHAR_8 | PSC_MR1_NO_PARITY | PSC_MR2_STOP_BITS_1;
psc->mr1_2 = PSC_MR2_STOP_BITS_1 | PSC_MR2_TX_CTS;
/* Setting up BaudRate */ /* Setting up BaudRate */
counter = ((gd->bus_clk / gd->baudrate)) >> 5; counter = ((gd->bus_clk / gd->baudrate)) >> 5;
...@@ -77,7 +76,7 @@ void psc_serial_putc (const char c) ...@@ -77,7 +76,7 @@ void psc_serial_putc (const char c)
serial_putc ('\r'); serial_putc ('\r');
/* Wait for last character to go. */ /* Wait for last character to go. */
while (!(psc->sr_csr & PSC_SR_TXEMT)); while (!(psc->sr_csr & PSC_SR_TXRDY));
psc->xmitbuf[0] = c; psc->xmitbuf[0] = c;
} }
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
/* Input clock running at 30Mhz, read Hid1 for the CPU multiplier to /* Input clock running at 30Mhz, read Hid1 for the CPU multiplier to
determine the CPU speed. */ determine the CPU speed. */
#define CFG_MPC8220_CLKIN 30000000/* ... running at 30MHz */ #define CFG_MPC8220_CLKIN 30000000/* ... running at 30MHz */
#define CFG_MPC8220_SYSPLL_VCO_MULTIPLIER 16 /* VCO multiplier can't be read from any register */
#define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */ #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */
#define BOOTFLAG_WARM 0x02 /* Software reboot */ #define BOOTFLAG_WARM 0x02 /* Software reboot */
...@@ -258,6 +259,12 @@ ...@@ -258,6 +259,12 @@
#define CFG_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */ #define CFG_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */
#define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */ #define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
/* SDRAM configuration */
#define CFG_SDRAM_TOTAL_BANKS 2
#define CFG_SDRAM_SPD_I2C_ADDR 0x51 /* 7bit */
#define CFG_SDRAM_SPD_SIZE 0x40
#define CFG_SDRAM_CAS_LATENCY 4 /* (CL=2)x2 */
/* /*
* Ethernet configuration * Ethernet configuration
*/ */
......
/*
* (C) Copyright 2004
* TsiChung Liew, Freescale Software Engineering, Tsi-Chung.Liew@freescale.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License