mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Raspberry Pi updates
@ 2013-10-15  9:00 Sascha Hauer
  2013-10-15  9:00 ` [PATCH 1/2] mci: bcm2835: Add detect callback support for hardware device Sascha Hauer
  2013-10-15  9:00 ` [PATCH 2/2] ARM: rpi: Update defconfig Sascha Hauer
  0 siblings, 2 replies; 4+ messages in thread
From: Sascha Hauer @ 2013-10-15  9:00 UTC (permalink / raw)
  To: barebox

This updates the defconfig for the RPi to provide a useful feature
set.

----------------------------------------------------------------
Sascha Hauer (2):
      mci: bcm2835: Add detect callback support for hardware device
      ARM: rpi: Update defconfig

 arch/arm/configs/rpi_defconfig | 45 ++++++++++++++++++++++++++++++++----------
 drivers/mci/mci-bcm2835.c      | 10 ++++++++++
 2 files changed, 45 insertions(+), 10 deletions(-)

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] mci: bcm2835: Add detect callback support for hardware device
  2013-10-15  9:00 Raspberry Pi updates Sascha Hauer
@ 2013-10-15  9:00 ` Sascha Hauer
  2013-10-15  9:00 ` [PATCH 2/2] ARM: rpi: Update defconfig Sascha Hauer
  1 sibling, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2013-10-15  9:00 UTC (permalink / raw)
  To: barebox

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 drivers/mci/mci-bcm2835.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/mci/mci-bcm2835.c b/drivers/mci/mci-bcm2835.c
index abd38a3..a0c364d 100644
--- a/drivers/mci/mci-bcm2835.c
+++ b/drivers/mci/mci-bcm2835.c
@@ -511,6 +511,13 @@ static u32 bcm2835_mci_get_emmc_clock(struct msg_get_clock_rate *clk_data)
 	return 0;
 }
 
+static int bcm2835_mci_detect(struct device_d *dev)
+{
+	struct bcm2835_mci_host *host = dev->priv;
+
+	return mci_detect_card(&host->mci);
+}
+
 static int bcm2835_mci_probe(struct device_d *hw_dev)
 {
 	struct bcm2835_mci_host *host;
@@ -561,6 +568,9 @@ static int bcm2835_mci_probe(struct device_d *hw_dev)
 	host->mci.f_min = MIN_FREQ;
 	host->mci.f_max = host->max_clock;
 
+	hw_dev->priv = host;
+	hw_dev->detect = bcm2835_mci_detect,
+
 	/*
 	 * The Arasan has a bugette whereby it may lose the content of
 	 * successive writes to registers that are within two SD-card clock
-- 
1.8.4.rc3


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] ARM: rpi: Update defconfig
  2013-10-15  9:00 Raspberry Pi updates Sascha Hauer
  2013-10-15  9:00 ` [PATCH 1/2] mci: bcm2835: Add detect callback support for hardware device Sascha Hauer
@ 2013-10-15  9:00 ` Sascha Hauer
  2013-10-15 17:41   ` Andre Heider
  1 sibling, 1 reply; 4+ messages in thread
From: Sascha Hauer @ 2013-10-15  9:00 UTC (permalink / raw)
  To: barebox

Enable MMU, stack dumps and a lot of other features

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/configs/rpi_defconfig | 45 ++++++++++++++++++++++++++++++++----------
 1 file changed, 35 insertions(+), 10 deletions(-)

diff --git a/arch/arm/configs/rpi_defconfig b/arch/arm/configs/rpi_defconfig
index 014e28c..76029d0 100644
--- a/arch/arm/configs/rpi_defconfig
+++ b/arch/arm/configs/rpi_defconfig
@@ -1,41 +1,66 @@
 CONFIG_ARCH_BCM2835=y
-CONFIG_GPIO_BCM2835=y
+CONFIG_AEABI=y
 CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
+CONFIG_ARM_UNWIND=y
+CONFIG_MMU=y
+CONFIG_MALLOC_TLSF=y
+CONFIG_KALLSYMS=y
 CONFIG_PROMPT="R-Pi> "
 CONFIG_LONGHELP=y
-CONFIG_GLOB=y
 CONFIG_HUSH_FANCY_PROMPT=y
 CONFIG_CMDLINE_EDITING=y
 CONFIG_AUTO_COMPLETE=y
 CONFIG_MENU=y
-CONFIG_PARTITION=y
+CONFIG_BLSPEC=y
 CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
 CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/raspberry-pi/env"
 CONFIG_CMD_EDIT=y
 CONFIG_CMD_SLEEP=y
+CONFIG_CMD_MSLEEP=y
 CONFIG_CMD_SAVEENV=y
-CONFIG_CMD_LOADENV=y
 CONFIG_CMD_EXPORT=y
 CONFIG_CMD_PRINTENV=y
 CONFIG_CMD_READLINE=y
+CONFIG_CMD_LET=y
 CONFIG_CMD_MENU=y
 CONFIG_CMD_MENU_MANAGEMENT=y
 CONFIG_CMD_PASSWD=y
+CONFIG_CMD_TIME=y
+CONFIG_CMD_LN=y
+CONFIG_CMD_FILETYPE=y
 CONFIG_CMD_ECHO_E=y
 CONFIG_CMD_LOADB=y
 CONFIG_CMD_MEMINFO=y
-CONFIG_CMD_MTEST=y
-CONFIG_CMD_MTEST_ALTERNATIVE=y
-CONFIG_CMD_BOOTM_ZLIB=y
-CONFIG_CMD_BOOTM_BZLIB=y
+CONFIG_CMD_IOMEM=y
+CONFIG_CMD_MM=y
+CONFIG_CMD_CRC=y
+CONFIG_CMD_CRC_CMP=y
+CONFIG_CMD_MD5SUM=y
 CONFIG_CMD_BOOTM_SHOW_TYPE=y
+CONFIG_CMD_BOOTM_VERBOSE=y
+CONFIG_CMD_BOOTM_INITRD=y
+CONFIG_CMD_BOOTM_OFTREE=y
+CONFIG_CMD_UIMAGE=y
 CONFIG_CMD_RESET=y
-CONFIG_CMD_CLK=y
 CONFIG_CMD_GO=y
+CONFIG_CMD_OFTREE=y
+CONFIG_CMD_OF_PROPERTY=y
+CONFIG_CMD_OF_NODE=y
 CONFIG_CMD_TIMEOUT=y
 CONFIG_CMD_PARTITION=y
-CONFIG_CMD_UNCOMPRESS=y
+CONFIG_CMD_MAGICVAR=y
+CONFIG_CMD_MAGICVAR_HELP=y
 CONFIG_CMD_GPIO=y
+CONFIG_CMD_UNCOMPRESS=y
+CONFIG_CMD_CLK=y
+CONFIG_CMD_DETECT=y
 CONFIG_SERIAL_AMBA_PL011=y
+CONFIG_MCI=y
+CONFIG_MCI_BCM2835=y
+CONFIG_GPIO_BCM2835=y
+CONFIG_FS_EXT4=y
+CONFIG_FS_FAT=y
+CONFIG_FS_FAT_WRITE=y
+CONFIG_FS_FAT_LFN=y
 CONFIG_SHA1=y
 CONFIG_SHA256=y
-- 
1.8.4.rc3


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] ARM: rpi: Update defconfig
  2013-10-15  9:00 ` [PATCH 2/2] ARM: rpi: Update defconfig Sascha Hauer
@ 2013-10-15 17:41   ` Andre Heider
  0 siblings, 0 replies; 4+ messages in thread
From: Andre Heider @ 2013-10-15 17:41 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

On Tue, Oct 15, 2013 at 11:00:40AM +0200, Sascha Hauer wrote:
> Enable MMU, stack dumps and a lot of other features
> 
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> ---
>  arch/arm/configs/rpi_defconfig | 45 ++++++++++++++++++++++++++++++++----------
>  1 file changed, 35 insertions(+), 10 deletions(-)
> 
> diff --git a/arch/arm/configs/rpi_defconfig b/arch/arm/configs/rpi_defconfig
> index 014e28c..76029d0 100644
> --- a/arch/arm/configs/rpi_defconfig
> +++ b/arch/arm/configs/rpi_defconfig
> @@ -1,41 +1,66 @@
>  CONFIG_ARCH_BCM2835=y
> -CONFIG_GPIO_BCM2835=y
> +CONFIG_AEABI=y
>  CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
> +CONFIG_ARM_UNWIND=y
> +CONFIG_MMU=y

This breaks bcm2835_mci_get_emmc_clock() and gives the warning:
Failed getting emmc clock, lets go anyway with 50MHz

I just sent a patch to fix that, but didn't dig deeper if other spots
are affected.

Regards,
Andre

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-15 17:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-15  9:00 Raspberry Pi updates Sascha Hauer
2013-10-15  9:00 ` [PATCH 1/2] mci: bcm2835: Add detect callback support for hardware device Sascha Hauer
2013-10-15  9:00 ` [PATCH 2/2] ARM: rpi: Update defconfig Sascha Hauer
2013-10-15 17:41   ` Andre Heider

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox