MemoryDevice_T303_SEC_Y2.h 24.3 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724
/*****************************************************************************
*  Copyright Statement:
*  --------------------
*  This software is protected by Copyright and the information contained
*  herein is confidential. The software may not be copied and the information
*  contained herein may not be used or disclosed except with the written
*  permission of MediaTek Inc. (C) 2008
*
*  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
*  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
*  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
*  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
*  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
*  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
*  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
*  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
*  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
*  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
*  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
*  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
*  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
*  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
*  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
*  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
*  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
*  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
*  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
*  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
*  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
*  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/

/*****************************************************************************
 *
 * Filename:
 * ---------
 *   custom_MemoryDevice.h
 *
 * Project:
 * --------
 *   Maui_Software
 *
 * Description:
 * ------------
 *   This Module defines the part number of physical memory device,
 *   and flash logical layout configure.
 *
 * Author:
 * -------
 * -------
 *
 *============================================================================
 *             HISTORY
 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *------------------------------------------------------------------------------
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 *------------------------------------------------------------------------------
 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *============================================================================
 ****************************************************************************/

#ifndef __CUSTOM_MEMORYDEVICE__
#define __CUSTOM_MEMORYDEVICE__

/*
 ****************************************************************************
 [README , VERY IMPORTANT NOTICE]
 --------------------------------
 After user configured this C header file, not only C compiler compile it but
 also auto-gen tool parse user's configure setting.
 Here are recommend configure convention to make both work fine.

 1. All configurations in this file form as #define MACRO_NAME MACRO_VALUE format.
    Note the #define must be the first non-space character of a line

 2. To disable the optional configurable item. Please use // before #define,
    for example: //#define MEMORY_DEVICE_TYPE

 3. Please don't use #if , #elif , #else , #endif conditional macro key word here.
    Such usage might cause compile result conflict with auto-gen tool parsing result.
    Auto-Gen tool will show error and stop.
    3.1.  any conditional keyword such as #if , #ifdef , #ifndef , #elif , #else detected.
          execpt this #ifndef __CUSTOM_MEMORYDEVICE__
    3.2.  any duplicated MACRO_NAME parsed. For example auto-gen tool got 
          2nd MEMORY_DEVICE_TYPE macro value.
 ****************************************************************************
*/

/*
 ****************************************************************************
 Step 1: Specify memory device type and its complete part number
         Possible memory device type: NOR_RAM_MCP, LPSDRAM, NOR_LPSDRAM_MCP, SERIAL_FLASH
 ****************************************************************************
*/
#define MEMORY_DEVICE_TYPE    SERIAL_FLASH
#define CS0_PART_NUMBER       MTKSIP_6261_SF_32_01
#define CS1_PART_NUMBER       MTKSIP_6261_SF_32_01
/*
 ****************************************************************************
 Step 2: Specify part number for each device chosen when COMBO_MEMORY_SUPPORT is enabled
         Please note that this section will only be used when COMBO_MEMORY_SUPPORT is enabled,
         and will be ignored if COMBO_MEMORY_SUPPORT is disabled
 ****************************************************************************
*/
#define COMBO_MEM_ENTRY_COUNT 6
	
#define COMBO_MEM01_CS0_PART_NUMBER MTKSIP_6261_SF_32_03
#define COMBO_MEM01_CS1_PART_NUMBER MTKSIP_6261_SF_32_03
	
#define COMBO_MEM02_CS0_PART_NUMBER MTK_INTERNAL_MX25U12835FZNI_10G_FAKE32Mbits
#define COMBO_MEM02_CS1_PART_NUMBER MTK_INTERNAL_MX25U12835FZNI_10G_FAKE32Mbits
	
#define COMBO_MEM03_CS0_PART_NUMBER MTKSIP_6261_SF_32_04
#define COMBO_MEM03_CS1_PART_NUMBER MTKSIP_6261_SF_32_04

#define COMBO_MEM04_CS0_PART_NUMBER MTKSIP_6261_SF_32_05
#define COMBO_MEM04_CS1_PART_NUMBER MTKSIP_6261_SF_32_05

#define COMBO_MEM05_CS0_PART_NUMBER MTKSIP_6261_SF_32_01
#define COMBO_MEM05_CS1_PART_NUMBER MTKSIP_6261_SF_32_01

#define COMBO_MEM06_CS0_PART_NUMBER MTKSIP_6261_SF_32_02
#define COMBO_MEM06_CS1_PART_NUMBER MTKSIP_6261_SF_32_02




/*
 ****************************************************************************
 Step 3: Specify access type for NOR_RAM_MCP; for LPSDRAM and serial Flash, just assign
         UNDEF_ACCESS to both items (NOR_ACCESS_TYPE and RAM_ACCESS_TYPE)
         Possible access types: ASYNC_ACCESS,
                                SYNC_ACCESS,
                                UNDEF_ACCESS
 ****************************************************************************
*/
#define FLASH_ACCESS_TYPE     ASYNC_ACCESS
#define RAM_ACCESS_TYPE       SYNC_ACCESS

/*
 ****************************************************************************
 Step 4: Define the clock frequency of EMI and SFI

         By default, the highest EMI speed that can be supported by memory will be used 
         (define EMI_CLK to be DEFAULT).
         By specifying EMI_CLK to be ¡§104M¡¨, ¡§52M¡¨, ¡§166M¡¨, or ¡§200M¡¨ can force EMI/memory to be configured
         running at 104MHz, 52MHz, 166MHz, or 200MHz for special purpose.
         Please note that this feature is only available on MT6253D and MT6276! All other chip must set to 
         DEFAULT configuration.
         Available EMI_CLK configurations are:
         MT6253D: 104M, 52M, DEFAULT
         MT6276: 166M, 200M, DEFAULT
         other: DEFAULT

         For SFI, the highest SFI speed that can be supported by memory will be used by default
         (define SFI_CLK to be DEFAULT)
         By specifying SFI_CLK to be "130M", "104M" or "78M" can force SFI to be configured running
         at 130MHz, 104MHz or78MHz for special purpose.
         Please note that this feature is only available for platforms which support Serial Flash!
 ****************************************************************************
*/
#define EMI_CLK                 DEFAULT
#define SFI_CLK                 DEFAULT

/*
 ****************************************************************************
 Step 5: FDM Version Choose

         MTK NOR FDM is upgraded to 5.0 from 2006/Q3 to support large NOR-flash
         disk (multi-bank), for example, disk space larger than 64blocks.
         
         The major difference of NOR FDM 5.0 and NOR FDM 4.0 as below:
         1. RAM consumption
            To manage 32MB INTEL M18 NOR-flash disk, FDM 5.0 consumes 1KB,
            but FDM 4.0 takes 32KB.
         2. Addressable block numbers
            The addressable space of NOR FDM 5.0 is 65K-1 blocks, but NOR FDM 4.0
            is limited at 128-1 blocks.
         3. Idle reclaim and manual reclaim are implemented on NOR FDM 5.0.

         To enable NOR FDM 5.0 on NOR-flash disk, please enable the following 
         definition and customize custom_flash_norfdm5.c; the option is switch on/off 
         at customer site without deliver new library.
         
         [REMIND]
         ========
         To manage small disk space, like smaller than 64 blocks, FDM 4.0 is
         recommended.

 ****************************************************************************
*/
//#define __NOR_FDM5__

/*
 ****************************************************************************
 Step 6: This is an optional step special for NOR-XIP configuration only.
 
         This step configures the FS (file system) region information on NOR FLASH!

         By default, FS region is located the last bank of NOR Flash.
         For specific purpose, user are able to manually configure the
         
         Step 1. Start address of FS region on NOR-flash,
         Step 2. Total FS size on NOR-flash disk
         Step 3. The first drive (or partition) size of FS region. if no additional drive
                 on NOR-flash disk, it should be 0. For more details, please refer to REMIND.
         
         [REMIND]
         ========
         It is special for flash disk which has two drives (or partitions), the
         first leading is user drive, visible on USB disk, the second may be
         system drive, and invisible from USB disk.

         [VERY IMPORTANT NOTICE]
         =======================
         1. Disable this definition and make auto Gen pick default setting from
            Memory Device Excel Database is recommend.
            
         2. Please assign the exact integer value in terms of sectors (one sector equal
            to 512 Bytes) in NOR_BOOTING_NOR_FS_FIRST_DRIVE_SECTORS.
            MUST NOT assign as
            (TOTAL_FS_SIZE - SIZE_OF_SYSTEM_DRIVE), because system will keep
            some spaces for disk management.

 ****************************************************************************
*/

