msm: display: Add rotator bus scaling vectors for 8660/8960
Add rotator bus scaling vectors for 8660 & 8960 targets
Change-Id: I9590fff72a57687b110355e3862d5ac5cf61e0cc
Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8960-display.c b/arch/arm/mach-msm/board-8960-display.c
index 69519f0..3c7878d 100644
--- a/arch/arm/mach-msm/board-8960-display.c
+++ b/arch/arm/mach-msm/board-8960-display.c
@@ -403,6 +403,79 @@
#ifdef CONFIG_MSM_BUS_SCALING
+static struct msm_bus_vectors rotator_init_vectors[] = {
+ {
+ .src = MSM_BUS_MASTER_ROTATOR,
+ .dst = MSM_BUS_SLAVE_EBI_CH0,
+ .ab = 0,
+ .ib = 0,
+ },
+};
+
+static struct msm_bus_vectors rotator_ui_vectors[] = {
+ {
+ .src = MSM_BUS_MASTER_ROTATOR,
+ .dst = MSM_BUS_SLAVE_EBI_CH0,
+ .ab = (1024 * 600 * 4 * 2 * 60),
+ .ib = (1024 * 600 * 4 * 2 * 60 * 1.5),
+ },
+};
+
+static struct msm_bus_vectors rotator_vga_vectors[] = {
+ {
+ .src = MSM_BUS_MASTER_ROTATOR,
+ .dst = MSM_BUS_SLAVE_EBI_CH0,
+ .ab = (640 * 480 * 2 * 2 * 30),
+ .ib = (640 * 480 * 2 * 2 * 30 * 1.5),
+ },
+};
+static struct msm_bus_vectors rotator_720p_vectors[] = {
+ {
+ .src = MSM_BUS_MASTER_ROTATOR,
+ .dst = MSM_BUS_SLAVE_EBI_CH0,
+ .ab = (1280 * 736 * 2 * 2 * 30),
+ .ib = (1280 * 736 * 2 * 2 * 30 * 1.5),
+ },
+};
+
+static struct msm_bus_vectors rotator_1080p_vectors[] = {
+ {
+ .src = MSM_BUS_MASTER_ROTATOR,
+ .dst = MSM_BUS_SLAVE_EBI_CH0,
+ .ab = (1920 * 1088 * 2 * 2 * 30),
+ .ib = (1920 * 1088 * 2 * 2 * 30 * 1.5),
+ },
+};
+
+static struct msm_bus_paths rotator_bus_scale_usecases[] = {
+ {
+ ARRAY_SIZE(rotator_init_vectors),
+ rotator_init_vectors,
+ },
+ {
+ ARRAY_SIZE(rotator_ui_vectors),
+ rotator_ui_vectors,
+ },
+ {
+ ARRAY_SIZE(rotator_vga_vectors),
+ rotator_vga_vectors,
+ },
+ {
+ ARRAY_SIZE(rotator_720p_vectors),
+ rotator_720p_vectors,
+ },
+ {
+ ARRAY_SIZE(rotator_1080p_vectors),
+ rotator_1080p_vectors,
+ },
+};
+
+struct msm_bus_scale_pdata rotator_bus_scale_pdata = {
+ rotator_bus_scale_usecases,
+ ARRAY_SIZE(rotator_bus_scale_usecases),
+ .name = "rotator",
+};
+
static struct msm_bus_vectors mdp_init_vectors[] = {
{
.src = MSM_BUS_MASTER_MDP_PORT0,