All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Schultz <d.schultz@phytec.de>
To: barebox@lists.infradead.org
Subject: [PATCH 3/3] ARM: phytec-som-am335x: Add autoenable
Date: Fri, 27 Oct 2017 16:37:41 +0200	[thread overview]
Message-ID: <1509115061-4385-3-git-send-email-d.schultz@phytec.de> (raw)
In-Reply-To: <1509115061-4385-1-git-send-email-d.schultz@phytec.de>

Add autoenable for components, which can be populated on an AM335x
phyCORE SoM.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
---
 arch/arm/boards/phytec-som-am335x/board.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boards/phytec-som-am335x/board.c b/arch/arm/boards/phytec-som-am335x/board.c
index 34d4df1..5d13471 100644
--- a/arch/arm/boards/phytec-som-am335x/board.c
+++ b/arch/arm/boards/phytec-som-am335x/board.c
@@ -26,6 +26,7 @@
 #include <io.h>
 #include <linux/sizes.h>
 #include <envfs.h>
+#include <autoenable.h>
 #include <state.h>
 #include <asm/armlinux.h>
 #include <generated/mach-types.h>
@@ -136,6 +137,17 @@ static int physom_devices_init(void)
 		}
 	}
 
+	/* Enable NAND */
+	autoenable_device_by_path("/ocp/gpmc@50000000");
+	/* Enable eMMC */
+	autoenable_device_by_path("/ocp/mmc@481d8000");
+	/* Enable SPI NOR */
+	autoenable_device_by_path("/ocp/spi@48030000/m25p80@0");
+
+	autoenable_i2c_by_path("/ocp/i2c@44e0b000/temp@4b");
+	autoenable_i2c_by_path("/ocp/i2c@44e0b000/eeprom@52");
+	autoenable_i2c_by_path("/ocp/i2c@44e0b000/rtc@68");
+
 	if (IS_ENABLED(CONFIG_SHELL_NONE))
 		return am33xx_of_register_bootdevice();
 
-- 
2.7.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2017-10-27 14:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-27 14:37 [PATCH 1/3] common: Add autoenable for components Daniel Schultz
2017-10-27 14:37 ` [PATCH 2/3] ARM: dts: AM335x: Add dummy i2c nodes Daniel Schultz
2017-10-27 14:37 ` Daniel Schultz [this message]
2017-11-01  8:44 ` [PATCH 1/3] common: Add autoenable for components Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1509115061-4385-3-git-send-email-d.schultz@phytec.de \
    --to=d.schultz@phytec.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.