Commit 7f8802f2 authored by Akshu Agrawal's avatar Akshu Agrawal Committed by Rafael J. Wysocki

ACPI: APD: Add a fmw property is_raven

Since there is slight difference in AMD RV based soc in misc
clk architecture. The fmw property will help in differentiating
the SoCs.
Signed-off-by: default avatarAkshu Agrawal <akshu.agrawal@amd.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent d9b77361
...@@ -82,6 +82,7 @@ static int misc_check_res(struct acpi_resource *ares, void *data) ...@@ -82,6 +82,7 @@ static int misc_check_res(struct acpi_resource *ares, void *data)
static int fch_misc_setup(struct apd_private_data *pdata) static int fch_misc_setup(struct apd_private_data *pdata)
{ {
struct acpi_device *adev = pdata->adev; struct acpi_device *adev = pdata->adev;
const union acpi_object *obj;
struct platform_device *clkdev; struct platform_device *clkdev;
struct fch_clk_data *clk_data; struct fch_clk_data *clk_data;
struct resource_entry *rentry; struct resource_entry *rentry;
...@@ -98,6 +99,9 @@ static int fch_misc_setup(struct apd_private_data *pdata) ...@@ -98,6 +99,9 @@ static int fch_misc_setup(struct apd_private_data *pdata)
if (ret < 0) if (ret < 0)
return -ENOENT; return -ENOENT;
acpi_dev_get_property(adev, "is-rv", ACPI_TYPE_INTEGER, &obj);
clk_data->is_rv = obj->integer.value;
list_for_each_entry(rentry, &resource_list, node) { list_for_each_entry(rentry, &resource_list, node) {
clk_data->base = devm_ioremap(&adev->dev, rentry->res->start, clk_data->base = devm_ioremap(&adev->dev, rentry->res->start,
resource_size(rentry->res)); resource_size(rentry->res));
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
struct fch_clk_data { struct fch_clk_data {
void __iomem *base; void __iomem *base;
u32 is_rv;
}; };
#endif /* __CLK_FCH_H */ #endif /* __CLK_FCH_H */
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