swarm-i2c.c 827 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Broadcom BCM91250A (SWARM), etc. I2C platform setup.
  3. *
  4. * Copyright (c) 2008 Maciej W. Rozycki
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. */
  11. #include <linux/i2c.h>
  12. #include <linux/init.h>
  13. #include <linux/kernel.h>
  14. static struct i2c_board_info swarm_i2c_info1[] __initdata = {
  15. {
  16. I2C_BOARD_INFO("m41t81", 0x68),
  17. },
  18. };
  19. static int __init swarm_i2c_init(void)
  20. {
  21. int err;
  22. err = i2c_register_board_info(1, swarm_i2c_info1,
  23. ARRAY_SIZE(swarm_i2c_info1));
  24. if (err < 0)
  25. printk(KERN_ERR
  26. "swarm-i2c: cannot register board I2C devices\n");
  27. return err;
  28. }
  29. arch_initcall(swarm_i2c_init);