This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

8168 chip select address

Other Parts Discussed in Thread: PMP, TVP5158

Hello

we are using ti 8168  ic with xr16l788 octal comport chip select 1  but I am not able access the chip select please help me.

when we loading the driver xr16l788.ko it is hanging.

What is address of chip select 1 ?

bootargs:-

setenv bootfile uImage_DM816X_DVR


setenv bootargs 'mem=254M console=ttyO2,115200n8 noinitrd root=/dev/mmcblk0p2 rw rootfstype=ext3 vram=20M notifyk.vpssm3_sva=0xBFD00000'

setenv bootcmd mmc init;mmc rescan 0; fatload mmc 0 0x81000000 uImage_DM816X_DVR;bootm 0x81000000

U-Boot 2010.06 (Feb 07 2012 - 17:58:10)

DRAM:  2 GiB
Using default environment

MMC:   OMAP SD/MMC: 0
Hit any key to stop autoboot:  0
reading u-boot.bin

198668 bytes read
## Starting application at 0x80800000 ...


U-Boot 2010.06 (Nov 16 2012 - 15:10:17)

TI8168-GP rev 1.1

ARM clk: 987MHz
DDR clk: 796MHz
HDVICP clk: 600MHz
L3 Fast clk: 560MHz
HDVPSS clk: 280MHz
Ducati M3 clk: 280MHz

I2C:   ready
DRAM:  2 GiB
NAND:  256 MiB
MMC:   OMAP SD/MMC: 0
Net:   No ETH PHY detected!!!
DaVinci EMAC
Hit any key to stop autoboot:  0
UBOOT #
UBOOT #
UBOOT # setenv bootfile uImage_DM816X_DVR
UBOOT # setenv bootargs 'mem=254M console=ttyO2,115200n8 noinitrd root=/dev/mmcblk0p2 rw rootfstype=ext3'
UBOOT # setenv bootcmd mmc init;mmc rescan 0; fatload mmc 0 0x81000000 uImage_DM816X_DVR;bootm 0x81000000
reading uImage_DM816X_DVR

