greybus: firmware and svc: detect the difference between ES2 and ES3 chips
authorEli Sennesh <esennesh@leaflabs.com>
Tue, 22 Dec 2015 22:26:57 +0000 (17:26 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 22 Dec 2015 22:38:46 +0000 (14:38 -0800)
commit3563ff88e65e544f09569195b07841dd48d60e57
tree82a22eb215ba8748963c2983c1f2ac50e5cb134b
parent0e9403a0fbf704b40ae80c2379b643caed924a5e
greybus: firmware and svc: detect the difference between ES2 and ES3 chips

The Greybus SVC code needs to read and clear the module boot status upon
hotplug; this requires reading two different attributes depending on whether
we're running on ES2 or ES3.  On Marti Bolivar's (mbolivar@leaflabs.com)
advice, we detect ES2 using the unique ES2_DDBL1_MFR_ID and ES2_DDBL1_PROD_ID
for ES2 hardware, and treat all other chips as ES3 appropriately.  This patch
detects the difference and adds the appropriate definitions for ES3 hardware.

Signed-off-by: Eli Sennesh <esennesh@leaflabs.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/firmware.c
drivers/staging/greybus/greybus_protocols.h
drivers/staging/greybus/svc.c