diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-03-03 16:21:06 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-06 16:37:31 -0800 |
commit | 81dee67e215b23f0c98182eece122b906d35765a (patch) | |
tree | 05fef8acfc0e851abc77dc31de0f3cded599347e /drivers/staging/sm750fb/ddk750_help.c | |
parent | c3d6047d95fad6d70894d7ff79d49e47deae41e5 (diff) | |
download | op-kernel-dev-81dee67e215b23f0c98182eece122b906d35765a.zip op-kernel-dev-81dee67e215b23f0c98182eece122b906d35765a.tar.gz |
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.c | 19 |
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 0000000..cc00d2b --- /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"); +} + + |