From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VDqj2-0004g0-10 for barebox@lists.infradead.org; Mon, 26 Aug 2013 06:56:33 +0000 From: Sascha Hauer Date: Mon, 26 Aug 2013 08:55:55 +0200 Message-Id: <1377500163-28962-15-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1377500163-28962-1-git-send-email-s.hauer@pengutronix.de> References: <1377500163-28962-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 14/22] ARM: am33xx: beaglebone: configure I2C EEPROM To: barebox@lists.infradead.org From: Jan Luebbe Signed-off-by: Jan Luebbe Signed-off-by: Sascha Hauer --- arch/arm/boards/beaglebone/board.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boards/beaglebone/board.c b/arch/arm/boards/beaglebone/board.c index 52b3ec8..e12c70b 100644 --- a/arch/arm/boards/beaglebone/board.c +++ b/arch/arm/boards/beaglebone/board.c @@ -100,11 +100,20 @@ static void beaglebone_eth_init(void) am33xx_add_cpsw(&cpsw_data); } +static struct i2c_board_info i2c0_devices[] = { + { + I2C_BOARD_INFO("24c256", 0x50) + }, +}; + static int beaglebone_devices_init(void) { am33xx_add_mmc0(NULL); am33xx_enable_i2c0_pin_mux(); + i2c_register_board_info(0, i2c0_devices, ARRAY_SIZE(i2c0_devices)); + am33xx_add_i2c0(NULL); + beaglebone_eth_init(); armlinux_set_bootparams((void *)0x80000100); -- 1.8.4.rc3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox