navienginebootldr/inc/bootloader_variantconfig.h
changeset 0 5de814552237
equal deleted inserted replaced
-1:000000000000 0:5de814552237
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 * bsp\hwip_nec_naviengine\ne1_tb_bootloader\inc\bootloader_variantconfig.h
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __CONFIG_H__
       
    22 #define __CONFIG_H__
       
    23 #include <e32cmn.h>
       
    24 #include "naviengine.h"
       
    25 #include "flash_nor.h"
       
    26 #include <d32comm.h>
       
    27 
       
    28 #define PLATFORM_BUILD 5
       
    29 
       
    30 
       
    31 //
       
    32 
       
    33 #define VARIANT_ZIP	_L("NE1_TB.ZIP")
       
    34 #define VARIANT_BIN	_L("NE1_TB.IMG")
       
    35 
       
    36 #define __USE_VARIANT_INIT__
       
    37 
       
    38 #define __USE_LOCAL_DRIVES__
       
    39 //#define __USE_USBMS__				// NaviEngine cannot support USB Mass Storage - no hardware!
       
    40 #define __SUPPORT_UNZIP__			// There is very little reason for any variant not to support zipped images?
       
    41 #define __SUPPORT_FLASH_REPRO__		// NaviEngine has NOR flash support
       
    42 #define __SUPPORT_FLASH_NAND__		// NaviEngine has onboard NAND flash
       
    43 #define __SUPPORT_MEMORY_TEST__
       
    44 
       
    45 #define __SUPPORT_COM0_115200__
       
    46 #define __SUPPORT_COM0_230400__
       
    47 #define __SUPPORT_COM1_115200__
       
    48 #define __SUPPORT_COM1_230400__
       
    49 #define __SUPPORT_COM2_115200__
       
    50 //#define __SUPPORT_COM2_230400__ // NaviEngine cannot run COM2 at 230400
       
    51 //#define __SUPPORT_COM3_115200__ // There is no COM3 on the NaviEngine
       
    52 //#define __SUPPORT_COM3_230400__ // There is no COM3 on the NaviEngine
       
    53 
       
    54 const TInt KUartPortNumber=0;
       
    55 const TInt KYModemGMode=1;
       
    56 
       
    57 // pixel bit size. included in first palette entry only.
       
    58 const TUint KPaletteEntPBS				= 0x3000; // 8bpp as the palette is only written in 8bpp
       
    59 
       
    60 // Colours used in display.cpp
       
    61 // Palette entries are RGB565
       
    62 const TUint KPaletteEntBlack		= 0x0000;
       
    63 const TUint KPaletteEntMidBlue		= 0x0014;
       
    64 const TUint KPaletteEntMidGreen		= 0x0500;
       
    65 const TUint KPaletteEntMidCyan		= 0x0514;
       
    66 const TUint KPaletteEntMidRed		= 0xA000;
       
    67 const TUint KPaletteEntMidMagenta	= 0xA014;
       
    68 const TUint KPaletteEntMidYellow	= 0xA280;
       
    69 const TUint KPaletteEntDimWhite		= 0xA514;
       
    70 const TUint KPaletteEntGray			= 0x528A;
       
    71 const TUint KPaletteEntBlue			= 0x011F;
       
    72 const TUint KPaletteEntGreen		= 0x57EA;
       
    73 const TUint KPaletteEntCyan			= 0x57FF;
       
    74 const TUint KPaletteEntRed			= 0xFA8A;
       
    75 const TUint KPaletteEntMagenta		= 0xFA9F;
       
    76 const TUint KPaletteEntYellow		= 0xFFEA;
       
    77 const TUint KPaletteEntWhite		= 0xFFFF;
       
    78 
       
    79 
       
    80 
       
    81 const TUint32 KUidUBootldrCfgMagic = 0x10273EC7;
       
    82 
       
    83 const TUint KConfigBlockSize = (KFlashEraseBlockSize/4);	// size in words
       
    84 
       
    85 // Structure of the config block in NOR flash
       
    86 struct SBootloaderConfig
       
    87 	{
       
    88 	TUint32 iMagic;
       
    89 	TInt32 iCheckSum;
       
    90 	TInt32 iPortNumber;
       
    91 	TBps   iBaudRate;
       
    92 	TInt32 iLoadDevice;
       
    93 	// update iReserved padding when adding members to the structure!
       
    94 	TInt32 iReserved[KConfigBlockSize-4];
       
    95 	};
       
    96 
       
    97 
       
    98 #endif