Hi, 
I am using 2.6.10 but my davincifb.c looks a bit different here is the display 
function I have, notice it uses d->mode and d->interface instead of 
dmparams.output and dmparams.format, I tried replacing 'output' and 'format' 
with 'mode' and 'interface' in my bootargs but still no change at the output.

void init_display_function(struct vpbe_display_format *d)
{
        if (d->mode == NON_EXISTING_MODE)
                dm->output_device_config = vpbe_davincifb_dlcd_nonstd_config;
        else if ((d->mode == NTSC) && (d->interface == COMPOSITE))
                dm->output_device_config = davincifb_ntsc_composite_config;
        else if ((d->mode == NTSC) && (d->interface == SVIDEO))
                dm->output_device_config = davincifb_ntsc_svideo_config;
        else if ((d->mode == NTSC) && (d->interface == COMPONENT))
                dm->output_device_config = davincifb_ntsc_component_config;
        else if ((d->mode == PAL) && (d->interface == COMPOSITE))
                dm->output_device_config = davincifb_pal_composite_config;
        else if ((d->mode == PAL) && (d->interface == SVIDEO))
                dm->output_device_config = davincifb_pal_svideo_config;
        else if ((d->mode == PAL) && (d->interface == COMPONENT))
                dm->output_device_config = davincifb_pal_component_config;
        else if ((d->mode == NTSC) && (d->interface == RGB))
                dm->output_device_config = vpbe_davincifb_ntsc_rgb_config;
        else if ((d->mode == PAL) && (d->interface == RGB))
                dm->output_device_config = vpbe_davincifb_pal_rgb_config;
        else if ((d->mode == P525) && (d->interface == COMPONENT))
                dm->output_device_config = vpbe_davincifb_525p_component_config;
        else if ((d->mode == P625) && (d->interface == COMPONENT))
                dm->output_device_config = vpbe_davincifb_625p_component_config;
        else if ((d->mode == DEFAULT_MODE) && (d->interface == YCC16))
                dm->output_device_config = vpbe_davincifb_default_ycc16_config;
        else if ((d->mode == DEFAULT_MODE) && (d->interface == YCC8))
                dm->output_device_config = vpbe_davincifb_default_ycc8_config;
        else if ((d->mode == P480) && (d->interface == PRGB))
                dm->output_device_config = vpbe_davincifb_480p_prgb_config;
        else if ((d->mode == P400) && (d->interface == PRGB))
                dm->output_device_config = vpbe_davincifb_400p_prgb_config;
        else if ((d->mode == P350) && (d->interface == PRGB))
                dm->output_device_config = vpbe_davincifb_350p_prgb_config;
        else if ((d->mode == DEFAULT_MODE) && (d->interface == SRGB))
                dm->output_device_config = vpbe_davincifb_default_srgb_config;
        else if ((d->mode == DEFAULT_MODE) && (d->interface == EPSON))
                dm->output_device_config = vpbe_davincifb_default_epson_config;
        else if ((d->mode == DEFAULT_MODE) && (d->interface == CASIO1G))
                dm->output_device_config = vpbe_davincifb_default_casio_config;
        else if ((d->mode == DEFAULT_MODE) && (d->interface == UDISP))
                dm->output_device_config = vpbe_davincifb_default_UDISP_config;
        else if ((d->mode == DEFAULT_MODE) && (d->interface == STN))
                dm->output_device_config = vpbe_davincifb_default_STN_config;
        /* Add support for other displays       here */
        else {
                dev_err(dm->dev, "Unsupported output    device!\n");
                dm->output_device_config = NULL;
        }
}

Also, when I boot I only see the "Kernel Command Line:..." containing my 
bootargs, I do not see any line along the lines of "DaVinci: Output on NTSC in 
RGB format". I have attached the output of 'dmesg'.
Thanks,
Euan

-----Original Message-----
From: Bernard Blackham [mailto:[EMAIL PROTECTED]
Sent: 09 November 2007 00:01
To: Cochrane, Euan
Cc: Davinci-Linux-Open-Source (E-mail)
Subject: Re: DVEVM RGB SVGA output?


Hi Euan,

Cochrane, Euan wrote:
 > Thanks for your reply. I had a look at the davincifb.c file and saw
 > that there were already configurations for RGB in NTSC and PAL.

Oh? What version of the kernel are you using? I was looking at both 
mvista 2.6.10 and git and saw these:

if ((dmparams.output == NTSC) && (dmparams.format == COMPOSITE))
     dm->output_device_config = davincifb_ntsc_composite_config;
else if ((dmparams.output == NTSC) && (dmparams.format == SVIDEO))
     dm->output_device_config = davincifb_ntsc_svideo_config;
else if ((dmparams.output == NTSC) && (dmparams.format == COMPONENT))
     dm->output_device_config = davincifb_ntsc_component_config;
else if ((dmparams.output == PAL) && (dmparams.format == COMPOSITE))
     dm->output_device_config = davincifb_pal_composite_config;
else if ((dmparams.output == PAL) && (dmparams.format == SVIDEO))
     dm->output_device_config = davincifb_pal_svideo_config;
else if ((dmparams.output == PAL) && (dmparams.format == COMPONENT))
     dm->output_device_config = davincifb_pal_component_config;

FWIW, technically, NTSC and PAL RGB modes just don't make sense - at 
least not to me, as NTSC/PAL are Y/C-based. However in this case they're 
just used as names to identify the config, so use whatever you want :)

 > I'm
 > not sure how to go about setting it up for SVGA but I'll deal with
 > that later. I tried to change the bootargs but I get no change on the
 > output DACs, still composite video... I added to my bootargs
 > "video=davincifb:output=NTSC:format=RGB" is there anyway I can check
 > if the bootargs have been accepted?

