swarm-i2c.c 868 B

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