Commit f4ab169e authored by Martin Hundebøll's avatar Martin Hundebøll Committed by Lee Jones

mfd: intel-m10-bmc: Add N5010 variant

The m10-bmc is used on the Silicom N5010 PAC too, so add it to list of
m10bmc types.
Signed-off-by: default avatarMartin Hundebøll <mhu@silicom.dk>
Acked-by: default avatarMoritz Fischer <mdf@kernel.org>
Reviewed-by: default avatarXu Yilun <yilun.xu@intel.com>
Reviewed-by: default avatarMatthew Gerlach <matthew.gerlach@linux.intel.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent f949a9eb
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
enum m10bmc_type { enum m10bmc_type {
M10_N3000, M10_N3000,
M10_D5005 M10_D5005,
M10_N5010,
}; };
static struct mfd_cell m10bmc_d5005_subdevs[] = { static struct mfd_cell m10bmc_d5005_subdevs[] = {
...@@ -28,6 +29,10 @@ static struct mfd_cell m10bmc_pacn3000_subdevs[] = { ...@@ -28,6 +29,10 @@ static struct mfd_cell m10bmc_pacn3000_subdevs[] = {
{ .name = "n3000bmc-secure" }, { .name = "n3000bmc-secure" },
}; };
static struct mfd_cell m10bmc_n5010_subdevs[] = {
{ .name = "n5010bmc-hwmon" },
};
static const struct regmap_range m10bmc_regmap_range[] = { static const struct regmap_range m10bmc_regmap_range[] = {
regmap_reg_range(M10BMC_LEGACY_BUILD_VER, M10BMC_LEGACY_BUILD_VER), regmap_reg_range(M10BMC_LEGACY_BUILD_VER, M10BMC_LEGACY_BUILD_VER),
regmap_reg_range(M10BMC_SYS_BASE, M10BMC_SYS_END), regmap_reg_range(M10BMC_SYS_BASE, M10BMC_SYS_END),
...@@ -192,6 +197,10 @@ static int intel_m10_bmc_spi_probe(struct spi_device *spi) ...@@ -192,6 +197,10 @@ static int intel_m10_bmc_spi_probe(struct spi_device *spi)
cells = m10bmc_d5005_subdevs; cells = m10bmc_d5005_subdevs;
n_cell = ARRAY_SIZE(m10bmc_d5005_subdevs); n_cell = ARRAY_SIZE(m10bmc_d5005_subdevs);
break; break;
case M10_N5010:
cells = m10bmc_n5010_subdevs;
n_cell = ARRAY_SIZE(m10bmc_n5010_subdevs);
break;
default: default:
return -ENODEV; return -ENODEV;
} }
...@@ -207,6 +216,7 @@ static int intel_m10_bmc_spi_probe(struct spi_device *spi) ...@@ -207,6 +216,7 @@ static int intel_m10_bmc_spi_probe(struct spi_device *spi)
static const struct spi_device_id m10bmc_spi_id[] = { static const struct spi_device_id m10bmc_spi_id[] = {
{ "m10-n3000", M10_N3000 }, { "m10-n3000", M10_N3000 },
{ "m10-d5005", M10_D5005 }, { "m10-d5005", M10_D5005 },
{ "m10-n5010", M10_N5010 },
{ } { }
}; };
MODULE_DEVICE_TABLE(spi, m10bmc_spi_id); MODULE_DEVICE_TABLE(spi, m10bmc_spi_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment