Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6144539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:39:55+00:00 2026-05-23T18:39:55+00:00

I am adding a gyro/accel driver (Invensense MPU3050), available here to my kernel (LPC

  • 0

I am adding a gyro/accel driver (Invensense MPU3050), available here to my kernel (LPC Linux). I use LTIB for building the image and rootfs.

I manage in adding all files and the driver is available and compiles perfectly!
Now I need to add a mpu3050_platform_data structure in the i2c_board_info_structure in the “board-generic.c” file (README) and then register it adding some lines in the same “board-generic.c” file.

Problem is, I cannot locate this/these file/s.
Is their name depending on the linux distribution?
Is the same info written somewhere else?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:39:55+00:00Added an answer on May 23, 2026 at 6:39 pm

    You need to add this to the file supporting the tegra board you are using. In the current 3.0-rc3 kernel (last tag I have checked out), I see these tegra board files (in arch/arm/mach-tegra):

    • board-harmony.c
    • board-paz00.c
    • board-seaboard.c
    • board-trimslice.c

    These files configure the static devices for a given tegra board. Your config file then selects which ones are built. Here are the 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
             Support for nVidia Harmony development platform
    
    config MACH_KAEN
           bool "Kaen board"
           select MACH_SEABOARD
           select MACH_HAS_SND_SOC_TEGRA_WM8903
           help
             Support for the Kaen version of Seaboard
    
    config MACH_PAZ00
           bool "Paz00 board"
           help
             Support for the Toshiba AC100/Dynabook AZ netbook
    
    config MACH_SEABOARD
           bool "Seaboard board"
           select MACH_HAS_SND_SOC_TEGRA_WM8903
           help
             Support for nVidia Seaboard development platform. It will
         also be included for some of the derivative boards that
         have large similarities with the seaboard design.
    
    config MACH_TRIMSLICE
           bool "TrimSlice board"
           select TEGRA_PCI
           help
             Support for CompuLab TrimSlice platform
    
    config MACH_WARIO
           bool "Wario board"
           select MACH_SEABOARD
           help
             Support for the Wario version of Seaboard
    

    Your build system (LTIB) certainly defines one of these config macros (CONFIG_MACH_HARMONY for instance). Look at your config file, see which one is enabled, and add the declaration of your i2c device in the corresponding board-xxx.c file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Adding an image to a UINavigationItem's titleView is pretty trivial, but when I push
Adding CSS to RSS is quite simple as shown in here: http://www.petefreitag.com/item/208.cfm Creating RSS
Adding on one more query extending from here Detecting language of email body :
Adding an element to the head of an alist (Associative list) is simple enough:
Adding source files more than one directory away (e.g. ../../source.cpp or ../../../somewhere_else/source.cpp, vs. just
Adding more than one child to a WPF StatusBar results in poor layout with
Adding Exceptional Handling is a good practise, but I have a doubt, In our
Adding the row one by one in the button click.. (i tried but its
Adding functionality to a class can be done by adding a method or by
Adding strings localization files in iPhone bundle is very simple and perfectly fine but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.