-
Notifications
You must be signed in to change notification settings - Fork 18
[Documentation] Help to add support for SiLabs chips #32
Comments
Hello Basic architecture : three components
The ioctl are handled in function bcm_drv_unlocked_ioctl (main_driver.c).
At the end of the configuration of the phone lines in function bcm_phone_mgr_start() (phone/phone_mgr.c), a timer is started that run every 10ms : it polls phone line status, fills and empties DMA buffers used by PCM... (function bcm_phone_mgr_timer_work_fn() in file phone/phone_mgr.c)) To add a new board :
I hope my answer will help you. If you have other questions i will try to answer more quickly. |
Hi, Right now I'm focusing on the PCM bus! Does you know in what mode the PCM bus is configured? What is the: |
Yes ioctl and a memory mapped region for voice samples
Configuration and status query of the Microsemi chip is done via the SPI bus, and only the voice samples are sent or received with the PCM bus.
What is your device exactly ? |
AFIK the PCM bus can be set into multiples modes, my chip run with TDM.
AGPF with SI3215 chips. As you see it's to Microsemi based so I have to edit a lot of stuff! I'm creating a DTS based driver so I'm tring to undertand how to init the PCM bus in the correct way. I don't need the special SPI driver to toggle CS each byte. I have a dahdi driver for an atheros with a similar codec chip (to mine) which is lot simpler to edit that, than add support for SiLab to your driver. (siLab API are closed source and they have a blob for that) |
Could you explain to me what are thoose two values: To me they have no sense. |
I developped the driver without any documentation, only with an include file that i found in an open source driver, that contains constants for accessing the register of the PCM controller https://github.com/Noltari/cfe_bcm63xx/blob/master/shared/broadcom/include/bcm963xx/6358_map.h. |
I also don't have any Source available. I'm using your work. The point is the fact that the channel width in the PCM should be always 16bit or 8 bit. |
Hello I'd like to know if your project has made some progress. Thank you |
Hi, I had low progress due to my low available time. My end goad is to use DTS to define the configs for bloth the slic and the PCM interfaces. |
Hi,
I would create a driver for the SiLabs chips.
I have read a bit of this driver source but I cannot fully understand the flow path.
Can you provide me a starting point?
The text was updated successfully, but these errors were encountered: