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/qsd8250_surf/init.c b/target/qsd8250_surf/init.c
index 08c5470..0b3b0cd 100644
--- a/target/qsd8250_surf/init.c
+++ b/target/qsd8250_surf/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
@@ -143,9 +143,11 @@
 			next_ptr_start_adr = ptn->start + ptn->length;
 		}
 		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);
 }