[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rockbox-cvs
Subject:    funman: r21560 - in trunk/firmware: export target/arm
From:       mailer () svn ! rockbox ! org
Date:       2009-06-29 14:30:17
Message-ID: 200906291430.n5TEUHeB008398 () giant ! haxx ! se
[Download RAW message or body]

Date: 2009-06-29 16:30:12 +0200 (Mon, 29 Jun 2009)
New Revision: 21560

Log Message:
Put TIMER_FREQ definition in CPU-specific config, and remove timer-target.h

Note : SH has TIMER_FREQ defined to CPU_FREQ, so any code wanting it must include #config.h before #cpu.h

Removed:
   trunk/firmware/target/arm/as3525/timer-target.h
   trunk/firmware/target/arm/at91sam/lyre_proto1/timer-target.h
   trunk/firmware/target/arm/imx31/gigabeat-s/timer-target.h
   trunk/firmware/target/arm/pnx0101/timer-target.h
   trunk/firmware/target/arm/s3c2440/gigabeat-fx/timer-target.h
   trunk/firmware/target/arm/tcc77x/timer-target.h
   trunk/firmware/target/arm/tcc780x/timer-target.h
   trunk/firmware/target/arm/timer-target.h
   trunk/firmware/target/arm/tms320dm320/timer-target.h
   trunk/firmware/target/coldfire/timer-target.h
   trunk/firmware/target/mips/ingenic_jz47xx/timer-target.h
   trunk/firmware/target/sh/archos/timer-target.h
Modified:
   trunk/firmware/export/as3525.h
   trunk/firmware/export/at91sam9260.h
   trunk/firmware/export/dm320.h
   trunk/firmware/export/imx31l.h
   trunk/firmware/export/jz4740.h
   trunk/firmware/export/mcf5249.h
   trunk/firmware/export/pnx0101.h
   trunk/firmware/export/pp5002.h
   trunk/firmware/export/pp5020.h
   trunk/firmware/export/s3c2440.h
   trunk/firmware/export/sh7034.h
   trunk/firmware/export/tcc77x.h
   trunk/firmware/export/tcc780x.h
   trunk/firmware/export/timer.h
   trunk/firmware/target/arm/as3525/kernel-as3525.c
   trunk/firmware/target/arm/pnx0101/timer-pnx0101.c
   trunk/firmware/target/arm/s3c2440/gigabeat-fx/wmcodec-meg-fx.c
   trunk/firmware/target/arm/timer-pp.c
   trunk/firmware/target/coldfire/timer-coldfire.c
   trunk/firmware/target/sh/archos/timer-archos.c

Modified: trunk/firmware/export/as3525.h
===================================================================
--- trunk/firmware/export/as3525.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/export/as3525.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -497,4 +497,7 @@
 /* PCM addresses for obtaining buffers will be what DMA is using (physical) */
 #define HAVE_PCM_DMA_ADDRESS
 
+/* Timer frequency */
+#define TIMER_FREQ (24000000 / 16)
+
 #endif /*__AS3525_H__*/

Modified: trunk/firmware/export/at91sam9260.h
===================================================================
--- trunk/firmware/export/at91sam9260.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/export/at91sam9260.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -676,3 +676,7 @@
 #define AT91C_EBI_SDRAM_32BIT    (0x20000000) /* SDRAM on EBI Chip Select 1
 base address */
 #define AT91C_BASE_AIC       0xFFFFF000 /* (AIC) Base Address */
+
+/* Timer frequency */
+/* timer is based on PCLK and minimum division is 2 */
+#define TIMER_FREQ (49156800/2)

Modified: trunk/firmware/export/dm320.h
===================================================================
--- trunk/firmware/export/dm320.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/export/dm320.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -1016,4 +1016,8 @@
 #define VENC_DCLKCTL_DCKIH    (1 << 8)
 #define VENC_DCLKCTL_DCKPW(x) (x << 0)
 
+/* Timer frequency */
+/* timer is based on PCLK and minimum division is 2 */
+#define TIMER_FREQ (27000000)
+
 #endif

Modified: trunk/firmware/export/imx31l.h
===================================================================
--- trunk/firmware/export/imx31l.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/export/imx31l.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -1754,4 +1754,8 @@
 #define UART_FIFO_CTRL          0x881
 #define TIMEOUT                 1000
 
+/* Timer frequency */
+/* timer is based on ipg_clk */
+#define TIMER_FREQ (66000000)
+
 #endif /* __IMX31L_H__ */

Modified: trunk/firmware/export/jz4740.h
===================================================================
--- trunk/firmware/export/jz4740.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/export/jz4740.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -5209,4 +5209,7 @@
 #define USB_NUM_ENDPOINTS  3
 #define USB_DEVBSS_ATTR    IBSS_ATTR
 
+/* Timer frequency */
+#define TIMER_FREQ (CFG_EXTAL) /* For full precision! */
+
 #endif /* __JZ4740_H__ */

Modified: trunk/firmware/export/mcf5249.h
===================================================================
--- trunk/firmware/export/mcf5249.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/export/mcf5249.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -279,5 +279,8 @@
 #define DMA1_REQ_AUDIO_1     0x8000
 #define DMA1_REQ_AUDIO_2     0x8100
 
+/* Timer frequency */
+/* timer is based on busclk == cpuclk/2 */
+#define TIMER_FREQ (CPU_FREQ/2)
 
 #endif

Modified: trunk/firmware/export/pnx0101.h
===================================================================
--- trunk/firmware/export/pnx0101.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/export/pnx0101.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -262,4 +262,7 @@
  
 #endif /* ASM */
 
+/* Timer frequency */
+#define TIMER_FREQ 3000000
+
 #endif

Modified: trunk/firmware/export/pp5002.h
===================================================================
--- trunk/firmware/export/pp5002.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/export/pp5002.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -248,4 +248,8 @@
 #define MMAP3_LOGICAL    (*(volatile unsigned long *)(0xf000f018))
 #define MMAP3_PHYSICAL   (*(volatile unsigned long *)(0xf000f01c))
 
+/* Timer frequency */
+/* Portalplayer chips use a microsecond timer. */
+#define TIMER_FREQ 1000000
+
 #endif

Modified: trunk/firmware/export/pp5020.h
===================================================================
--- trunk/firmware/export/pp5020.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/export/pp5020.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -690,4 +690,8 @@
 #define DMA_INCR_WIDTH_32BIT    (0x2 << 28)
 /* All other values reserved? */
 
+/* Timer frequency */
+/* Portalplayer chips use a microsecond timer. */
+#define TIMER_FREQ 1000000
+
 #endif /* __PP5020_H__ */

Modified: trunk/firmware/export/s3c2440.h
===================================================================
--- trunk/firmware/export/s3c2440.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/export/s3c2440.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -550,4 +550,11 @@
 #define DRAM1 0x31000000
 #define BOOTRAM 0x40000000
 
+/* Timer frequency */
+
+/* timer is based on PCLK and minimum division is 2 */
+#define TIMER_FREQ (49156800/2)
+#define TIMER234_PRESCALE 21
+
+
 #endif /* __S3C2440_H__ */

Modified: trunk/firmware/export/sh7034.h
===================================================================
--- trunk/firmware/export/sh7034.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/export/sh7034.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -370,4 +370,7 @@
 #define SCI_MPB               0x02        /* Multiprocessor bit */
 #define SCI_MPBT              0x01        /* Multiprocessor bit transfer */
 
+/* Timer frequency */
+#define TIMER_FREQ CPU_FREQ
+
 #endif

Modified: trunk/firmware/export/tcc77x.h
===================================================================
--- trunk/firmware/export/tcc77x.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/export/tcc77x.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -261,4 +261,8 @@
 #define USB_NUM_ENDPOINTS 3
 #define USB_DEVBSS_ATTR   IBSS_ATTR
 
+/* Timer frequency */
+/* timers are based on XIN (12Mhz) */
+#define TIMER_FREQ (12000000)
+
 #endif

Modified: trunk/firmware/export/tcc780x.h
===================================================================
--- trunk/firmware/export/tcc780x.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/export/tcc780x.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -249,4 +249,8 @@
 #define USB_NUM_ENDPOINTS 3
 #define USB_DEVBSS_ATTR   IBSS_ATTR
 
+/* Timer frequency */
+/* Timer is based on PCK_TCT (set to 2Mhz in system.c) */
+#define TIMER_FREQ (2000000)
+
 #endif

Modified: trunk/firmware/export/timer.h
===================================================================
--- trunk/firmware/export/timer.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/export/timer.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -24,23 +24,12 @@
 
 #include <stdbool.h>
 #include "config.h"
+#include "cpu.h"
 
 #if defined(SIMULATOR)
- #define TIMER_FREQ 1000000
-#elif CONFIG_CPU == S3C2440 || CONFIG_CPU == DM320 || CONFIG_CPU == TCC7801 \
-      || defined(CPU_TCC77X) || CONFIG_CPU == AS3525 || CONFIG_CPU == IMX31L \
-      || CONFIG_CPU == JZ4732 || CONFIG_CPU == PNX0101 \
-      || defined(CPU_COLDFIRE) || CONFIG_CPU == SH7034 || defined(CPU_PP)
- #include "timer-target.h"
-#else
- #warning "Target without timer-target.h"
+#define TIMER_FREQ 1000000
 #endif
 
-#ifndef TIMER_FREQ
- #warning "TIMER_FREQ not defined"
- #define TIMER_FREQ CPU_FREQ
-#endif
-
 bool timer_register(int reg_prio, void (*unregister_callback)(void),
                     long cycles, void (*timer_callback)(void)
                     IF_COP(,int core));

Modified: trunk/firmware/target/arm/as3525/kernel-as3525.c
===================================================================
--- trunk/firmware/target/arm/as3525/kernel-as3525.c	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/arm/as3525/kernel-as3525.c	2009-06-29 14:30:12 UTC (rev 21560)
@@ -22,7 +22,7 @@
 #include "system.h"
 #include "kernel.h"
 #include "panic.h"
-#include "timer-target.h"
+#include "timer.h"
 
 #ifdef HAVE_SCROLLWHEEL
 /* let the timer interrupt twice as often for the scrollwheel polling */

Deleted: trunk/firmware/target/arm/as3525/timer-target.h
===================================================================
--- trunk/firmware/target/arm/as3525/timer-target.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/arm/as3525/timer-target.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -1,26 +0,0 @@
-/***************************************************************************
-*             __________               __   ___.
-*   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
-*   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
-*   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
-*   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
-*                     \/            \/     \/    \/            \/
-* $Id$
-*
-* Copyright (C) 2008 Rafaël Carré
-*
-* 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 software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
-* KIND, either express or implied.
-*
-****************************************************************************/
-#ifndef TIMER_TARGET_H
-#define TIMER_TARGET_H
-
-#define TIMER_FREQ (24000000 / 16)
-
-#endif /* TIMER_TARGET_H */

Deleted: trunk/firmware/target/arm/at91sam/lyre_proto1/timer-target.h
===================================================================
--- trunk/firmware/target/arm/at91sam/lyre_proto1/timer-target.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/arm/at91sam/lyre_proto1/timer-target.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -1,28 +0,0 @@
-/***************************************************************************
- *             __________               __   ___.
- *   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
- *   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
- *   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
- *   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
- *                     \/            \/     \/    \/            \/
- *
- *
- * Copyright (C) 2009 by Jorge Pinto
- *
- * 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 software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
- * KIND, either express or implied.
- *
- ****************************************************************************/
-
-#ifndef TIMER_TARGET_H
-#define TIMER_TARGET_H
-
-/* timer is based on PCLK and minimum division is 2 */
-#define TIMER_FREQ (49156800/2)
-
-#endif /* TIMER_TARGET_H */

Deleted: trunk/firmware/target/arm/imx31/gigabeat-s/timer-target.h
===================================================================
--- trunk/firmware/target/arm/imx31/gigabeat-s/timer-target.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/arm/imx31/gigabeat-s/timer-target.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -1,27 +0,0 @@
-/***************************************************************************
-*             __________               __   ___.
-*   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
-*   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
-*   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
-*   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
-*                     \/            \/     \/    \/            \/
-* $Id$
-*
-* Copyright (C) 2009 by Michael Sevakis
-*
-* 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 software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
-* KIND, either express or implied.
-*
-****************************************************************************/
-#ifndef TIMER_TARGET_H
-#define TIMER_TARGET_H
-
-/* timer is based on ipg_clk */
-#define TIMER_FREQ (66000000)
-
-#endif /* TIMER_TARGET_H */

Modified: trunk/firmware/target/arm/pnx0101/timer-pnx0101.c
===================================================================
--- trunk/firmware/target/arm/pnx0101/timer-pnx0101.c	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/arm/pnx0101/timer-pnx0101.c	2009-06-29 14:30:12 UTC (rev 21560)
@@ -19,7 +19,6 @@
 *
 ****************************************************************************/
 
-#include "timer-target.h"
 #include "system.h"
 #include "timer.h"
 

Deleted: trunk/firmware/target/arm/pnx0101/timer-target.h
===================================================================
--- trunk/firmware/target/arm/pnx0101/timer-target.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/arm/pnx0101/timer-target.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -1,26 +0,0 @@
-/***************************************************************************
-*             __________               __   ___.
-*   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
-*   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
-*   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
-*   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
-*                     \/            \/     \/    \/            \/
-* $Id$
-*
-* Copyright (C) 2007 Tomasz Malesinski
-*
-* 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 software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
-* KIND, either express or implied.
-*
-****************************************************************************/
-#ifndef TIMER_TARGET_H
-#define TIMER_TARGET_H
-
-#define TIMER_FREQ 3000000
-
-#endif /* TIMER_TARGET_H */

Deleted: trunk/firmware/target/arm/s3c2440/gigabeat-fx/timer-target.h
===================================================================
--- trunk/firmware/target/arm/s3c2440/gigabeat-fx/timer-target.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/arm/s3c2440/gigabeat-fx/timer-target.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -1,28 +0,0 @@
-/***************************************************************************
-*             __________               __   ___.
-*   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
-*   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
-*   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
-*   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
-*                     \/            \/     \/    \/            \/
-* $Id$
-*
-* Copyright (C) 2007 by Michael Sevakis
-*
-* 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 software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
-* KIND, either express or implied.
-*
-****************************************************************************/
-#ifndef TIMER_TARGET_H
-#define TIMER_TARGET_H
-
-/* timer is based on PCLK and minimum division is 2 */
-#define TIMER_FREQ (49156800/2)
-#define TIMER234_PRESCALE 21
-
-#endif /* TIMER_TARGET_H */

Modified: trunk/firmware/target/arm/s3c2440/gigabeat-fx/wmcodec-meg-fx.c
===================================================================
--- trunk/firmware/target/arm/s3c2440/gigabeat-fx/wmcodec-meg-fx.c	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/arm/s3c2440/gigabeat-fx/wmcodec-meg-fx.c	2009-06-29 14:30:12 UTC (rev 21560)
@@ -30,7 +30,7 @@
 #include "sound.h"
 #include "i2c-meg-fx.h"
 #include "system-target.h"
-#include "timer-target.h"
+#include "timer.h"
 #include "wmcodec.h"
 
 #ifdef HAVE_HARDWARE_BEEP

Deleted: trunk/firmware/target/arm/tcc77x/timer-target.h
===================================================================
--- trunk/firmware/target/arm/tcc77x/timer-target.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/arm/tcc77x/timer-target.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -1,27 +0,0 @@
-/***************************************************************************
-*             __________               __   ___.
-*   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
-*   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
-*   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
-*   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
-*                     \/            \/     \/    \/            \/
-* $Id$
-*
-* Copyright (C) 2007 by Karl Kurbjun
-*
-* 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 software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
-* KIND, either express or implied.
-*
-****************************************************************************/
-#ifndef TIMER_TARGET_H
-#define TIMER_TARGET_H
-
-/* timers are based on XIN (12Mhz) */
-#define TIMER_FREQ (12000000)
-
-#endif /* TIMER_TARGET_H */

Deleted: trunk/firmware/target/arm/tcc780x/timer-target.h
===================================================================
--- trunk/firmware/target/arm/tcc780x/timer-target.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/arm/tcc780x/timer-target.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -1,27 +0,0 @@
-/***************************************************************************
-*             __________               __   ___.
-*   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
-*   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
-*   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
-*   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
-*                     \/            \/     \/    \/            \/
-* $Id$
-*
-* Copyright (C) 2007 by Karl Kurbjun
-*
-* 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 software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
-* KIND, either express or implied.
-*
-****************************************************************************/
-#ifndef TIMER_TARGET_H
-#define TIMER_TARGET_H
-
-/* Timer is based on PCK_TCT (set to 2Mhz in system.c) */
-#define TIMER_FREQ (2000000)
-
-#endif /* TIMER_TARGET_H */

Modified: trunk/firmware/target/arm/timer-pp.c
===================================================================
--- trunk/firmware/target/arm/timer-pp.c	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/arm/timer-pp.c	2009-06-29 14:30:12 UTC (rev 21560)
@@ -22,7 +22,6 @@
 #include "cpu.h"
 #include "system.h"
 #include "timer.h"
-#include "timer-target.h"
 
 static long SHAREDBSS_ATTR cycles_new = 0;
 

Deleted: trunk/firmware/target/arm/timer-target.h
===================================================================
--- trunk/firmware/target/arm/timer-target.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/arm/timer-target.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -1,34 +0,0 @@
-/***************************************************************************
-*             __________               __   ___.
-*   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
-*   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
-*   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
-*   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
-*                     \/            \/     \/    \/            \/
-* $Id$
-*
-* Copyright (C) 2006 Thom Johansen
-*
-* 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 software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
-* KIND, either express or implied.
-*
-****************************************************************************/
-#ifndef TIMER_TARGET_H
-#define TIMER_TARGET_H
-
-#include "config.h"
-
-/* FIXME : this header is PP specific */
-#ifndef CPU_PP
-#error "PP specific header"
-#endif
-
-/* Portalplayer chips use a microsecond timer. */
-#define TIMER_FREQ 1000000
-
-#endif /* TIMER_TARGET_H */

Deleted: trunk/firmware/target/arm/tms320dm320/timer-target.h
===================================================================
--- trunk/firmware/target/arm/tms320dm320/timer-target.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/arm/tms320dm320/timer-target.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -1,27 +0,0 @@
-/***************************************************************************
-*             __________               __   ___.
-*   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
-*   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
-*   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
-*   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
-*                     \/            \/     \/    \/            \/
-* $Id$
-*
-* Copyright (C) 2007 by Karl Kurbjun
-*
-* 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 software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
-* KIND, either express or implied.
-*
-****************************************************************************/
-#ifndef TIMER_TARGET_H
-#define TIMER_TARGET_H
-
-/* timer is based on PCLK and minimum division is 2 */
-#define TIMER_FREQ (27000000)
-
-#endif /* TIMER_TARGET_H */

Modified: trunk/firmware/target/coldfire/timer-coldfire.c
===================================================================
--- trunk/firmware/target/coldfire/timer-coldfire.c	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/coldfire/timer-coldfire.c	2009-06-29 14:30:12 UTC (rev 21560)
@@ -25,7 +25,6 @@
 #include "system.h"
 #include "cpu.h"
 #include "timer.h"
-#include "timer-target.h"
 
 static int base_prescale;
 

Deleted: trunk/firmware/target/coldfire/timer-target.h
===================================================================
--- trunk/firmware/target/coldfire/timer-target.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/coldfire/timer-target.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -1,27 +0,0 @@
-/***************************************************************************
-*             __________               __   ___.
-*   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
-*   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
-*   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
-*   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
-*                     \/            \/     \/    \/            \/
-* $Id$
-*
-* Copyright (C) 2005 Jens Arnold
-*
-* 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 software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
-* KIND, either express or implied.
-*
-****************************************************************************/
-#ifndef TIMER_TARGET_H
-#define TIMER_TARGET_H
-
-/* timer is based on busclk == cpuclk/2 */
-#define TIMER_FREQ (CPU_FREQ/2)
-
-#endif /* TIMER_TARGET_H */

Deleted: trunk/firmware/target/mips/ingenic_jz47xx/timer-target.h
===================================================================
--- trunk/firmware/target/mips/ingenic_jz47xx/timer-target.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/mips/ingenic_jz47xx/timer-target.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -1,29 +0,0 @@
-/***************************************************************************
- *             __________               __   ___.
- *   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
- *   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
- *   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
- *   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
- *                     \/            \/     \/    \/            \/
- * $Id$
- *
- * Copyright (C) 2008 by Maurus Cuelenaere
- *
- * 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 software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
- * KIND, either express or implied.
- *
- ****************************************************************************/
-
-#ifndef __TIMER_H_
-#define __TIMER_H_
-
-#include "config.h"
-
-#define TIMER_FREQ (CFG_EXTAL) /* For full precision! */
-
-#endif /* __TIMER_H_ */

Modified: trunk/firmware/target/sh/archos/timer-archos.c
===================================================================
--- trunk/firmware/target/sh/archos/timer-archos.c	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/sh/archos/timer-archos.c	2009-06-29 14:30:12 UTC (rev 21560)
@@ -22,7 +22,6 @@
 #include "cpu.h"
 #include "system.h"
 #include "timer.h"
-#include "timer-target.h"
 
 void IMIA4(void) __attribute__((interrupt_handler));
 void IMIA4(void)

Deleted: trunk/firmware/target/sh/archos/timer-target.h
===================================================================
--- trunk/firmware/target/sh/archos/timer-target.h	2009-06-29 14:29:57 UTC (rev 21559)
+++ trunk/firmware/target/sh/archos/timer-target.h	2009-06-29 14:30:12 UTC (rev 21560)
@@ -1,28 +0,0 @@
-/***************************************************************************
-*             __________               __   ___.
-*   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
-*   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
-*   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
-*   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
-*                     \/            \/     \/    \/            \/
-* $Id$
-*
-* Copyright (C) 2005 Jens Arnold
-*
-* 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 software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
-* KIND, either express or implied.
-*
-****************************************************************************/
-#ifndef TIMER_TARGET_H
-#define TIMER_TARGET_H
-
-#include "config.h"
-
-#define TIMER_FREQ CPU_FREQ
-
-#endif /* TIMER_TARGET_H */

_______________________________________________
rockbox-cvs mailing list
rockbox-cvs@cool.haxx.se
http://cool.haxx.se/cgi-bin/mailman/listinfo/rockbox-cvs

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic