summaryrefslogtreecommitdiffstats
path: root/drivers/staging/sm750fb/ddk750_help.c
diff options
context:
space:
mode:
authorSudip Mukherjee2015-03-03 11:51:06 +0100
committerGreg Kroah-Hartman2015-03-07 01:37:31 +0100
commit81dee67e215b23f0c98182eece122b906d35765a (patch)
tree05fef8acfc0e851abc77dc31de0f3cded599347e /drivers/staging/sm750fb/ddk750_help.c
parentstaging: sm7xxfb: make vgamode static (diff)
downloadkernel-qcow2-linux-81dee67e215b23f0c98182eece122b906d35765a.tar.gz
kernel-qcow2-linux-81dee67e215b23f0c98182eece122b906d35765a.tar.xz
kernel-qcow2-linux-81dee67e215b23f0c98182eece122b906d35765a.zip
staging: sm750fb: add sm750 to staging
sm750 of Silicon Motion is pci-e display controller device and has features like dual display and 2D acceleration. This patch adds the driver to staging. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb/ddk750_help.c')
-rw-r--r--drivers/staging/sm750fb/ddk750_help.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/staging/sm750fb/ddk750_help.c b/drivers/staging/sm750fb/ddk750_help.c
new file mode 100644
index 000000000000..cc00d2b32436
--- /dev/null
+++ b/drivers/staging/sm750fb/ddk750_help.c
@@ -0,0 +1,19 @@
+//#include "ddk750_reg.h"
+//#include "ddk750_chip.h"
+#include "ddk750_help.h"
+
+volatile unsigned char __iomem * mmio750 = NULL;
+char revId750 = 0;
+unsigned short devId750 = 0;
+
+/* after driver mapped io registers, use this function first */
+void ddk750_set_mmio(volatile unsigned char * addr,unsigned short devId,char revId)
+{
+ mmio750 = addr;
+ devId750 = devId;
+ revId750 = revId;
+ if(revId == 0xfe)
+ printk("found sm750le\n");
+}
+
+