diff options
author | Chuanxiao.Dong <chuanxiao.dong@intel.com> | 2010-08-06 06:48:21 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-08-06 11:30:00 -0400 |
commit | 66406524e50e32fde0dc01859ad3608ddefe107f (patch) | |
tree | 9ffc02c8565c925d23e84a4d7c0c5e4caf1ebaf8 /drivers/mtd/nand/denali.h | |
parent | 0af18d27c36f28a8807297f21fa22979acd977f3 (diff) |
mtd: denali: Remove device_info_tag structure
Hi David,
I sent 4 patches using my intel email account. If there is any
problem about the format of these patches, I will resend them after
I arrived at home by using my gmail account, and I will keep on
using gmail account to send patches.
Thanks.
>From 242e3bf5e17f54b1df8cf285154a7c7a61ff62e9 Mon Sep 17 00:00:00 2001
From: Chuanxiao Dong <chuanxiao.dong@intel.com>
Date: Fri, 6 Aug 2010 15:29:41 +0800
Subject: [PATCH 1/4] mtd: denali: Remove device_info_tag structure.
Most of the variables in this structure are useless, so just
remove this structure and relevant codes.
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand/denali.h')
-rw-r--r-- | drivers/mtd/nand/denali.h | 43 |
1 files changed, 4 insertions, 39 deletions
diff --git a/drivers/mtd/nand/denali.h b/drivers/mtd/nand/denali.h index 626c915294da..fcac24199d12 100644 --- a/drivers/mtd/nand/denali.h +++ b/drivers/mtd/nand/denali.h | |||
@@ -620,44 +620,6 @@ | |||
620 | #define MIN_MAX_BANK_7__MIN_VALUE 0x0003 | 620 | #define MIN_MAX_BANK_7__MIN_VALUE 0x0003 |
621 | #define MIN_MAX_BANK_7__MAX_VALUE 0x000c | 621 | #define MIN_MAX_BANK_7__MAX_VALUE 0x000c |
622 | 622 | ||
623 | /* flash.h */ | ||
624 | struct device_info_tag { | ||
625 | uint16_t wDeviceMaker; | ||
626 | uint16_t wDeviceID; | ||
627 | uint8_t bDeviceParam0; | ||
628 | uint8_t bDeviceParam1; | ||
629 | uint8_t bDeviceParam2; | ||
630 | uint32_t wDeviceType; | ||
631 | uint32_t wSpectraStartBlock; | ||
632 | uint32_t wSpectraEndBlock; | ||
633 | uint32_t wTotalBlocks; | ||
634 | uint16_t wPagesPerBlock; | ||
635 | uint16_t wPageSize; | ||
636 | uint16_t wPageDataSize; | ||
637 | uint16_t wPageSpareSize; | ||
638 | uint16_t wNumPageSpareFlag; | ||
639 | uint16_t wECCBytesPerSector; | ||
640 | uint32_t wBlockSize; | ||
641 | uint32_t wBlockDataSize; | ||
642 | uint32_t wDataBlockNum; | ||
643 | uint8_t bPlaneNum; | ||
644 | uint16_t wDeviceMainAreaSize; | ||
645 | uint16_t wDeviceSpareAreaSize; | ||
646 | uint16_t wDevicesConnected; | ||
647 | uint16_t wDeviceWidth; | ||
648 | uint16_t wHWRevision; | ||
649 | uint16_t wHWFeatures; | ||
650 | uint16_t wONFIDevFeatures; | ||
651 | uint16_t wONFIOptCommands; | ||
652 | uint16_t wONFITimingMode; | ||
653 | uint16_t wONFIPgmCacheTimingMode; | ||
654 | uint16_t MLCDevice; | ||
655 | uint16_t wSpareSkipBytes; | ||
656 | uint8_t nBitsInPageNumber; | ||
657 | uint8_t nBitsInPageDataSize; | ||
658 | uint8_t nBitsInBlockDataSize; | ||
659 | }; | ||
660 | |||
661 | /* ffsdefs.h */ | 623 | /* ffsdefs.h */ |
662 | #define CLEAR 0 /*use this to clear a field instead of "fail"*/ | 624 | #define CLEAR 0 /*use this to clear a field instead of "fail"*/ |
663 | #define SET 1 /*use this to set a field instead of "pass"*/ | 625 | #define SET 1 /*use this to set a field instead of "pass"*/ |
@@ -784,7 +746,6 @@ struct nand_buf { | |||
784 | struct denali_nand_info { | 746 | struct denali_nand_info { |
785 | struct mtd_info mtd; | 747 | struct mtd_info mtd; |
786 | struct nand_chip nand; | 748 | struct nand_chip nand; |
787 | struct device_info_tag dev_info; | ||
788 | int flash_bank; /* currently selected chip */ | 749 | int flash_bank; /* currently selected chip */ |
789 | int status; | 750 | int status; |
790 | int platform; | 751 | int platform; |
@@ -802,6 +763,10 @@ struct denali_nand_info { | |||
802 | uint32_t irq_status; | 763 | uint32_t irq_status; |
803 | int irq_debug_array[32]; | 764 | int irq_debug_array[32]; |
804 | int idx; | 765 | int idx; |
766 | |||
767 | uint32_t fwblks; /* represent how many blocks FW used */ | ||
768 | uint32_t totalblks; | ||
769 | uint32_t blksperchip; | ||
805 | }; | 770 | }; |
806 | 771 | ||
807 | #endif /*_LLD_NAND_*/ | 772 | #endif /*_LLD_NAND_*/ |