From: Aaron B. <aar...@gm...> - 2009-04-29 23:52:15
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am really having a hard time understanding what I'm supposed to be doing to get a device working on the SPI bus with spidev. I compiled the omap3-desktop-image and went to ~/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap"myvers"/git/ and ran make ARCH=arm menuconfig and added userspace spi(spidev) I then copied the .config to ~/overo-oe/user.collection/packages/linux/linux-omap3/overo/defconfig. Now I know that in order to get this to work I am supposed to add my device along the lines of: static struct spi_board_info gumstix_spi_board_info = { .modalias = "spidev", .max_speed_hz = 2000000, .bus_num = 1, .chip_select = 0, }; to a file so that it will show up under /dev. So I found a file ~/overo-oe/tmp/staging/overo-angstrom-linux-gnueabi/kernel/arch/arm/mach-omap2/board-overo.c and in there the following is inside it: static struct spi_board_info overo_spi_board_info[] __initdata = { { .modalias = "ads7846", .bus_num = 1, .chip_select = 0, .max_speed_hz = 1500000, .controller_data = &ads7846_mcspi_config, .irq = OMAP_GPIO_IRQ(OVERO_GPIO_PENDOWN), .platform_data = &ads7846_config, } }; So If I remove this device and add mine (because I want to use chip_select 0 for my device) will the change be reflected in the build or will it get blown away when I compile. Also is there anything else I need to do? Any help would be awesome. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkn46CYACgkQ9BGuy+qe/GE7bgCff4K8vGRpO43T0MCEiigXA7rR 9iYAniCeiYA0gfIhIGqgsGNrvlvXz+uk =o2Mq -----END PGP SIGNATURE----- |