#define NOR_BOOTING_NOR_FS_BASE_ADDRESS 0x003B2000
#define NOR_BOOTING_NOR_FS_SIZE 0x0004E000
#define NOR_BOOTING_NOR_FS_FIRST_DRIVE_SECTORS    40

/*
 ****************************************************************************
 Step 7: For NOR raw disk configuration, if "NOR SUPPORT RAW DISK"
 
         If raw disk feature turns on, user are able to manully config the
         
         Step 1. Number of raw disk region, it should be 1 or 2.
         Step 2. Start address of raw disk region(s)
         Step 3. Total size of raw disk region(s)
         
         [REMIND]
         ========
         If project with __SYSDRV_BACKUP_DISK_RAW__ defined, the first disk
         would be treated as backup partition to backup NVRAM data.

         [VERY IMPORTANT NOTICE]
         =======================
         1. The values in step 1~3 MUST be set if __NOR_SUPPORT_RAW_DISK__ defined
         
         2. The raw disk region and FS region cannot be overlapped
         
         3. Both the start address and size should be block aligned
         
 ****************************************************************************
*/         

//#define NOR_BOOTING_NOR_DISK_NUM             2
//#define NOR_BOOTING_NOR_DISK0_BASE_ADDRESS   0x1C00000
//#define NOR_BOOTING_NOR_DISK0_SIZE         0x200000

//#define NOR_BOOTING_NOR_DISK1_BASE_ADDRESS   0x1E00000
//#define NOR_BOOTING_NOR_DISK1_SIZE         0x1E0000

/*
 ****************************************************************************
 Step 8: For NOR-XIP configuration, if
 
         1. "SYSTEM DRIVE ON NAND" or 
         2. "SYSTEM DRIVE ON NOR" and FOTA "UPDATE PACKAGE ON NAND" 
         
         feature is enabled. Users are responsible to specify FS (file system) region 
         information on NAND-flash here!
         
         Step 1. Start address of FS region on NAND-flash,
         Step 2. Total FS size on NAND-flash disk
         Step 3. The first drive (or partition) size of FS region. if no additional drive
                 on NAND-flash disk, it should be 0. For more details, please refer to REMIND 1 and 2.
            
         For example, on 128MB NAND-flash, because code is already located on NOR flash,
         total 128MB NAND-flash space is reserved for NAND-flash disk. Reserve ~110MB for user drive,
         remain around 15MB for system drive.
         
         #define NOR_BOOTING_NAND_FS_BASE_ADDRESS        0x00000000
         #define NOR_BOOTING_NAND_FS_SIZE                0x08000000  // 128MB
         #define NOR_BOOTING_NAND_FS_FIRST_DRIVE_SECTORS 220000      // 110000KB
         
         [REMIND]
         ========
         1. It is special for flash disk which has two drives (or partitions), the
            first leading is user drive, visible on USB disk, the second may be
            system drive, and invisible from USB disk.
         
         2. For projects with __UP_PKG_ON_NAND__ defined, NOR_BOOTING_NAND_FS_FIRST_DRIVE_SECTORS will
            be ignored. That is, NAND flash is allowed to create only one drive (or partition) in this case.
            
         3. For "SYSTEM DRIVE ON NOR" and FOTA "UPDATE PACKAGE ON NAND" configuration, FOTA
            update package will be located in the top of FS region by default. Auto-Gen will
            reserve required space automatically.

         [VERY IMPORTANT NOTICE]
         =======================
         1. The values in step 1~3 MUST be set if __FS_SYSDRV_ON_NAND__ or __UP_PKG_ON_NAND__ is defined !!
         
         2. The spare area is excluding from the FS SPACE !!
            
         3. Please assign the exact integer value in terms of sectors (one sector equal
            to 512 Bytes) in NOR_BOOTING_NAND_FS_FIRST_DRIVE_SECTORS.
            MUST NOT assign as
            (TOTAL_FS_SIZE - SIZE_OF_SYSTEM_DRIVE), because system will keep
            some spaces for disk management.

 ****************************************************************************
*/

#define NOR_BOOTING_NAND_FS_BASE_ADDRESS           0x00000000
#define NOR_BOOTING_NAND_FS_SIZE                   0x08000000
#define NOR_BOOTING_NAND_FS_FIRST_DRIVE_SECTORS    220000

/*
 ****************************************************************************
 Step 9: This is an optional step special for NFB (NAND-flash Booting)
         system only.

         Users are responsible to specify the drives (or partitions) on NAND-flash,
         
         Step 1. Start address of FS region on NAND-flash,
         Step 2. Total FS size on NAND-flash disk
         Step 3. The first drive (or partition) size of FS region. if no additional drive
                 on NAND-flash disk, it should be 0. For more details, please refer to REMIND.

         For example, on 128MB NAND-flash, code segment occupies 32MB, the
         balanced 96MB is reserved for NAND-flash disk. Reserve ~80MB for user drive,
         remain around 15MB for system drive.

         #define NAND_BOOTING_NAND_FS_BASE_ADDRESS         0x02000000   // 32MB
         #define NAND_BOOTING_NAND_FS_SIZE                 0x06000000   // 96MB
         #define NAND_BOOTING_NAND_FS_FIRST_DRIVE_SECTORS  160000       // 80000KB
         
         [REMIND]
         ========
         It is special for NAND-flash disk which has two drives (or partitions), the
         first leading is user drive, visible on USB disk, the second may be
         system drive or user drive.

         [VERY IMPORTANT NOTICE]
         =======================
         1. All values MUST be set if _NAND_FLASH_BOOTING_ are defined !!
         
         2. The spare area is excluding from the FS SPACE !!
         
         3. Please assign the exact integer value in terms of sectors (one sector equal
            to 512 Bytes) in NAND_BOOTING_NAND_FS_FIRST_DRIVE_SECTORS.
            MUST NOT assign as
            (TOTAL_FS_SIZE - SIZE_OF_SYSTEM_DRIVE), because system will keep
            some spaces for disk management.
 ****************************************************************************
*/

#define NAND_BOOTING_NAND_FS_BASE_ADDRESS         0x02000000
#define NAND_BOOTING_NAND_FS_SIZE                 0x06000000
#define NAND_BOOTING_NAND_FS_FIRST_DRIVE_SECTORS  160000

//#define NAND_BOOTING_NAND_FS_DISK_NUMBER		  	4
//#define NAND_BOOTING_NAND_FS_DISK0_BASE_ADDRESS		0x01800000
//#define NAND_BOOTING_NAND_FS_DISK0_SIZE				0x03800000
//#define NAND_BOOTING_NAND_FS_DISK0_REPLACE_RATIO	20			// Unit is 0.1% . 0 is using default value.
//#define NAND_BOOTING_NAND_FS_DISK1_BASE_ADDRESS		0x05000000
//#define NAND_BOOTING_NAND_FS_DISK1_SIZE				0x00800000
//#define NAND_BOOTING_NAND_FS_DISK1_REPLACE_RATIO	20			// Unit is 0.1% . 0 is using default value.
//#define NAND_BOOTING_NAND_FS_DISK2_BASE_ADDRESS		0x05800000
//#define NAND_BOOTING_NAND_FS_DISK2_SIZE				0x02000000
//#define NAND_BOOTING_NAND_FS_DISK2_REPLACE_RATIO	20			// Unit is 0.1% . 0 is using default value.
//#define NAND_BOOTING_NAND_FS_DISK3_BASE_ADDRESS		0x07800000
//#define NAND_BOOTING_NAND_FS_DISK3_SIZE				0x00800000
//#define NAND_BOOTING_NAND_FS_DISK3_REPLACE_RATIO	20			// Unit is 0.1% . 0 is using default value.
//#define NAND_BOOTING_NAND_FS_DISK4_BASE_ADDRESS		0x00000000
//#define NAND_BOOTING_NAND_FS_DISK4_SIZE				0x00000000
//#define NAND_BOOTING_NAND_FS_DISK4_REPLACE_RATIO	00			// Unit is 0.1% . 0 is using default value.
//#define NAND_BOOTING_NAND_FS_DISK5_BASE_ADDRESS		0x00000000
//#define NAND_BOOTING_NAND_FS_DISK5_SIZE				0x00000000
//#define NAND_BOOTING_NAND_FS_DISK5_REPLACE_RATIO	00			// Unit is 0.1% . 0 is using default value.
//#define NAND_BOOTING_NAND_FS_DISK6_BASE_ADDRESS		0x00000000
//#define NAND_BOOTING_NAND_FS_DISK6_SIZE				0x00000000
//#define NAND_BOOTING_NAND_FS_DISK6_REPLACE_RATIO	00			// Unit is 0.1% . 0 is using default value.
//#define NAND_BOOTING_NAND_FS_DISK7_BASE_ADDRESS		0x00000000
//#define NAND_BOOTING_NAND_FS_DISK7_SIZE				0x00000000
//#define NAND_BOOTING_NAND_FS_DISK7_REPLACE_RATIO	00			// Unit is 0.1% . 0 is using default value.

