goldfish_sync: provide a signal to detect reboot

bug: 31498581

This CL adds a "SYNC_REG_INIT" register to detect reboot.
It is to be submitted together with androidemu and qemu2 changes
that actually detect that register.

Change-Id: I20ae355362824508aa86167aea753aef44c866c2
Signed-off-by: Lingfeng Yang <lfy@google.com>
(cherry picked from commit 3122672e123d64803883156b7fcd2abf82261e30)
(cherry picked from commit b44d486da96c42ecc583ca7deced72a43bf60eb2)
diff --git a/drivers/staging/goldfish/goldfish_sync.c b/drivers/staging/goldfish/goldfish_sync.c
index 708c884..cc63c5e 100644
--- a/drivers/staging/goldfish/goldfish_sync.c
+++ b/drivers/staging/goldfish/goldfish_sync.c
@@ -84,6 +84,7 @@
 #define SYNC_REG_BATCH_COMMAND_ADDR_HIGH      0x0c /* 64-bit part */
 #define SYNC_REG_BATCH_GUESTCOMMAND_ADDR      0x10 /* communicate physical address of guest->host commands */
 #define SYNC_REG_BATCH_GUESTCOMMAND_ADDR_HIGH 0x14 /* 64-bit part */
+#define SYNC_REG_INIT                         0x18 /* signals that the device has been probed */
 
 /* There is an ioctl associated with goldfish sync driver.
  * Make it conflict with ioctls that are not likely to be used
@@ -906,6 +907,8 @@
 
 	INFO("goldfish_sync: Initialized goldfish sync device");
 
+	writel(0, sync_state->reg_base + SYNC_REG_INIT);
+
 	return 0;
 }