From: Kyungmin Park Date: Thu, 18 Jun 2009 02:02:31 +0000 (+0900) Subject: [OneNAND] code cleanup X-Git-Tag: s5pc110_universal_support~165 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7d02abeca3573a65bc16dfe8bf0c21f83023b65;p=kernel%2Fu-boot.git [OneNAND] code cleanup Signed-off-by: Kyungmin Park --- diff --git a/drivers/mtd/onenand/lsi_onenand.c b/drivers/mtd/onenand/lsi_onenand.c index 7961075..462dcc4 100644 --- a/drivers/mtd/onenand/lsi_onenand.c +++ b/drivers/mtd/onenand/lsi_onenand.c @@ -367,13 +367,10 @@ static u_int onenand_addr_field(int dev_id, int fba, int fpa, int fsa) case ONENAND_DEVICE_DENSITY_4Gb: if (ddp) { - if (fba < 2048) - ddp = 0; - - mem_addr = ((ddp << ONENAND_DDP_SHIFT_4Gb) | \ - ((fba & ONENAND_FBA_MASK_4Gb_DDP) << ONENAND_FBA_SHIFT) | \ - ((fpa & ONENAND_FPA_MASK) << ONENAND_FPA_SHIFT) | \ - ((fsa & ONENAND_FSA_MASK) << ONENAND_FSA_SHIFT)); + mem_addr = (fba << ONENAND_FBA_SHIFT) | + (fpa << ONENAND_FPA_SHIFT) | + (fsa << ONENAND_FSA_SHIFT); + } else { mem_addr = (((fba & ONENAND_FBA_MASK_4Gb) << ONENAND_FBA_SHIFT) | \ ((fpa & ONENAND_FPA_MASK) << ONENAND_FPA_SHIFT) | \ @@ -426,8 +423,6 @@ static uint onenand_command_address(struct mtd_info *mtd, int cmd_type, int fba, break; } -// printf("%s[%d] cmd_type 0x%x, cmd_addr 0x%x\n", __func__, __LINE__, cmd_type, cmd_addr); - return cmd_addr; }