[aboot]: Send serial number for USB enumeration

For eMMC targets, sending product serial number from CID of MMC as
serial number for USB enumeration to kernel as well as for fastboot.
For NAND targets, using target name as serial number.

Change-Id: I9cbf865ba8a7747ad89c7d12461b91d07a8d5403
CRs-Fixed: 276165
diff --git a/target/msm7627_surf/init.c b/target/msm7627_surf/init.c
index f14d029..8a9166f 100644
--- a/target/msm7627_surf/init.c
+++ b/target/msm7627_surf/init.c
@@ -1,7 +1,7 @@
 /*
  * Copyright (c) 2009, Google Inc.
  * All rights reserved.
- * Copyright (c) 2009-2010, Code Aurora Forum. All rights reserved.
+ * Copyright (c) 2009-2011, 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
@@ -277,3 +277,12 @@
 void target_battery_charging_enable(unsigned enable, unsigned disconnect)
 {
 }
+
+#if _EMMC_BOOT
+void target_serialno(unsigned char *buf)
+{
+	unsigned int serialno;
+	serialno =  mmc_get_psn();
+	sprintf(buf,"%x",serialno);
+}
+#endif