Adding device data structures and registration for Linux driver -
Adding device data structures and registration for Linux driver -
i adding gyro/accel driver (invensense mpu3050), available here kernel (lpc linux). utilize ltib building image , rootfs.
i manage in adding files , driver available , compiles perfectly! need add together mpu3050_platform_data construction in i2c_board_info_structure in "board-generic.c" file (readme) , register adding lines in same "board-generic.c" file.
problem is, cannot locate this/these file/s. name depending on linux distribution? same info written somewhere else?
you need add together file supporting tegra board using. in current 3.0-rc3 kernel (last tag have checked out), see these tegra board files (in arch/arm/mach-tegra):
board-harmony.c board-paz00.c board-seaboard.c board-trimslice.cthese files configure static devices given tegra board. config file selects ones built. here corresponding config options (from arch/arm/mach-tegra/kconfig):
comment "tegra board type" config mach_harmony bool "harmony board" select mach_has_snd_soc_tegra_wm8903 help back upwards nvidia harmony development platform config mach_kaen bool "kaen board" select mach_seaboard select mach_has_snd_soc_tegra_wm8903 help back upwards kaen version of seaboard config mach_paz00 bool "paz00 board" help back upwards toshiba ac100/dynabook az netbook config mach_seaboard bool "seaboard board" select mach_has_snd_soc_tegra_wm8903 help back upwards nvidia seaboard development platform. included of derivative boards have big similarities seaboard design. config mach_trimslice bool "trimslice board" select tegra_pci help back upwards compulab trimslice platform config mach_wario bool "wario board" select mach_seaboard help back upwards wario version of seaboard
your build scheme (ltib) defines 1 of these config macros (config_mach_harmony instance). @ config file, see 1 enabled, , add together declaration of i2c device in corresponding board-xxx.c file.
linux-kernel registration linux-device-driver i2c
Comments
Post a Comment