Commit Graph

120 Commits

Author SHA1 Message Date
Sven Schnelle
5cf27e2c53 bcwc_pcie: re-add debug messages 2015-11-22 08:05:16 +01:00
Sven Schnelle
1eeaf7d305 bcwc_pcie: set nice name in v4l2 info 2015-11-22 08:04:48 +01:00
Sven Schnelle
1667a2bc0b bcwc_pcie: remove a few debug messages 2015-11-22 08:02:41 +01:00
Sven Schnelle
91821fc228 first version that actually streams ;-) 2015-11-21 21:58:30 +01:00
Sven Schnelle
10a0652a5d bcwc_pci: add video 4 linux skeleton 2015-11-17 19:57:02 +01:00
Sven Schnelle
703c02342c bcwc_pcie: Fix removal of module
the IRQ workqueue was called after channel info was freed, which was
crashing the kernel sometimes. Also fix the isp powerdown sequence,
to stop ISP properly if firmware crashes.
2015-11-14 20:56:21 +01:00
Sven Schnelle
44ae35299e bcwc_pcie: add basic camera configuration commands 2015-11-09 14:35:17 +01:00
Sven Schnelle
5d5387a52a bcwc_pcie: fix tx queue index reset 2015-11-09 14:21:38 +01:00
Sven Schnelle
9c79ac0863 bcwc_pcie: reset ringbuffer index if current index is above size 2015-11-07 22:34:57 +01:00
Sven Schnelle
c97e4a9172 bcwc_pcie: powerdown cmd doesn't send a response
The old code checked for stop command, which was wrong.
2015-11-03 22:40:32 +01:00
Sven Schnelle
7373fe8cbb bcwc_pcie: Wait for command completion based on events 2015-11-03 22:34:03 +01:00
Sven Schnelle
49d54ff767 bcwc_pcie: add isp command definitions to header file 2015-10-30 22:50:09 +01:00
Sven Schnelle
bc55f7059f add .gitignore 2015-10-30 20:48:26 +01:00
Sven Schnelle
c2fe3a7afb bcwc_pci: switch drv code to dynamic printk 2015-10-30 20:46:58 +01:00
Sven Schnelle
65511bb668 bcwc_pcie: switch isp debug to dynamic printk 2015-10-30 20:43:34 +01:00
Sven Schnelle
bfe4b4bd71 bcwc_pcie: switch ringbuf debug to dynamic printk 2015-10-30 20:37:32 +01:00
Sven Schnelle
07686d56a1 bcwc_pcie: power down hardware 2015-10-29 23:13:29 +01:00
Sven Schnelle
bd4650a2f7 bcwc_pcie: minor irq handling fixes 2015-10-29 22:29:31 +01:00
Sven Schnelle
b1f6b9d8dc bcwc_pcie: stop isp and free memory regions after unload 2015-10-29 22:28:04 +01:00
Sven Schnelle
3e4fc4c1fc bcwc_pcie: add start stop functions for firmware 2015-10-29 22:08:25 +01:00
Sven Schnelle
4373ccf675 bcwc_pcie: prototype irq/ringbuffer handling 2015-10-29 21:59:23 +01:00
Sven Schnelle
092c126af5 bcwc_pcie: release memory regions if a single pci_request_region() fails 2015-10-29 21:51:36 +01:00
Sven Schnelle
9e6f0eb34a bcwc_pcie: add ringbuffer handlign functions 2015-10-29 21:50:57 +01:00
Sven Schnelle
fb8782e240 bcwc_pcie: enable/disable interrupts in SoC 2015-10-26 21:38:16 +01:00
Sven Schnelle
ee3d53047d bcwc_pcie: Check return value of bcwc_hw_init() 2015-10-26 21:21:12 +01:00
Sven Schnelle
6966bb66d6 bcwc_pcie: add waiting for magic value from firmware 2015-10-26 21:19:49 +01:00
Sven Schnelle
e9abeff9fb bcwc_pcie: add channel pointer to private struct 2015-10-26 21:11:30 +01:00
Sven Schnelle
a3f7381da8 Add channel information private struct 2015-10-26 20:51:32 +01:00
Sven Schnelle
01ace6554c bcwc_pcie: set firmware args 2015-10-26 19:52:19 +01:00
Sven Schnelle
568ab1d098 bcwc_pcie: set 0x200 in pci register 0x94 2015-10-26 11:21:58 +01:00
Sven Schnelle
87f54c8095 bcwc_pcie: remove duplicate pci_set_master() 2015-10-26 11:19:32 +01:00
Sven Schnelle
6e8bdbbaf5 bcwc_pcie: also request memory for s2 mem region
and use our own root for the memory resource allocator to prevent
conflicts with system resource memory allocation.
2015-10-26 09:12:02 +01:00
Sven Schnelle
99b97043e7 bcwc_pcie: return status of bcwc_hw_init() 2015-10-25 12:58:12 +01:00
Sven Schnelle
202c347c09 bcwc_pcie: get acpi_handle from device 2015-10-25 12:55:53 +01:00
Patrik Jakobsson
f601690353 Update README.md
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-09-05 18:09:48 +02:00
Patrik Jakobsson
2a6cd585de Don't print ddr regmap
Don't mess up the log. I'll reenable this as debug info later on

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-09-05 14:55:58 +02:00
Patrik Jakobsson
2a3312cd5e Oops, missed some renaming of registers
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-09-05 14:49:06 +02:00
Patrik Jakobsson
4b165e90e3 Fix wrong num_channels vs queue_size
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-09-05 14:48:33 +02:00
Patrik Jakobsson
daf6951cf5 More work on ISP init
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-09-05 14:48:05 +02:00
Patrik Jakobsson
ab3181bffa Preallocate firmware memory at mem init
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-09-05 14:42:08 +02:00
Patrik Jakobsson
084ad77195 Store size and aligned size in memory object
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-09-05 14:38:06 +02:00
Patrik Jakobsson
82eec2c3ea Fix license in some of the files
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-09-05 14:35:35 +02:00
Patrik Jakobsson
ef4efcb4f4 Do pci post on s2 reg writes
For now, lets do pci posts here as well. Will look at this again later.

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-09-05 14:29:54 +02:00
Patrik Jakobsson
796dadb7b1 isp: Add simple S2 memory allocator
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-08-16 22:22:23 +02:00
Patrik Jakobsson
d6c7153ce4 hw: Remove the power on/off sequences
For now we do all the power state handling in the isp code.

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-08-16 19:44:02 +02:00
Patrik Jakobsson
ceb651f86a isp: Load firmware and fix ISP boot
Yay it's booting!!!

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-08-02 14:31:07 +02:00
Patrik Jakobsson
4c233a7f5f isp: Set S2 power through ACPI
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-08-01 17:30:16 +02:00
Patrik Jakobsson
e7c3775956 isp: Move isp code to it's own file
Also rename some registers

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-08-01 17:17:48 +02:00
Patrik Jakobsson
1cd473cf58 bcwc_pcie: Rename some ISP registers
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-07-26 22:55:27 +02:00
Patrik Jakobsson
43d62c379e bcwc_pcie: Move memory verification out of ddr code
Also save the phy ddr registers if test succeeded

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-07-26 22:55:27 +02:00