Skip to contentSkip to conversation

nand/denali: Add partition support

PATCH In review Chuanxiao.Dong 1 participant 1 message Aug 12, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 4/6 nand/denali: Add partition support

From 8720ac9ac4313e3e0fc460a7371e2339a33d4130 Mon Sep 17 00:00:00 2001
From: Chuanxiao Dong <[email protected]>
Date: Thu, 12 Aug 2010 18:23:59 +0800
Subject: [PATCH 4/6] nand/denali: Add partition support

In MRST platfrom, IAFW is in a protected partition which is created by SCU FW. This partition can not be access by MTD driver. So if did not create partitions in MRST platform, each time access the first several blocks which is in protected partition will cause time out.

User can pass partition info by cmdlinepart. When driver get the partition info from command line, driver will create partitions as command line said if the partition info is invalid(The 1st partition must have a offset which is equal to the size of protected parition). If there is no partition info in command line, driver will create 2 partitions as default.

This feature will not influence CE4100.

---
 drivers/mtd/nand/Kconfig  |    1 +
 drivers/mtd/nand/denali.c |   75 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+), 0 deletions(-)
drivers/mtd/nand/Kconfig +1 -0
index 6aece56..905955b 100644
@@ -75,6 +75,7 @@ choice
 
 config MRST_NAND_CONTROLLER
 	bool "MRST NAND controller"
+	select MTD_PARTITIONS
 	help
 
 config CE4100_NAND_CONTROLLER
drivers/mtd/nand/denali.c +75 -0

100 lines not on this page · raw message

Signature · 1 line
1.6.6.1