From: "Igor M. Liplianin" <liplianin@me.by>
To: Simon Kenyon <simon@koala.ie>
Cc: linux-media@vger.kernel.org
Subject: Re: [linux-dvb] SDMC DM1105N not being detected
Date: Sat, 30 May 2009 20:00:32 +0300 [thread overview]
Message-ID: <200905302000.32353.liplianin@me.by> (raw)
In-Reply-To: <4A1C4AF1.6020200@koala.ie>
[-- Attachment #1: Type: text/plain, Size: 1412 bytes --]
On 26 May 2009 23:02:57 Simon Kenyon wrote:
> Igor M. Liplianin wrote:
> > The card is working with external LNB power supply, for example, through
> > the loop out from another sat box. So, we need to know, which way to
> > control LNB power on the board. Usually it is through GPIO pins.
> > For example:
> > Pins 112 and 111 for GPIO0, GPIO1. Also GPIO15 is at 65 pin.
> > You can edit this lines in code:
> > -*-*-*-*-*-*-*-*-*-*-*-*-
> > /* GPIO's for LNB power control for Axess DM05 */
> > #define DM05_LNB_MASK 0xfffffffc // GPIO
> > control #define DM05_LNB_13V 0x3fffd // GPIO
> > value #define DM05_LNB_18V 0x3fffc // GPIO
> > value -*-*-*-*-*-*-*-*-*-*-*-*-
> >
> > BTW:
> > Bit value 0 for GPIOCTL means output, 1 - input.
> > Bit value for GPIOVAL - read/write.
> > GPIO pins count is 18. Bits over 18 affect nothing.
>
> i will try to work out the correct values
> when i have done so (or given up trying) i will let you know
>
> thank you very much for your help
> --
> simon
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Patch against latest v4l-dvb.
Please, test it.
--
Igor M. Liplianin
Microsoft Windows Free Zone - Linux used for all Computing Tasks
[-- Attachment #2: 11879.patch --]
[-- Type: text/x-diff, Size: 4186 bytes --]
# HG changeset patch
# User Igor M. Liplianin <liplianin@me.by>
# Date 1243702068 -10800
# Node ID 05a77f902a1bc1e740600bc4c6f0a0555a4adb57
# Parent 25bc0580359a71b2661ef0ac30e229b83ce84162
Add support for yet another SDMC DM1105 based DVB-S card.
From: Igor M. Liplianin <liplianin@me.by>
Add support for SDMC DM1105 based DVB-S cards with PCI ID 195d:1105
Signed-off-by: Igor M. Liplianin <liplianin@me.by>
diff -r 25bc0580359a -r 05a77f902a1b linux/drivers/media/dvb/dm1105/dm1105.c
--- a/linux/drivers/media/dvb/dm1105/dm1105.c Fri May 29 17:03:31 2009 -0300
+++ b/linux/drivers/media/dvb/dm1105/dm1105.c Sat May 30 19:47:48 2009 +0300
@@ -51,6 +51,9 @@
#ifndef PCI_VENDOR_ID_TRIGEM
#define PCI_VENDOR_ID_TRIGEM 0x109f
#endif
+#ifndef PCI_VENDOR_ID_AXESS
+#define PCI_VENDOR_ID_AXESS 0x195d
+#endif
#ifndef PCI_DEVICE_ID_DM1105
#define PCI_DEVICE_ID_DM1105 0x036f
#endif
@@ -60,6 +63,9 @@
#ifndef PCI_DEVICE_ID_DW2004
#define PCI_DEVICE_ID_DW2004 0x2004
#endif
+#ifndef PCI_DEVICE_ID_DM05
+#define PCI_DEVICE_ID_DM05 0x1105
+#endif
/* ----------------------------------------------- */
/* sdmc dm1105 registers */
@@ -150,6 +156,11 @@
#define DM1105_LNB_13V 0x00010100
#define DM1105_LNB_18V 0x00000100
+/* GPIO's for LNB power control for Axess DM05 */
+#define DM05_LNB_MASK 0x00000000
+#define DM05_LNB_13V 0x00020000
+#define DM05_LNB_18V 0x00030000
+
static int ir_debug;
module_param(ir_debug, int, 0644);
MODULE_PARM_DESC(ir_debug, "enable debugging information for IR decoding");
@@ -317,6 +328,18 @@
{
struct dm1105dvb *dm1105dvb = frontend_to_dm1105dvb(fe);
+ switch (dm1105dvb->pdev->subsystem_device) {
+ case PCI_DEVICE_ID_DM05:
+ if (voltage == SEC_VOLTAGE_18) {
+ outl(DM05_LNB_MASK, dm_io_mem(DM1105_GPIOCTR));
+ outl(DM05_LNB_18V, dm_io_mem(DM1105_GPIOVAL));
+ } else {
+ /*LNB ON-13V by default!*/
+ outl(DM05_LNB_MASK, dm_io_mem(DM1105_GPIOCTR));
+ outl(DM05_LNB_13V, dm_io_mem(DM1105_GPIOVAL));
+ }
+ break;
+ default:
if (voltage == SEC_VOLTAGE_18) {
outl(DM1105_LNB_MASK, dm_io_mem(DM1105_GPIOCTR));
outl(DM1105_LNB_18V, dm_io_mem(DM1105_GPIOVAL));
@@ -325,6 +348,7 @@
outl(DM1105_LNB_MASK, dm_io_mem(DM1105_GPIOCTR));
outl(DM1105_LNB_13V, dm_io_mem(DM1105_GPIOVAL));
}
+ }
return 0;
}
@@ -600,37 +624,36 @@
switch (dm1105dvb->pdev->subsystem_device) {
case PCI_DEVICE_ID_DW2002:
+ default:
dm1105dvb->fe = dvb_attach(
stv0299_attach, &sharp_z0194a_config,
&dm1105dvb->i2c_adap);
-
if (dm1105dvb->fe) {
dm1105dvb->fe->ops.set_voltage =
dm1105dvb_set_voltage;
dvb_attach(dvb_pll_attach, dm1105dvb->fe, 0x60,
&dm1105dvb->i2c_adap, DVB_PLL_OPERA1);
+ break;
}
- if (!dm1105dvb->fe) {
- dm1105dvb->fe = dvb_attach(
- stv0288_attach, &earda_config,
- &dm1105dvb->i2c_adap);
- if (dm1105dvb->fe) {
- dm1105dvb->fe->ops.set_voltage =
- dm1105dvb_set_voltage;
- dvb_attach(stb6000_attach, dm1105dvb->fe, 0x61,
- &dm1105dvb->i2c_adap);
- }
+ dm1105dvb->fe = dvb_attach(
+ stv0288_attach, &earda_config,
+ &dm1105dvb->i2c_adap);
+ if (dm1105dvb->fe) {
+ dm1105dvb->fe->ops.set_voltage =
+ dm1105dvb_set_voltage;
+ dvb_attach(stb6000_attach, dm1105dvb->fe, 0x61,
+ &dm1105dvb->i2c_adap);
+ break;
}
- if (!dm1105dvb->fe) {
- dm1105dvb->fe = dvb_attach(
- si21xx_attach, &serit_config,
- &dm1105dvb->i2c_adap);
- if (dm1105dvb->fe)
- dm1105dvb->fe->ops.set_voltage =
- dm1105dvb_set_voltage;
- }
+ dm1105dvb->fe = dvb_attach(
+ si21xx_attach, &serit_config,
+ &dm1105dvb->i2c_adap);
+ if (dm1105dvb->fe)
+ dm1105dvb->fe->ops.set_voltage =
+ dm1105dvb_set_voltage;
+
break;
case PCI_DEVICE_ID_DW2004:
dm1105dvb->fe = dvb_attach(
@@ -638,6 +661,7 @@
&dm1105dvb->i2c_adap);
if (dm1105dvb->fe)
dm1105dvb->fe->ops.set_voltage = dm1105dvb_set_voltage;
+
break;
}
@@ -870,6 +894,11 @@
.subvendor = PCI_ANY_ID,
.subdevice = PCI_DEVICE_ID_DW2004,
}, {
+ .vendor = PCI_VENDOR_ID_AXESS,
+ .device = PCI_DEVICE_ID_DM05,
+ .subvendor = PCI_VENDOR_ID_AXESS,
+ .subdevice = PCI_DEVICE_ID_DM05,
+ }, {
/* empty */
},
};
next prev parent reply other threads:[~2009-05-30 17:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-03 4:56 [linux-dvb] SDMC DM1105N not being detected mp3geek
2009-04-03 5:02 ` mp3geek
2009-04-03 15:36 ` Igor M. Liplianin
2009-04-04 4:17 ` mp3geek
2009-05-20 13:44 ` [linux-dvb] " Simon Kenyon
2009-05-23 13:04 ` Igor M. Liplianin
2009-05-25 19:50 ` Simon Kenyon
2009-05-26 14:47 ` Igor M. Liplianin
2009-05-26 20:02 ` Simon Kenyon
[not found] ` <4A1FA9EC.4050405@koala.ie>
2009-05-30 9:44 ` [SOLVED] " Igor M. Liplianin
2009-05-30 16:54 ` Simon Kenyon
2009-05-30 17:15 ` Igor M. Liplianin
2009-05-30 17:00 ` Igor M. Liplianin [this message]
2009-05-31 22:01 ` Igor M. Liplianin
2009-06-01 10:04 ` Simon Kenyon
[not found] ` <4A295F87.50307@koala.ie>
[not found] ` <4A2966EA.8080406@koala.ie>
2009-06-06 8:57 ` Igor M. Liplianin
2009-06-06 20:37 ` Simon Kenyon
2009-06-12 9:05 ` Igor M. Liplianin
2009-06-14 22:49 ` Simon Kenyon
2009-06-15 0:24 ` Igor M. Liplianin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200905302000.32353.liplianin@me.by \
--to=liplianin@me.by \
--cc=linux-media@vger.kernel.org \
--cc=simon@koala.ie \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox