]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - scripts/mod/file2alias.c
MIPS: Add CDMM bus support
[karo-tx-linux.git] / scripts / mod / file2alias.c
index e614ef689eee1f16dc19daf1c00be4460a184f63..78691d51a4797aa319e8ace1a61b2fa8c773e40b 100644 (file)
@@ -1109,6 +1109,22 @@ static int do_amba_entry(const char *filename,
 }
 ADD_TO_DEVTABLE("amba", amba_id, do_amba_entry);
 
+/*
+ * looks like: "mipscdmm:tN"
+ *
+ * N is exactly 2 digits, where each is an upper-case hex digit, or
+ *     a ? or [] pattern matching exactly one digit.
+ */
+static int do_mips_cdmm_entry(const char *filename,
+                             void *symval, char *alias)
+{
+       DEF_FIELD(symval, mips_cdmm_device_id, type);
+
+       sprintf(alias, "mipscdmm:t%02X*", type);
+       return 1;
+}
+ADD_TO_DEVTABLE("mipscdmm", mips_cdmm_device_id, do_mips_cdmm_entry);
+
 /* LOOKS like cpu:type:x86,venVVVVfamFFFFmodMMMM:feature:*,FEAT,*
  * All fields are numbers. It would be nicer to use strings for vendor
  * and feature, but getting those out of the build system here is too