ARCv2: [vdk] Enable ARC PGU on HS38 VDK
authorAlexey Brodkin <abrodkin@synopsys.com>
Mon, 6 Jun 2016 07:52:51 +0000 (10:52 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Mon, 13 Jun 2016 15:45:17 +0000 (17:45 +0200)
With required ARC PGU updates that allow it to be used on simulation
platforms we may finally utilize ARC PGU in HS38 VDK with modern
Linux kernels.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
arch/arc/boot/dts/vdk_axs10x_mb.dtsi
arch/arc/boot/dts/vdk_hs38_smp.dts
arch/arc/configs/vdk_hs38_smp_defconfig

index 45cd665fca232e80d244afe43239df125b1ac215..99498a4b42161cadaffd530566f28674a16986bf 100644 (file)
                                #clock-cells = <0>;
                        };
 
+                       pguclk: pguclk {
+                               #clock-cells = <0>;
+                               compatible = "fixed-clock";
+                               clock-frequency = <25175000>;
+                       };
                };
 
                ethernet@0x18000 {
                };
 
 /* PGU output directly sent to virtual LCD screen; hdmi controller not modelled */
-               pgu@0x17000 {
-                       compatible = "snps,arcpgufb";
+               pgu@17000 {
+                       compatible = "snps,arcpgu";
                        reg = <0x17000 0x400>;
-                       clock-frequency = <51000000>; /* PGU'clock is initated in init function */
-                       /* interrupts = <5>;   PGU interrupts not used, this vector is used for ps2 below */
+                       clocks = <&pguclk>;
+                       clock-names = "pxlclk";
                };
 
 /* VDK has additional ps2 keyboard/mouse interface integrated in LCD screen model */
index 031a5bc79b3e5751dad2de430d134efc83c2adf5..2ba60c399d99408fbe870e741fd3cd1e60df3602 100644 (file)
@@ -16,6 +16,6 @@
        compatible = "snps,axs103";
 
        chosen {
-               bootargs = "earlycon=uart8250,mmio32,0xe0022000,115200n8 console=tty0 console=ttyS3,115200n8 consoleblank=0";
+               bootargs = "earlycon=uart8250,mmio32,0xe0022000,115200n8 console=tty0 console=ttyS3,115200n8 consoleblank=0 video=640x480-24";
        };
 };
index 52ec315dc5c954722e182a41bd13372618287f2f..969b206d6c67bbbb72ad80edb104946b81197193 100644 (file)
@@ -63,12 +63,9 @@ CONFIG_SERIAL_8250_DW=y
 CONFIG_SERIAL_OF_PLATFORM=y
 # CONFIG_HW_RANDOM is not set
 # CONFIG_HWMON is not set
-CONFIG_FB=y
-CONFIG_ARCPGU_RGB888=y
-CONFIG_ARCPGU_DISPTYPE=0
-# CONFIG_VGA_CONSOLE is not set
+CONFIG_DRM=y
+CONFIG_DRM_ARCPGU=y
 CONFIG_FRAMEBUFFER_CONSOLE=y
-CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
 CONFIG_LOGO=y
 # CONFIG_LOGO_LINUX_MONO is not set
 # CONFIG_LOGO_LINUX_VGA16 is not set