I am using a TS7260, not the TS4700, but I had to add the following line
to /etc/modules for the TS-GSM1 to be recognized:
-o ts-gsm1 ts72xx_isa16550 irq=40
This means, of course, that the ts72xx_isa16550 module had to have been
built by the kernel. I had the TS-GSM1 board configured to use IRQ7,
which translated as irq=40 on the main board.
To access the board, I used the following:
int Wavecom_InitializeCellModem(int devmem)
{
volatile unsigned char *pc104base=NULL;
volatile unsigned char *gsmid;
int offset = 0x140;//for JP4=OFF on TS-GSM1
pc104base = (unsigned
char*)mmap(0,getpagesize(),PROT_READ|PROT_WRITE,MAP_SHARED,
devmem,PC104_8BIT_IO);
//check memory map was successful
if (pc104base == MAP_FAILED)
return 0;
//check that the cell modem is present
gsmid = pc104base + offset;
if (*gsmid != 9)
return 0;
//assign global pointer to ON/OFF bit in memory registers for cell phone
OP.gsm_stat = pc104base + offset + 3;
return 1;
}
On 3/9/2012 7:08 AM, ie.mclay wrote:
I'd also like to add the following details:
The TS-GSM1 is setup with its default settings (COM1/IRQ7).
I've attempted the following so far (to no avail):
* Access the PLD board identifier register (should be 0x9):
'peekpoke 8 0x11E0_0000' - returns 0xFF
'peekpoke 8 0x11C0_0000' - returns 0x0
* Changed IRQ and COM port settings (various combinations)
* Tried in both fast-boot and SD environment.
Should I expect to see an entry for the device in the dmesg log?
I notice that the tsuart1.ko kernel module is NOT present. Is this
essential to allow the kernel to recognise the on-board 16C550 UART?
smime.p7s
Description: S/MIME Cryptographic Signature
|