Hi,
Im developing a new platform it uses mcasp0 for play back sound files and mcp23s08 microchip io expander for expanding io count. IO expander is working properly but the problem is when I include below code to my board config file (board-am335xevm.c) I cant play audios. My audio codec is master it is configured properly and clocks are (BCLK and FSK) generated properly but axr0(output audio stream) is not working. Without below codes I can play audio files. (Im using ti-sdk-am335x-evm-06.00.00.00 and kernel is linux-3.2.0-psp04.06.00.11)
Any suggestion please.
Best regards
Emre
#include <linux/spi/mcp23s08.h>
static const struct mcp23s08_platform_data mcp23s08_gpio_info = { //kkk
.chip[0].is_present = true,
.base = 0x80,//kkkx
};
/*
* SPI Flash works at 80Mhz however SPI Controller works at 48MHz.
* So setup Max speed to be less than that of Controller speed
*/
static struct spi_board_info am335x_spi0_slave_info[] __initdata = {
{
.modalias = "mcp23s08", /* Expose spi to userspace */
.platform_data = &mcp23s08_gpio_info,
.max_speed_hz = 1000000, /* SPI Speed. */
.bus_num = 1, /* McSPI Bus Number */
.chip_select = 0, /* ChipSelect for McSPI */
.mode = 0, /* SPI Mode */
},
};
static void __init spi0_init(void)
{
setup_pin_mux(spi0_pin_mux);
spi_register_board_info(am335x_spi0_slave_info, ARRAY_SIZE(am335x_spi0_slave_info));
return;
}
arch_initcall(spi0_init);
//late_initcall(spi0_init)