2353668 bytes read
## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   Linux-2.6.37
   Created:      2012-11-16   9:49:16 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2353604 Bytes = 2.2 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Linux version 2.6.37 (root@asif-laptop) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 Fri Nov 16 15:19:10 IST 2012
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: ti8168_dvr
reserved size = 52428800 at 0x0
FB: Reserving 52428800 bytes SDRAM for VRAM
Memory policy: ECC disabled, Data cache writeback
OMAP chip is TI8168 1.1
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 51716
Kernel command line: mem=254M console=ttyO2,115200n8 noinitrd root=/dev/mmcblk0p2 rw rootfstype=ext3
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 204MB = 204MB total
Memory: 201556k/201556k available, 58540k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xd0000000 - 0xf8000000   ( 640 MB)
    lowmem  : 0xc0000000 - 0xcfe00000   ( 254 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0039000   ( 196 kB)
      .text : 0xc0039000 - 0xc0476000   (4340 kB)
      .data : 0xc0476000 - 0xc04b99c0   ( 271 kB)
SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:375
IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
Total of 128 interrupts on 1 active controller
GPMC revision 6.0
Trying to install interrupt handler for IRQ368
Trying to install interrupt handler for IRQ369
Trying to install interrupt handler for IRQ370
Trying to install interrupt handler for IRQ371
Trying to install interrupt handler for IRQ372
Trying to install interrupt handler for IRQ373
Trying to install interrupt handler for IRQ374
Trying to install type control for IRQ375
Trying to set irq flags for IRQ375
OMAP clockevent source: GPTIMER1 at 27000000 Hz
Console: colour dummy device 80x30
Calibrating delay loop... 986.31 BogoMIPS (lpj=4931584)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
omap_voltage_early_init: voltage driver support not added
regulator: core version 0.5
regulator: dummy:
NET: Registered protocol family 16
OMAP GPIO hardware version 0.1
OMAP GPIO hardware version 0.1
omap_mux_init: Add partition: #1: core, flags: 0
3-wired eeprom init done. (H/W ver:00)
_omap_mux_get_by_name: Could not find signal i2c2_scl.i2c2_scl
_omap_mux_get_by_name: Could not find signal i2c2_sda.i2c2_sda
registered ti816x_vpss device
registered TI816x on-chip HDMI device
registered ti816x_sr device
registered ti81xx_vidout device
pm_dbg_init: only OMAP3 supported
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
registerd cppi-dma Intr @ IRQ 17
Cppi41 Init Done
omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
pmbus 1-0038: no platform data supplied
pmbus: probe of 1-0038 failed with error -5
omap_i2c omap_i2c.2: bus 2 rev4.0 at 400 kHz
Advanced Linux Sound Architecture Driver Version 1.0.23.
Switching to clocksource gp timer
musb-hdrc: version 6.0, host, debug=0
musb-hdrc musb-hdrc.0: dma type: dma-cppi41
musb-hdrc: kernel must blacklist external hubs
musb-hdrc musb-hdrc.0: MUSB HDRC host driver
musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 2.6.37 musb-hcd
usb usb1: SerialNumber: musb-hdrc.0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
musb-hdrc musb-hdrc.0: USB Host mode controller at d001e000 using DMA, IRQ 18
musb-hdrc musb-hdrc.1: dma type: dma-cppi41
musb-hdrc: kernel must blacklist external hubs
musb-hdrc musb-hdrc.1: MUSB HDRC host driver
musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: MUSB HDRC host driver
usb usb2: Manufacturer: Linux 2.6.37 musb-hcd
usb usb2: SerialNumber: musb-hdrc.1
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
musb-hdrc musb-hdrc.1: USB Host mode controller at d0028800 using DMA, IRQ 19
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (double precision)
PMU: registered new PMU device of type 0
omap-iommu omap-iommu.0: ducati registered
omap-iommu omap-iommu.1: sys registered
JFFS2 version 2.2. (NAND) ����� 2001-2006 Red Hat, Inc.
msgmni has been set to 393
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
omap_uart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
console [ttyO2] enabled
brd: module loaded
loop: module loaded
ahci ahci.0: forcing PORTS_IMPL to 0x3
ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode
ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc
scsi0 : ahci_platform
scsi1 : ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x100 irq 16
ata2: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x180 irq 16
omap2-nand driver initializing
ONFI flash detected
ONFI param page 0 valid
NAND device: Maf ID: 0x2c, Chip ID: 0xda (Micron, NAND 256MiB 3,3V 8-bit)
 erasesize: 0x20000, writesize: 2048, oobsize: 64
Creating 5 MTD partitions on "omap2-nand.0":
0x000000000000-0x000000240000 : "U-Boot"
0x000000240000-0x000000280000 : "U-Boot Env"
0x000000280000-0x0000006c0000 : "Kernel"
0x0000006c0000-0x0000106c0000 : "File System"
mtd: partition "File System" extends beyond the end of device "omap2-nand.0" -- size truncated to 0xf940000
0x000010000000-0x000010000000 : "Reserved"
mtd: partition "Reserved" is out of reach -- disabled
davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
davinci_mdio davinci_mdio.0: no live phy, scanning all
davinci_mdio: probe of davinci_mdio.0 failed with error -5
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver dm9601
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
rtc-ds1307 1-0068: rtc core: registered ds1337 as rtc0
omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc1
i2c /dev entries driver
Linux video capture interface: v2.00
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v1.0.0)
OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbcore: registered new interface driver snd-usb-audio
number of tvp5158 chips 4
chip address 59,chip address 5d,chip address 5b,chip address 5f,
tvp5158-audio.2-005c initial ok!
asoc: tvp5158-hifi <-> davinci-mcasp.0 mapping ok
asoc: SII9022a-hdmi-codec <-> davinci-mcasp.1 mapping ok
asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok
asoc: HDMI-DAI-CODEC <-> hdmi-dai mapping ok
ALSA device list:
  #0: TI81XX DVR
  #1: TI81XX DVR (HDMI)
TCP cubic registered
NET: Registered protocol family 17
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
omap_voltage_late_init: Voltage driver support not added
Power Management for TI81XX.
smartreflex-ti816x: ti816x_sr_probe done!
davinci_emac_probe: using random MAC addr: de:e5:18:7e:0d:18
davinci_emac_probe: using random MAC addr: 06:fb:f4:10:58:9a
rtc-ds1307 1-0068: setting system clock to 2011-12-07 22:43:48 UTC (1323297828)
mmc0: new SDHC card at address e624
mmcblk0: mmc0:e624 SD04G 3.69 GiB
 mmcblk0: p1 p2 p3
ata1: SATA link down (SStatus 0 SControl 300)
ata2: SATA link down (SStatus 0 SControl 300)
EXT3-fs: barriers not enabled
kjournald starting.  Commit interval 5 seconds
EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
EXT3-fs (mmcblk0p2): using internal journal
EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) on device 179:2.
devtmpfs: mounted
Freeing init memory: 196K
INIT: version 2.86 booting
Please wait: booting...
Error opening /dev/fb0: No such file or directory
Starting udev
udevd (70): /proc/70/oom_adj is deprecated, please use /proc/70/oom_score_adj instead.
Remounting root file system...
Caching udev devnodes
Populating dev cache
ALSA: Restoring mixer settings...
Configuring network interfaces... ifup: ignoring unknown interface eth0
ifup: ignoring unknown interface eth1
done.
Setting up IP spoofing protection: rp_filter.
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting telnet daemon.
Starting syslogd/klogd: done
Starting thttpd.

 _   _ ___  _   _         _
