diff options
Diffstat (limited to 'scripts/mod')
-rw-r--r-- | scripts/mod/devicetable-offsets.c | 3 | ||||
-rw-r--r-- | scripts/mod/file2alias.c | 16 |
2 files changed, 19 insertions, 0 deletions
diff --git a/scripts/mod/devicetable-offsets.c b/scripts/mod/devicetable-offsets.c index f282516acc7b..fce36d0f6898 100644 --- a/scripts/mod/devicetable-offsets.c +++ b/scripts/mod/devicetable-offsets.c | |||
@@ -168,6 +168,9 @@ int main(void) | |||
168 | DEVID_FIELD(amba_id, id); | 168 | DEVID_FIELD(amba_id, id); |
169 | DEVID_FIELD(amba_id, mask); | 169 | DEVID_FIELD(amba_id, mask); |
170 | 170 | ||
171 | DEVID(mips_cdmm_device_id); | ||
172 | DEVID_FIELD(mips_cdmm_device_id, type); | ||
173 | |||
171 | DEVID(x86_cpu_id); | 174 | DEVID(x86_cpu_id); |
172 | DEVID_FIELD(x86_cpu_id, feature); | 175 | DEVID_FIELD(x86_cpu_id, feature); |
173 | DEVID_FIELD(x86_cpu_id, family); | 176 | DEVID_FIELD(x86_cpu_id, family); |
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index e614ef689eee..78691d51a479 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -1109,6 +1109,22 @@ static int do_amba_entry(const char *filename, | |||
1109 | } | 1109 | } |
1110 | ADD_TO_DEVTABLE("amba", amba_id, do_amba_entry); | 1110 | ADD_TO_DEVTABLE("amba", amba_id, do_amba_entry); |
1111 | 1111 | ||
1112 | /* | ||
1113 | * looks like: "mipscdmm:tN" | ||
1114 | * | ||
1115 | * N is exactly 2 digits, where each is an upper-case hex digit, or | ||
1116 | * a ? or [] pattern matching exactly one digit. | ||
1117 | */ | ||
1118 | static int do_mips_cdmm_entry(const char *filename, | ||
1119 | void *symval, char *alias) | ||
1120 | { | ||
1121 | DEF_FIELD(symval, mips_cdmm_device_id, type); | ||
1122 | |||
1123 | sprintf(alias, "mipscdmm:t%02X*", type); | ||
1124 | return 1; | ||
1125 | } | ||
1126 | ADD_TO_DEVTABLE("mipscdmm", mips_cdmm_device_id, do_mips_cdmm_entry); | ||
1127 | |||
1112 | /* LOOKS like cpu:type:x86,venVVVVfamFFFFmodMMMM:feature:*,FEAT,* | 1128 | /* LOOKS like cpu:type:x86,venVVVVfamFFFFmodMMMM:feature:*,FEAT,* |
1113 | * All fields are numbers. It would be nicer to use strings for vendor | 1129 | * All fields are numbers. It would be nicer to use strings for vendor |
1114 | * and feature, but getting those out of the build system here is too | 1130 | * and feature, but getting those out of the build system here is too |