view src/condat3/frame/config/gprsconst.h @ 638:cab2f315827e

FFS dev.c: added Spansion PL032J to the "generic" table With the discovery of first GTM900 and then Tango, it now appears that Openmoko was not the only manuf after all who kept TI's TCS211 firmware largely intact (as opposed to changing it beyond all recognition like Compal, Chi-Mei and BenQ did), thus we are now getting new "alien" targets on which we reuse the original manuf's FFS with IMEI and RF calibration tables as if it were native. On these targets we use the original device table for FFS, even though we previously thought that it would never apply to any target other than dsample, leonardo and gtamodem. We have previously added Samsung K5L33xxCAM (a new kind of multi-ID device) to the generic table to support its use in Huawei GTM900-B modules; now we got news that some slightly older GTM900-B specimen used S71PL032J instead, so we are now adding PL032J as well.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 30 Jan 2020 17:45:48 +0000
parents c8bd5a927942
children
line wrap: on
line source

/*
+-----------------------------------------------------------------------------
|  Project :
|  Modul   :
+-----------------------------------------------------------------------------
|  Copyright 2002 Texas Instruments Berlin, AG
|                 All rights reserved.
|
|                 This file is confidential and a trade secret of Texas
|                 Instruments Berlin, AG
|                 The receipt of or possession of this file does not convey
|                 any rights to reproduce or disclose its contents or to
|                 manufacture, use, or sell anything it may describe, in
|                 whole, or in part, without the specific written consent of
|                 Texas Instruments Berlin, AG.
+-----------------------------------------------------------------------------
|  Purpose :  Constants to determine the dimensions of the frame
+-----------------------------------------------------------------------------
*/

#ifndef GPRSCONST_H
#define GPRSCONST_H
#include "chipset.cfg"
#include "swconfig.cfg"

#ifdef MAX_EVENT_GROUPS
#undef MAX_EVENT_GROUPS
#endif

#if (CHIPSET==15) && (REMU==1)
#if (LOCOSTO_LITE==1)
#define MAX_REMU_SIMULTANEOUS_TIMER      15
#define MAX_REMU_ENTITIES                15
#define MAX_REMU_OS_TASKS               15
#define MAX_REMU_SEMAPHORES              15
#define MAX_REMU_EVENT_GROUPS 15
#else
#define MAX_REMU_SIMULTANEOUS_TIMER      30
#define MAX_REMU_ENTITIES                30
#define MAX_REMU_OS_TASKS               30
#if (RELIANCE_FS==1)
#if ((DATALIGHT_NOR==1) && (DATALIGHT_NAND==1))
#define MAX_REMU_SEMAPHORES              90
#else
#define MAX_REMU_SEMAPHORES              75
#endif
#else
#define MAX_REMU_SEMAPHORES              55
#endif
#define MAX_REMU_EVENT_GROUPS 30
#endif
#define MAX_EVENT_GROUPS  		    ( MAX_REMU_ENTITIES + 5 )
#else
#define MAX_REMU_SIMULTANEOUS_TIMER      0
#define MAX_REMU_ENTITIES                0
#define MAX_REMU_OS_TASKS               0
#define MAX_REMU_SEMAPHORES              0
#define MAX_REMU_EVENT_GROUPS 0
#define MAX_EVENT_GROUPS  		   0
#endif



#ifdef BTS  /* BTU is included */
	#ifdef BTT /* BTAV is included */
	#ifdef FMS
	    #define BT_ADAPTER_ADD_ENTITIES   9
	    #define BT_ADAPTER_ADD_OS_TASKS   9
	  #define BT_ADAPTER_ADD_SEMAPHORES  10
	#else
	    #define BT_ADAPTER_ADD_ENTITIES   8
	    #define BT_ADAPTER_ADD_OS_TASKS   8
	    #define BT_ADAPTER_ADD_SEMAPHORES  9
	#endif
	#else
	  #define BT_ADAPTER_ADD_ENTITIES   6
	  #define BT_ADAPTER_ADD_OS_TASKS   6
	  #define BT_ADAPTER_ADD_SEMAPHORES  2
	#endif
#else
#define BT_ADAPTER_ADD_ENTITIES   3
#define BT_ADAPTER_ADD_OS_TASKS   3
#define BT_ADAPTER_ADD_SEMAPHORES 0
#endif



/*==== CONSTANTS ============================================================*/

#define MAX_TIMER                  231
#define MAX_SIMULTANEOUS_TIMER     (50 + MAX_REMU_SIMULTANEOUS_TIMER)


#ifdef FF_BAT /* with GDD_DIO entity */
#if(PSP_STANDALONE==0)
#define MAX_ENTITIES                (39 + MAX_REMU_ENTITIES + BT_ADAPTER_ADD_ENTITIES)
#define MAX_OS_TASKS                (33 + MAX_REMU_OS_TASKS + BT_ADAPTER_ADD_OS_TASKS)
#else
#define MAX_ENTITIES                (2 + MAX_REMU_ENTITIES + 0)
#define MAX_OS_TASKS                (2 + MAX_REMU_OS_TASKS + 0)
#endif
#define MAX_SEMAPHORES              (14+ MAX_REMU_SEMAPHORES + BT_ADAPTER_ADD_SEMAPHORES)
#else
#if(PSP_STANDALONE==0)
#define MAX_ENTITIES                (38 + MAX_REMU_ENTITIES + BT_ADAPTER_ADD_ENTITIES)
#define MAX_OS_TASKS                (32 + MAX_REMU_OS_TASKS + BT_ADAPTER_ADD_OS_TASKS)
#else
#define MAX_ENTITIES                (2 + MAX_REMU_ENTITIES + 0)
#define MAX_OS_TASKS                (2 + MAX_REMU_OS_TASKS + 0)
#endif
#define MAX_SEMAPHORES              (13 + MAX_REMU_SEMAPHORES + BT_ADAPTER_ADD_SEMAPHORES)
#endif /* FF_BAT */

#define MAX_OSISRS                   0
#define MAX_COMMUNICATIONS           MAX_OS_TASKS
#define MAX_POOL_GROUPS              7
#define MAX_MEMORY_POOLS             7

#endif /* GPRSCONST_H */