| | | |    | ||| |___ ___| | _ ___
| |_| | |) |  ~  | . |  _| |/_|  -|
|_____|___ /____/ ___|_| |_| _|-__|

DVR_Netra Board (2011.04)

dvr login: root
root@dvr:~# cd /asif
root@dvr:/asif# ls
xr16l788.ko
root@dvr:/asif# insmod xr16l788.ko
Parc Technology
 Mohamed Asif Exar XR16L788 specific serial driver $Revision: 1.0 $ 8 ports, IRQ sharing enabled
parc-ttyXR16l788-0 at I/O 0x1000000 (irq = 5) is a XR16l788
Unable to handle kernel paging request at virtual address 01000001
pgd = cbf28000
[01000001] *pgd=00000000
Internal error: Oops: 805 [#1]
last sysfs file: /sys/kernel/uevent_seqnum
Modules linked in: xr16l788(+)
CPU: 0    Not tainted  (2.6.37 #1)
PC is at serialxr788_pm+0xd8/0xf8 [xr16l788]
LR is at uart_change_pm+0x38/0x40
pc : [<bf000514>]    lr : [<c01c0f7c>]    psr: 80000013
sp : cbca5e70  ip : 00000001  fp : cbca5e84
r10: c04134d3  r9 : cbd04000  r8 : c04134d3
r7 : bf002628  r6 : 00000005  r5 : 00000000  r4 : ffffffff
r3 : 01000000  r2 : 00000000  r1 : 00000000  r0 : bf002628
Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c5387d  Table: 8bf28019  DAC: 00000015
Process insmod (pid: 1176, stack limit = 0xcbca42e8)
Stack: (0xcbca5e70 to 0xcbca6000)
5e60:                                     cbd04000 00000000 cbca5e9c cbca5e88
5e80: c01c0f7c bf000448 00000000 bf002437 cbca5f24 cbca5ea0 c01c13d8 c01c0f50
5ea0: 00000000 cbca5eb8 00000005 bf002451 bf002480 cbd04030 204f2f49 30317830
5ec0: 30303030 cbca0030 c01a8e04 c0100430 bf002480 02800000 cbca5efc cbd0439c
5ee0: cbc0ad80 bf002480 00000008 00000420 cbca5f24 cbca5f00 c01c3018 bf0026f8
5f00: 00000001 00000000 00012018 bf006000 cbca4000 00000000 cbca5f44 cbca5f28
5f20: bf006114 c01c11c8 00000000 bf002504 00012008 00012018 cbca5f7c cbca5f48
5f40: c00393d8 bf00600c bf002504 00012008 00012018 c0043f48 00000000 bf002504
5f60: 00012008 00012018 c0043f48 00000000 cbca5fa4 cbca5f80 c0094a40 c0039314
5f80: c00bf640 c00bf558 00000000 00008000 00000003 00000080 00000000 cbca5fa8
5fa0: c0043da0 c00949b0 00000000 00008000 00012018 000042d7 00012008 00000001
5fc0: 00000000 00008000 00000003 00000080 00012008 00000000 00012018 00000000
5fe0: bef08ea8 bef08c3c 00008da0 401bf7d4 60000010 00012018 00000000 00000000
Backtrace:
[<bf00043c>] (serialxr788_pm+0x0/0xf8 [xr16l788]) from [<c01c0f7c>] (uart_change_pm+0x38/0x40)
 r5:00000000 r4:cbd04000
[<c01c0f44>] (uart_change_pm+0x0/0x40) from [<c01c13d8>] (uart_add_one_port+0x21c/0x30c)
 r5:bf002437 r4:00000000
[<c01c11bc>] (uart_add_one_port+0x0/0x30c) from [<bf006114>] (serialxr788_init+0x114/0x150 [xr16l788])
[<bf006000>] (serialxr788_init+0x0/0x150 [xr16l788]) from [<c00393d8>] (do_one_initcall+0xd0/0x1a4)
 r7:00012018 r6:00012008 r5:bf002504 r4:00000000
[<c0039308>] (do_one_initcall+0x0/0x1a4) from [<c0094a40>] (sys_init_module+0x9c/0x1bc)
[<c00949a4>] (sys_init_module+0x0/0x1bc) from [<c0043da0>] (ret_fast_syscall+0x0/0x30)
 r7:00000080 r6:00000003 r5:00008000 r4:00000000
Code: e5c31001 ea000002 f57ff04f e5903004 (e7cc1003)
---[ end trace 0559899cecd32072 ]---
Segmentation fault
root@dvr:/asif#
 CTRL-A Z for help |115200 8N1 | NOR | Minicom 2.4    | VT102 |      Offline                                                 

Regards

Asif

9845764746