At least two places visible when the kernel boots up, and also in the 
output of dmesg. One looks like:

   Kernel command line: mem=120M console=ttyS0,115200n8 root=/dev/hda1 
rw noinitrd ip=dhcp video=dm64xxfb:output=pal

and the other I described earlier:
  DaVinci: Output on NTSC in RGB format ...

 > Is it possible to
 > configure the output from my application?

SPRAAN0 that I posted earlier describes some patches for run-time 
switching of the display parameters.

Cheers,
Bernard.

Linux version 2.6.10_mvl401-davinci_evm ([EMAIL PROTECTED]) (gcc ver
sion 3.4.3 (MontaVista 3.4.3-25.0.30.0501131 2005-07-23)) #11 Thu Oct 25 11:30:5
6 BST 2007                                                                      
CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)                          
CPU0: D VIVT write-back cache                                                   
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets            
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets              
Machine: DaVinci EVM                                                            
Memory policy: ECC disabled, Data cache writeback                               
On node 0 totalpages: 30720                                                     
  DMA zone: 30720 pages, LIFO batch:7                                           
  Normal zone: 0 pages, LIFO batch:1                                            
  HighMem zone: 0 pages, LIFO batch:1                                           
Built 1 zonelists                                                               
Kernel command line: mem=120M console=ttyS0,115200n8 root=/dev/nfs rw noinitrd i
p=10.0.0.2:10.0.0.1:10.0.0.1:255.0.0.0:::off nfsroot=10.0.0.1:/home/davinci/work
dir/filesys,nolock video=davincifb:output=NTSC:format=RGB                       
PID hash table entries: 512 (order: 9, 8192 bytes)                              
Console: colour dummy device 80x30                                              
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)                  
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)                    
Memory: 120MB = 120MB total                                                     
Memory: 119040KB available (2134K code, 453K data, 132K init)                   
Calibrating delay loop... 148.27 BogoMIPS (lpj=741376)                          
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)                      
CPU: Testing write buffer coherency: ok                                         
spawn_desched_task(00000000)                                                    
desched cpu_callback 3/00000000                                                 
ksoftirqd started up.                                                           
desched cpu_callback 2/00000000                                                 
desched thread 0 started up.                                                    
NET: Registered protocol family 16                                              
Registering platform device 'nor_davinci.0'. Parent at platform                 
Registering platform device 'nand_davinci.0'. Parent at platform                
DaVinci I2C DEBUG: 11:01:58 Oct 25 2007                                         
Registering platform device 'i2c'. Parent at platform                           
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.                           
yaffs Oct 25 2007 11:01:32 Installing.                                          
Registering platform device 'davincifb.0'. Parent at platform                   
Console: switching to colour frame buffer device 90x30                          
Registering platform device 'davinci_resizer.2'. Parent at platform             
Registering platform device 'davinci_previewer.2'. Parent at platform           
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled       
Registering platform device 'serial8250'. Parent at platform                    
ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A                                  
io scheduler noop registered                                                    
io scheduler anticipatory registered                                            
RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize           
Registering platform device 'ti_davinci_emac'. Parent at platform               
TI DaVinci EMAC: MAC address is 00:0e:99:02:5a:34                               
TI DaVinci EMAC Linux version updated 4.0                                       
TI DaVinci EMAC: Installed 1 instances.                                         
netconsole: not configured, aborting                                            
i2c /dev entries driver                                                         
Linux video capture interface: v1.00                                            
Registering platform device 'vpfe.1'. Parent at platform                        
DaVinci v4l2 capture driver V1.0 loaded                                         
elevator: using anticipatory as default io scheduler                            
NET: Registered protocol family 2                                               
IP: routing cache hash table of 512 buckets, 4Kbytes                            
TCP: Hash tables configured (established 8192 bind 16384)                       
NET: Registered protocol family 1                                               
NET: Registered protocol family 17                                              
IP-Config: Complete:                                                            
      device=eth0, addr=10.0.0.2, mask=255.0.0.0, gw=10.0.0.1,                  
     host=10.0.0.2, domain=, nis-domain=(none),                                 
     bootserver=10.0.0.1, rootserver=10.0.0.1, rootpath=                        
Looking up port of RPC 100003/2 on 10.0.0.1                                     
Looking up port of RPC 100005/1 on 10.0.0.1                                     
VFS: Mounted root (nfs filesystem).                                             
Freeing init memory: 132K   
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to