summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2014-11-19 11:37:09 +0100
committerAndreas Schneider <asn@cryptomilk.org>2014-11-24 21:38:29 +0100
commit037879359fe52c28fbc9ef445ce9b05ea31db5df (patch)
treef66e961d42352e775fea9f19bfe6437927c036d0
parentca4a9a096bde7727492fe1f807f6bab088f716dd (diff)
downloadandroid_hardware_samsung-037879359fe52c28fbc9ef445ce9b05ea31db5df.tar.gz
android_hardware_samsung-037879359fe52c28fbc9ef445ce9b05ea31db5df.tar.bz2
android_hardware_samsung-037879359fe52c28fbc9ef445ce9b05ea31db5df.zip
macloader: Add SEMCO3RD and WISOL for BCM4354.
Change-Id: I08f407297a974ec87ae51e4580d1c41a380a46d0
-rw-r--r--macloader/macloader.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/macloader/macloader.cpp b/macloader/macloader.cpp
index 12b7685..c56743a 100644
--- a/macloader/macloader.cpp
+++ b/macloader/macloader.cpp
@@ -33,7 +33,9 @@ enum Type {
NONE,
MURATA,
SEMCOSH,
- SEMCOVE
+ SEMCOVE,
+ SEMCO3RD,
+ WISOL
};
int main() {
@@ -92,6 +94,16 @@ int main() {
type = SEMCOSH;
}
+ /* semco3rd */
+ if (strncasecmp(mac_addr_half, "f4:09:d8", 9) == 0) {
+ type = SEMCO3RD;
+ }
+
+ /* wisol */
+ if (strncasecmp(mac_addr_half, "48:5A:3F", 9) == 0) {
+ type = WISOL;
+ }
+
if (type != NONE) {
/* open cid file */
cidfile = fopen(CID_PATH, "w");
@@ -120,6 +132,14 @@ int main() {
ALOGI("Writing semcove to %s\n", CID_PATH);
ret = fputs("semcove", cidfile);
break;
+ case SEMCO3RD:
+ ALOGI("Writing semco3rd to %s\n", CID_PATH);
+ ret = fputs("semco3rd", cidfile);
+ break;
+ case WISOL:
+ ALOGI("Writing wisol to %s\n", CID_PATH);
+ ret = fputs("wisol", cidfile);
+ break;
}
if (ret != 0) {