Skip to content

Commit 7f8802f

Browse files
Akshu Agrawalrafaeljw
authored andcommitted
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: Akshu Agrawal <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent d9b7736 commit 7f8802f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

drivers/acpi/acpi_apd.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ static int misc_check_res(struct acpi_resource *ares, void *data)
8282
static int fch_misc_setup(struct apd_private_data *pdata)
8383
{
8484
struct acpi_device *adev = pdata->adev;
85+
const union acpi_object *obj;
8586
struct platform_device *clkdev;
8687
struct fch_clk_data *clk_data;
8788
struct resource_entry *rentry;
@@ -98,6 +99,9 @@ static int fch_misc_setup(struct apd_private_data *pdata)
9899
if (ret < 0)
99100
return -ENOENT;
100101

102+
acpi_dev_get_property(adev, "is-rv", ACPI_TYPE_INTEGER, &obj);
103+
clk_data->is_rv = obj->integer.value;
104+
101105
list_for_each_entry(rentry, &resource_list, node) {
102106
clk_data->base = devm_ioremap(&adev->dev, rentry->res->start,
103107
resource_size(rentry->res));

include/linux/platform_data/clk-fch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
struct fch_clk_data {
1414
void __iomem *base;
15+
u32 is_rv;
1516
};
1617

1718
#endif /* __CLK_FCH_H */

0 commit comments

Comments
 (0)