|
@@ -27,6 +27,7 @@
|
|
|
#include <linux/clk-provider.h>
|
|
|
#include <linux/platform_device.h>
|
|
|
#include <linux/mfd/samsung/s2mps11.h>
|
|
|
+#include <linux/mfd/samsung/s5m8767.h>
|
|
|
#include <linux/mfd/samsung/core.h>
|
|
|
|
|
|
#define s2mps11_name(a) (a->hw.init->name)
|
|
@@ -175,6 +176,9 @@ static int s2mps11_clk_probe(struct platform_device *pdev)
|
|
|
case S2MPS11X:
|
|
|
s2mps11_reg = S2MPS11_REG_RTC_CTRL;
|
|
|
break;
|
|
|
+ case S5M8767X:
|
|
|
+ s2mps11_reg = S5M8767_REG_CTRL1;
|
|
|
+ break;
|
|
|
default:
|
|
|
dev_err(&pdev->dev, "Invalid device type\n");
|
|
|
return -EINVAL;
|
|
@@ -254,6 +258,7 @@ static int s2mps11_clk_remove(struct platform_device *pdev)
|
|
|
|
|
|
static const struct platform_device_id s2mps11_clk_id[] = {
|
|
|
{ "s2mps11-clk", S2MPS11X},
|
|
|
+ { "s5m8767-clk", S5M8767X},
|
|
|
{ },
|
|
|
};
|
|
|
MODULE_DEVICE_TABLE(platform, s2mps11_clk_id);
|