mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
macloader: Add SEMCO3RD and WISOL for BCM4354.
Change-Id: I165f10d339acaa700f3e4e4b6f4576fda1da09a5
This commit is contained in:
parent
d973a7b153
commit
f3ba720f70
1 changed files with 21 additions and 1 deletions
|
@ -33,7 +33,9 @@ enum Type {
|
||||||
NONE,
|
NONE,
|
||||||
MURATA,
|
MURATA,
|
||||||
SEMCOSH,
|
SEMCOSH,
|
||||||
SEMCOVE
|
SEMCOVE,
|
||||||
|
SEMCO3RD,
|
||||||
|
WISOL
|
||||||
};
|
};
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
@ -97,6 +99,16 @@ int main() {
|
||||||
type = SEMCOSH;
|
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) {
|
if (type != NONE) {
|
||||||
/* open cid file */
|
/* open cid file */
|
||||||
cidfile = fopen(CID_PATH, "w");
|
cidfile = fopen(CID_PATH, "w");
|
||||||
|
@ -125,6 +137,14 @@ int main() {
|
||||||
ALOGI("Writing semcove to %s\n", CID_PATH);
|
ALOGI("Writing semcove to %s\n", CID_PATH);
|
||||||
ret = fputs("semcove", cidfile);
|
ret = fputs("semcove", cidfile);
|
||||||
break;
|
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) {
|
if (ret != 0) {
|
||||||
|
|
Loading…
Reference in a new issue