login about faq

Hi Guys,

I want add a SPI driver in Linux kernel3.0.8 on my Panda,and i use below functions in board_omap4panda.c file:

static struct tommy_spi_platform_data tommy_spi_pdata __initdata =

{

.oe_gpio = TOMMY_SPI_OUTPUT_ENABLE,

.oe_inverted = 1,

.pwr_gpio = TOMMY_SPI_PWR,

.irq_flags = 0 / use default flags in the driver /

};

static struct spi_board_info tommy_spi_devices[] __initdata = {

{

.modalias = "tommy_spi",

.bus_num = 1, //use spi1 bus

.chip_select = 0,

.mode = SPI_MODE_0,

.max_speed_hz = 10000000,

.platform_data = &tommy_spi_pdata,

.irq = 0, / will be calculated later /

},

};

static void __init register_tommy_spi_devices(void)

{

printk("<0>" "Tommy:In the function: %s!!!n", FUNCTION);

tommy_spi_devices[0].irq = gpio_to_irq(TOMMY_SPI_INT);

spi_register_board_info(tommy_spi_devices, ARRAY_SIZE(tommy_spi_devices));

}

static void __init omap4_panda_init(void)

{

......

omap4_panda_display_init();

printk("<0>""Tommy SPI Driver Register~");

init_tommy_mux_io(); //add for tommy tp control gpio init

register_tommy_spi_devices();

if (cpu_is_omap446x())

{

......

}

This method is OK in linux kernel2.6.35,but linux kernel3.0.8. I registered SPI driver successfuly ,but when i test the SPI signal use oscilloscope,there is no SPI signal out like CLK ,SIMO. But all signal out is OK in kernel2.6.35.

What is the problem?Please help me ~

Thanks

Tommy

This question is marked "community wiki".

asked 14 Feb, 01:20

Tommy's gravatar image

Tommy
13
accept rate: 0%

edited 04 Apr, 05:35

Michael%20Opdenacker's gravatar image

Michael Opde... ♦♦
440139


Is anybody know what the problem?

link

answered 14 Feb, 19:42

Tommy's gravatar image

Tommy
13
accept rate: 0%

Hi Tommy,

I sent an e-mail yesterday to linaro-kernel@lists.linaro.org to let Linaro kernel developers know about your question.

Unfortunately, it seems that my e-mail is still held for moderation.

I got back to a few people who should be the moderators, or at least know who the moderators are.

I hope we will get an answer in the next hours and days.

Cheers,

Michael.

link

answered 15 Feb, 09:41

Michael%20Opdenacker's gravatar image

Michael Opde... ♦♦
440139
accept rate: 5%

Hi Tommy,

My mistake... My e-mail was delivered yesterday.

Let's hope that someone will be able to help. I know that many Linaro kernel developers are away at the Embedded Linux Conference this week. Be patient...

Cheers,

Michael.

link

answered 15 Feb, 09:55

Michael%20Opdenacker's gravatar image

Michael Opde... ♦♦
440139
accept rate: 5%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×94
×10
×8
×6
×4

Asked: 14 Feb, 01:20

Seen: 169 times

Last updated: 04 Apr, 05:35