LK: Add support to write on modem partition
Modem nand layout is different from Android nand layout. This change
updates lk nand driver to write on modem nand partitions.
diff --git a/target/msm7625_ffa/init.c b/target/msm7625_ffa/init.c
index 546cc02..e686d5b 100644
--- a/target/msm7625_ffa/init.c
+++ b/target/msm7625_ffa/init.c
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2009, Google Inc.
* All rights reserved.
- * Copyright (c) 2009, Code Aurora Forum. All rights reserved.
+ * Copyright (c) 2009-2010, Code Aurora Forum. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -119,9 +119,11 @@
if ((len == 0) && (i == num_parts - 1))
len = flash_info->num_blocks - offset - ptn->start;
ptable_add(&flash_ptable, ptn->name, offset + ptn->start,
- len, ptn->flags);
+ len, ptn->flags, TYPE_APPS_PARTITION, PERM_WRITEABLE);
}
+ smem_add_modem_partitions(&flash_ptable);
+
ptable_dump(&flash_ptable);
flash_set_ptable(&flash_ptable);
}