hwspinlock: qcom: add missing regmap config for SFPB MMIO implementation
[linux-2.6-microblaze.git] / drivers / hwspinlock / qcom_hwspinlock.c
index dee7bb5..a0fd67f 100644 (file)
@@ -69,9 +69,18 @@ static const struct hwspinlock_ops qcom_hwspinlock_ops = {
        .unlock         = qcom_hwspinlock_unlock,
 };
 
+static const struct regmap_config sfpb_mutex_config = {
+       .reg_bits               = 32,
+       .reg_stride             = 4,
+       .val_bits               = 32,
+       .max_register           = 0x100,
+       .fast_io                = true,
+};
+
 static const struct qcom_hwspinlock_of_data of_sfpb_mutex = {
        .offset = 0x4,
        .stride = 0x4,
+       .regmap_config = &sfpb_mutex_config,
 };
 
 static const struct regmap_config tcsr_msm8226_mutex_config = {