summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c3b4c53)
Change-Id: I88df540e9822f148703aa07f74fbea59fbbf3350
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
int i = 0;
for(i = 0; i < mali_platform_device->num_resources; i++)
int i = 0;
for(i = 0; i < mali_platform_device->num_resources; i++)
- dev_info(&pdev->dev, "mali_platform_device->resource[%d].start = 0x%08x\n",
- i, mali_platform_device->resource[i].start);
+ dev_info(&pdev->dev,
+ "resource[%d].start = 0x%pa\n",
+ i,
+ &mali_platform_device->resource[i].start);
return scnprintf(buf, PAGE_SIZE, "%u\n", mali_dvfs_utilisation(dev));
}
return scnprintf(buf, PAGE_SIZE, "%u\n", mali_dvfs_utilisation(dev));
}
-static int error_count_show(struct device *dev,
- struct device_attribute *attr,
- char *buf)
+static ssize_t error_count_show(struct device *dev,
+ struct device_attribute *attr,
+ char *buf)
{
return sprintf(buf, "%d\n", mali_group_error);
}
{
return sprintf(buf, "%d\n", mali_group_error);
}
#include <linux/platform_device.h>
#include <linux/version.h>
#include <linux/pm.h>
#include <linux/platform_device.h>
#include <linux/version.h>
#include <linux/pm.h>
#ifdef CONFIG_PM_RUNTIME
#include <linux/pm_runtime.h>
#endif
#ifdef CONFIG_PM_RUNTIME
#include <linux/pm_runtime.h>
#endif
D("mali_platform_device_register() called\n");
D("mali_platform_device_register() called\n");
- /*
- if (cpu_is_rk312x())
- num_pp_cores = 2;
- else if (cpu_is_rk3036())
- */
+ if (of_machine_is_compatible("rockchip,rk3036"))
- /*
- else if (cpu_is_rk3188())
- num_pp_cores = 4;
- else if (cpu_is_rk3228())
+ else if (of_machine_is_compatible("rockchip,rk3228h"))
+ num_pp_cores = 2;
+ else if (of_machine_is_compatible("rockchip,rk3328h"))
+ num_pp_cores = 2;
+ else
D("to add config.");
mali_platform_device_add_config(pdev);
D("to add config.");
mali_platform_device_add_config(pdev);