/*
 ****************************************************************************
 Step 10: This is an optional step special for eMMC booting system only.

         Users are responsible to specify the drives (or partitions) on eMMC,

         Step 1. Start address of FS region on eMMC,
         Step 2. Total FS size on NAND-flash disk
         Step 3. The system drive size of FS region. It must be a positive integer.

         For example, all User Area Partition will be used as FS region, 
         and reserve ~2.5MB for system drive,

         #define EMMC_BOOTING_UP_FS_BASE_ADDRESS         0          // 32MB
         #define EMMC_BOOTING_UP_FS_SIZE                 0          // All User Area Partition will be used as File System
         #define EMMC_BOOTING_UP_FS_SYSTEM_DRIVE_SIZE    5000       // 80000KB

         [VERY IMPORTANT NOTICE]
         =======================
         1. All values MUST be set if __EMMC_BOOTING__ is defined !!

         2. Please assign the exact integer value in terms of sectors (one sector equal
            to 512 Bytes) in EMMC_BOOTING_UP_FS_SYSTEM_DRIVE_SIZE.
 ****************************************************************************/

#define EMMC_BOOTING_GP1_PARTITION_SIZE             0x10000000       // GP is general purpose partition for code
#define EMMC_BOOTING_GP2_PARTITION_SIZE             0       // Reserved now
#define EMMC_BOOTING_GP3_PARTITION_SIZE             0       // Reserved now
#define EMMC_BOOTING_GP4_PARTITION_SIZE             0       // Reserved now
#define EMMC_BOOTING_UP_FS_BASE_ADDRESS             0       // UP is user area partition for file system. File system base address (Range: 0 to 0xFFFF_FFFF_FFFF_FFFF)
#define EMMC_BOOTING_UP_FS_SIZE                     0       // File system size. 0 means the all UP will be used for FS (Range: 0 to 0xFFFF_FFFF_FFFF_FFFF)
#define EMMC_BOOTING_UP_FS_SYSTEM_DRIVE_SIZE        5000    // System drive size (Unit: #Sectors)

#define EMMC_BOOTING_CODE_PARTITION_SIZE            0
#define EMMC_BOOTING_FS_SYSTEM_DRIVE_SIZE           5000

/*
 ****************************************************************************
 Step 11. Enhanced Single Bank NOR Flash Support Configure Parameter

         Modify the size of block erase queue, which is the number of reserved 
         blocks. It is recommended to be 10~20% of TOTAL_BLOCK value.
         This value should be at least 3. Setting value less than 3 will cause errors.
         When FS size is reduced (by configuring NOR_ALLOCATED_FAT_SPACE), 
         set this value to 3 to avoid insufficient system drive space.

         [VERY IMPORTANT NOTICE]
         =======================
         Recommend comment out this value and use default setting.
         Only for Enhanced Single Bank NOR Flash support
 ****************************************************************************
*/
#define NOR_FDM4_ESB_PARAMETER_ERASE_QUEUE_SIZE    3

/*
 ****************************************************************************
 Step 12. Multi Bank NOR Flash Configure Parameter

         Modify the size of system drive reserved blocks. 
         It is recommended to be 10~20% of TOTAL_BLOCK value.
         This value should be at least 3. Setting value less than 3 will cause errors.
         When FS size is reduced (by configuring NOR_ALLOCATED_FAT_SPACE), 
         set this value to 3 to avoid insufficient system drive space.
         The basic unit is 0.5 block. For example, reserved blocks can be set to 3.5 blocks.

         [VERY IMPORTANT NOTICE]
         =======================
         Recommend comment out this value and use default setting.
         Only for Multi Bank NOR Flash configuration
 ****************************************************************************
*/
//#define NOR_PARAMETER_SYSTEM_DRIVE_RESERVED_BLOCK  3


#endif /* __CUSTOM_MEMORYDEVICE__ */