Skip to contentSkip to conversation

mmc: add bcm2835 driver

PATCH Superseded Stephen Warren 6 participants 12 messages Oct 24, 2012 – Nov 4, 2012

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 mmc: add bcm2835 driver

This adds a simple driver for the BCM2835's SD controller.

Workarounds are implemented for:
* Register writes can't be too close to each-other in time, or they will be lost.
* Register accesses must all be 32-bit, so implement custom accessors.

This code was extracted from:
git://github.com/gonzoua/u-boot-pi.git master
which was created by Oleksandr Tymoshenko.

Portions of the code there were obviously based on the Linux kernel at:
git://github.com/raspberrypi/linux.git rpi-3.2.27

No s-o-b tags were present in either location.

swarren changed the following for upstream:
* Removed hack udelay()s in bcm2835_sdhci_raw_writel(); setting SDHCI_QUIRK_WAIT_SEND_CMD appears to solve the issues.
* Remove register logging from read*/write* functions.
* Sort out confusion with min/max_freq values passed to add_sdhci().
* Simplified and commented twoticks_delay calculation.
* checkpatch fixes.

Cc Oleksandr Tymoshenko <[email protected]>

---
This series is based on the previous bcm2835 patches I sent, to add the mbox and video drivers. Patch 1 should be independant, but patch 2 depends on those other patches.

 arch/arm/include/asm/arch-bcm2835/sdhci.h |   24 ++++
 drivers/mmc/Makefile                      |    1 +
 drivers/mmc/bcm2835_sdhci.c               |  172 +++++++++++++++++++++++++++++
 3 files changed, 197 insertions(+)
 create mode 100644 arch/arm/include/asm/arch-bcm2835/sdhci.h
 create mode 100644 drivers/mmc/bcm2835_sdhci.c
arch/arm/include/asm/arch-bcm2835/sdhci.h new file +24 -0
new file mode 100644
index 0000000..a4f867b
@@ -0,0 +1,24 @@
+/*
+ * (C) Copyright 2012 Stephen Warren
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef _BCM2835_SDHCI_H_
+#define _BCM2835_SDHCI_H_
+
+#define BCM2835_SDHCI_BASE 0x20300000
+
+int bcm2835_sdhci_init(u32 regbase, u32 emmc_freq);
+
+#endif
drivers/mmc/Makefile +1 -0
index a1dd730..6be36f2 100644
@@ -43,6 +43,7 @@ COBJS-$(CONFIG_MXS_MMC) += mxsmmc.o
 COBJS-$(CONFIG_OMAP_HSMMC) += omap_hsmmc.o
 COBJS-$(CONFIG_PXA_MMC_GENERIC) += pxa_mmc_gen.o
 COBJS-$(CONFIG_SDHCI) += sdhci.o
+COBJS-$(CONFIG_BCM2835_SDHCI) += bcm2835_sdhci.o
 COBJS-$(CONFIG_S5P_SDHCI) += s5p_sdhci.o
 COBJS-$(CONFIG_SH_MMCIF) += sh_mmcif.o
 COBJS-$(CONFIG_TEGRA_MMC) += tegra_mmc.o
drivers/mmc/bcm2835_sdhci.c new file +172 -0

172 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/2 ARM: rpi_b: enable SD controller, add related env/cmds

Enable the SD controller driver for the Raspberry Pi. Enable a number of useful MMC, partition, and filesystem-related commands. Set up the environment to provide standard locations for loading a kernel, DTB, etc. Provide a boot command that loads and executes boot.scr.uimg from the SD card; this is written considering future extensibilty to USB storage.

---
 arch/arm/include/asm/arch-bcm2835/mbox.h |   26 ++++++++++++
 board/raspberrypi/rpi_b/rpi_b.c          |   26 ++++++++++++
 include/configs/rpi_b.h                  |   68 ++++++++++++++++++++++++++++--
 3 files changed, 117 insertions(+), 3 deletions(-)
arch/arm/include/asm/arch-bcm2835/mbox.h +26 -0
index 6e040c5..5a9bd87 100644
@@ -143,6 +143,32 @@ struct bcm2835_mbox_tag_get_arm_mem {
 	} body;
 };
 
+#define BCM2835_MBOX_TAG_GET_CLOCK_RATE	0x00030002
+
+#define BCM2835_MBOX_CLOCK_ID_EMMC	1
+#define BCM2835_MBOX_CLOCK_ID_UART	2
+#define BCM2835_MBOX_CLOCK_ID_ARM	3
+#define BCM2835_MBOX_CLOCK_ID_CORE	4
+#define BCM2835_MBOX_CLOCK_ID_V3D	5
+#define BCM2835_MBOX_CLOCK_ID_H264	6
+#define BCM2835_MBOX_CLOCK_ID_ISP	7
+#define BCM2835_MBOX_CLOCK_ID_SDRAM	8
+#define BCM2835_MBOX_CLOCK_ID_PIXEL	9
+#define BCM2835_MBOX_CLOCK_ID_PWM	10
+
+struct bcm2835_mbox_tag_get_clock_rate {
+	struct bcm2835_mbox_tag_hdr tag_hdr;
+	union {
+		struct {
+			u32 clock_id;
+		} req;
+		struct {
+			u32 clock_id;
+			u32 rate_hz;
+		} resp;
+	} body;
+};
+
 #define BCM2835_MBOX_TAG_ALLOCATE_BUFFER	0x00040001
 
 struct bcm2835_mbox_tag_allocate_buffer {
board/raspberrypi/rpi_b/rpi_b.c +26 -0
index 3c654a1..6b3e095 100644
@@ -16,6 +16,7 @@
 
 #include <common.h>
 #include <asm/arch/mbox.h>
+#include <asm/arch/sdhci.h>
 #include <asm/global_data.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -26,6 +27,12 @@ struct msg_get_arm_mem {
 	u32 end_tag;
 };
 
+struct msg_get_clock_rate {
+	struct bcm2835_mbox_hdr hdr;
+	struct bcm2835_mbox_tag_get_clock_rate get_clock_rate;
+	u32 end_tag;
+};
+
 int dram_init(void)
 {
 	ALLOC_ALIGN_BUFFER(struct msg_get_arm_mem, msg, 1, 16);
@@ -51,3 +58,22 @@ int board_init(void)
 
 	return 0;
 }
+
+int board_mmc_init(void)
+{
+	ALLOC_ALIGN_BUFFER(struct msg_get_clock_rate, msg_clk, 1, 16);
+	int ret;
+
+	BCM2835_MBOX_INIT_HDR(msg_clk);
+	BCM2835_MBOX_INIT_TAG(&msg_clk->get_clock_rate, GET_CLOCK_RATE);
+	msg_clk->get_clock_rate.body.req.clock_id = BCM2835_MBOX_CLOCK_ID_EMMC;
+
+	ret = bcm2835_mbox_call_prop(BCM2835_MBOX_PROP_CHAN, &msg_clk->hdr);
+	if (ret) {
+		printf("bcm2835: Could not query eMMC clock rate\n");
+		return -1;
+	}
+
+	return bcm2835_sdhci_init(BCM2835_SDHCI_BASE,
+				  msg_clk->get_clock_rate.body.resp.rate_hz);
+}
include/configs/rpi_b.h +65 -3

95 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 1/2 mmc: add bcm2835 driver

In reply to Stephen Warren

Some nitpicks.

Quoted 201 lines · Stephen Warren

This adds a simple driver for the BCM2835's SD controller.

Workarounds are implemented for:
* Register writes can't be too close to each-other in time, or they will be lost.
* Register accesses must all be 32-bit, so implement custom accessors.

This code was extracted from:
git://github.com/gonzoua/u-boot-pi.git master
which was created by Oleksandr Tymoshenko.

Portions of the code there were obviously based on the Linux kernel at:
git://github.com/raspberrypi/linux.git rpi-3.2.27

No s-o-b tags were present in either location.

swarren changed the following for upstream:
* Removed hack udelay()s in bcm2835_sdhci_raw_writel(); setting SDHCI_QUIRK_WAIT_SEND_CMD appears to solve the issues.
* Remove register logging from read*/write* functions.
* Sort out confusion with min/max_freq values passed to add_sdhci().
* Simplified and commented twoticks_delay calculation.
* checkpatch fixes.

Cc Oleksandr Tymoshenko<[email protected]>

---
This series is based on the previous bcm2835 patches I sent, to add the mbox and video drivers. Patch 1 should be independant, but patch 2 depends on those other patches.

  arch/arm/include/asm/arch-bcm2835/sdhci.h |   24 ++++
  drivers/mmc/Makefile                      |    1 +
  drivers/mmc/bcm2835_sdhci.c               |  172 +++++++++++++++++++++++++++++
  3 files changed, 197 insertions(+)

create mode 100644 arch/arm/include/asm/arch-bcm2835/sdhci.h create mode 100644 drivers/mmc/bcm2835_sdhci.c

arch/arm/include/asm/arch-bcm2835/sdhci.h new file +24 -0
new file mode 100644
index 0000000..a4f867b
@@ -0,0 +1,24 @@
+/*
+ * (C) Copyright 2012 Stephen Warren
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef _BCM2835_SDHCI_H_
+#define _BCM2835_SDHCI_H_
+
+#define BCM2835_SDHCI_BASE 0x20300000
+
+int bcm2835_sdhci_init(u32 regbase, u32 emmc_freq);
+
+#endif
drivers/mmc/Makefile +1 -0
index a1dd730..6be36f2 100644
@@ -43,6 +43,7 @@ COBJS-$(CONFIG_MXS_MMC) += mxsmmc.o
  COBJS-$(CONFIG_OMAP_HSMMC) += omap_hsmmc.o
  COBJS-$(CONFIG_PXA_MMC_GENERIC) += pxa_mmc_gen.o
  COBJS-$(CONFIG_SDHCI) += sdhci.o
+COBJS-$(CONFIG_BCM2835_SDHCI) += bcm2835_sdhci.o
  COBJS-$(CONFIG_S5P_SDHCI) += s5p_sdhci.o
  COBJS-$(CONFIG_SH_MMCIF) += sh_mmcif.o
  COBJS-$(CONFIG_TEGRA_MMC) += tegra_mmc.o
drivers/mmc/bcm2835_sdhci.c new file +115 -0
new file mode 100644
index 0000000..1d623c0
@@ -0,0 +1,172 @@
+/*
+ * This code was extracted from:
+ * git://github.com/gonzoua/u-boot-pi.git master
+ * and hence presumably (C) 2012 Oleksandr Tymoshenko
+ *
+ * Tweaks for U-Boot upstreaming
+ * (C) 2012 Stephen Warren
+ *
+ * Portions (e.g. read/write macros, concepts for back-to-back register write
+ * timing workarounds) obviously extracted from the Linux kernel at:
+ * https://github.com/raspberrypi/linux.git rpi-3.2.27
+ *
+ * The Linux kernel code has the following (c) and license, which is hence
+ * propagated to Oleksandr's tree and here:
+ *
+ * Support for SDHCI device on 2835
+ * Based on sdhci-bcm2708.c (c) 2010 Broadcom
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+/* Supports:
+ * SDHCI platform device - Arasan SD controller in BCM2708
+ *
+ * Inspired by sdhci-pci.c, by Pierre Ossman
+ */
+
+#include<common.h>
+#include<malloc.h>
+#include<sdhci.h>
+
+/* 400KHz is max freq for card ID etc. Use that as min */
+#define MIN_FREQ 400000
+
+static uint twoticks_delay;
+
+static inline void bcm2835_sdhci_raw_writel(struct sdhci_host *host, u32 val,
+						int reg)
+{
+	static ulong last_write;
+
+	/*
+	 * The Arasan has a bugette whereby it may lose the content of
+	 * successive writes to registers that are within two SD-card clock
+	 * cycles of each other (a clock domain crossing problem).
+	 * It seems, however, that the data register does not have this problem.
+	 * (Which is just as well - otherwise we'd have to nobble the DMA engine
+	 * too)
+	 */
+	while (get_timer(last_write)<  twoticks_delay)
+		;
+
+	writel(val, host->ioaddr + reg);
+	last_write = get_timer(0);
+}
+
+static inline u32 bcm2835_sdhci_raw_readl(struct sdhci_host *host, int reg)
+{
+	return readl(host->ioaddr + reg);
+}
+
+static void bcm2835_sdhci_writel(struct sdhci_host *host, u32 val, int reg)
+{
+	bcm2835_sdhci_raw_writel(host, val, reg);
+}
+
+static void bcm2835_sdhci_writew(struct sdhci_host *host, u16 val, int reg)
+{
+	static u32 shadow;
+
+	u32 p = reg == SDHCI_COMMAND ? shadow :
+		bcm2835_sdhci_raw_readl(host, reg&  ~3);
+	u32 s = reg<<  3&  0x18;
+	u32 l = val<<  s;
+	u32 m = 0xffff<<  s;
+
+	if (reg == SDHCI_TRANSFER_MODE)
+		shadow = (p&  ~m) | l;
+	else
+		bcm2835_sdhci_raw_writel(host, (p&  ~m) | l, reg&  ~3);
+}
+
+static void bcm2835_sdhci_writeb(struct sdhci_host *host, u8 val, int reg)
+{
+	u32 p = bcm2835_sdhci_raw_readl(host, reg&  ~3);
+	u32 s = reg<<  3&  0x18;
+	u32 l = val<<  s;
+	u32 m = 0xff<<  s;
+
+	bcm2835_sdhci_raw_writel(host, (p&  ~m) | l, reg&  ~3);
+}
+
+static u32 bcm2835_sdhci_readl(struct sdhci_host *host, int reg)
+{
+	u32 val = bcm2835_sdhci_raw_readl(host, reg);
+
+	return val;
+}
+
+static u16 bcm2835_sdhci_readw(struct sdhci_host *host, int reg)
+{
+	u32 val = bcm2835_sdhci_raw_readl(host, (reg&  ~3));
+	val = val>>  (reg<<  3&  0x18)&  0xffff;
+

drivers/mmc/bcm2835_sdhci.c line 125

Quoted 10 lines
drivers/mmc/bcm2835_sdhci.c new file +10 -0
+	return (u16)val;
+}
+
+static u8 bcm2835_sdhci_readb(struct sdhci_host *host, int reg)
+{
+	u32 val = bcm2835_sdhci_raw_readl(host, (reg&  ~3));
+	val = val>>  (reg<<  3&  0x18)&  0xff;
+
+	return (u8)val;
+}

Can the above used magics be made as macros?

~Vikram

#3 lore raw

PATCH 1/2 mmc: add bcm2835 driver

Quoted 9 lines · Vikram Narayanan

Some nitpicks.

Quoted 6 lines · Stephen Warren

This adds a simple driver for the BCM2835's SD controller.

Workarounds are implemented for:
* Register writes can't be too close to each-other in time, or they will be lost.
* Register accesses must all be 32-bit, so implement custom accessors.

...

Quoted 9 lines

drivers/mmc/bcm2835_sdhci.c line 125

Quoted 7 lines
drivers/mmc/bcm2835_sdhci.c new file +7 -0
+static u8 bcm2835_sdhci_readb(struct sdhci_host *host, int reg)
+{
+    u32 val = bcm2835_sdhci_raw_readl(host, (reg&  ~3));
+    val = val>>  (reg<<  3&  0x18)&  0xff;
+
+    return (u8)val;
+}

Can the above used magics be made as macros?

This code was taken directly from the downstream Linux kernel, so I changed it as little as possible, to make comparisons easier. Still, if people want I can certainly make it easier to understand the expression a bit.

I don't think the issue is the magic numbers so much as understanding what the expression does; the magic are obvious then. It's simply extracting byte n from from a u32. Would the following be more obvious:

byte_num = reg & 3;
byte_shift = bytenum * 8;
byte = (val >> byte_shift) & 0xff;

... and similar for the other functions?

#4 lore raw

PATCH 1/2 mmc: add bcm2835 driver

Quoted 4 lines · Stephen Warren
Quoted 3 lines · Vikram Narayanan

Some nitpicks.

On 10/24/2012 10:20 AM, Stephen Warren wrote:

<snip>

Quoted 10 lines
Quoted 9 lines

drivers/mmc/bcm2835_sdhci.c line 125

Quoted 7 lines
drivers/mmc/bcm2835_sdhci.c new file +7 -0
+static u8 bcm2835_sdhci_readb(struct sdhci_host *host, int reg)
+{
+    u32 val = bcm2835_sdhci_raw_readl(host, (reg&   ~3));
+    val = val>>   (reg<<   3&   0x18)&   0xff;
+
+    return (u8)val;
+}

Can the above used magics be made as macros?

Quoted 4 lines

This code was taken directly from the downstream Linux kernel, so I changed it as little as possible, to make comparisons easier. Still, if people want I can certainly make it easier to understand the expression a bit.

Seems reasonable.

Quoted 9 lines

I don't think the issue is the magic numbers so much as understanding what the expression does; the magic are obvious then. It's simply extracting byte n from from a u32. Would the following be more obvious:

byte_num = reg& 3;
byte_shift = bytenum * 8;
byte = (val>> byte_shift)& 0xff;

... and similar for the other functions?

This looks better to me than the former. Thanks.

~Vikram

#5 lore raw

PATCH 1/2 mmc: add bcm2835 driver

Hi Stephen,

Quoted 27 lines · Vikram Narayanan
Quoted 4 lines · Stephen Warren
Quoted 3 lines · Vikram Narayanan

Some nitpicks.

On 10/24/2012 10:20 AM, Stephen Warren wrote:

<snip>

Quoted 10 lines
Quoted 9 lines

drivers/mmc/bcm2835_sdhci.c line 125

Quoted 7 lines
drivers/mmc/bcm2835_sdhci.c new file +7 -0
+static u8 bcm2835_sdhci_readb(struct sdhci_host *host, int reg)
+{
+    u32 val = bcm2835_sdhci_raw_readl(host, (reg&   ~3));
+    val = val>>   (reg<<   3&   0x18)&   0xff;
+
+    return (u8)val;
+}

Can the above used magics be made as macros?

Quoted 4 lines

This code was taken directly from the downstream Linux kernel, so I changed it as little as possible, to make comparisons easier. Still, if people want I can certainly make it easier to understand the expression a bit.

Seems reasonable.

Quoted 4 lines

I don't think the issue is the magic numbers so much as understanding what the expression does; the magic are obvious then. It's simply extracting byte n from from a u32. Would the following be more obvious:

Quoted 7 lines
Quoted 5 lines

byte_num = reg& 3;
byte_shift = bytenum * 8;
byte = (val>> byte_shift)& 0xff;

... and similar for the other functions?

This looks better to me than the former. Thanks.

Stephen,

Does this mean there'll be a new version of this patch?

Amicalement,

Signature · 1 line
Albert.
#6 lore raw

PATCH 1/2 mmc: add bcm2835 driver

Quoted 38 lines · Albert ARIBAUD

Hi Stephen,

Quoted 33 lines · Vikram Narayanan
Quoted 4 lines · Stephen Warren
Quoted 3 lines · Vikram Narayanan

Some nitpicks.

On 10/24/2012 10:20 AM, Stephen Warren wrote:

<snip>

Quoted 10 lines
Quoted 9 lines

drivers/mmc/bcm2835_sdhci.c line 125

Quoted 7 lines
drivers/mmc/bcm2835_sdhci.c new file +7 -0
+static u8 bcm2835_sdhci_readb(struct sdhci_host *host, int reg)
+{
+    u32 val = bcm2835_sdhci_raw_readl(host, (reg&   ~3));
+    val = val>>   (reg<<   3&   0x18)&   0xff;
+
+    return (u8)val;
+}

Can the above used magics be made as macros?

Quoted 4 lines

This code was taken directly from the downstream Linux kernel, so I changed it as little as possible, to make comparisons easier. Still, if people want I can certainly make it easier to understand the expression a bit.

Seems reasonable.

Quoted 9 lines

I don't think the issue is the magic numbers so much as understanding what the expression does; the magic are obvious then. It's simply extracting byte n from from a u32. Would the following be more obvious:

byte_num = reg& 3;
byte_shift = bytenum * 8;
byte = (val>> byte_shift)& 0xff;

... and similar for the other functions?

Quoted 7 lines
Quoted 1 line

This looks better to me than the former. Thanks.

Stephen,

Does this mean there'll be a new version of this patch?

Amicalement,

Hopefully. I'm waiting on Signed-off-by lines from Oleksandr Tymoshenko and Dom Cobley (assuming they can provide them...) before I make this change and repost.

#7 lore raw

PATCH 1/2 mmc: add bcm2835 driver

In reply to Stephen Warren
Quoted 7 lines · Stephen Warren

This adds a simple driver for the BCM2835's SD controller.

Workarounds are implemented for:
* Register writes can't be too close to each-other in time, or they will be lost.
* Register accesses must all be 32-bit, so implement custom accessors.

Quoted 8 lines

This code was extracted from:
git://github.com/gonzoua/u-boot-pi.git master
which was created by Oleksandr Tymoshenko.

Portions of the code there were obviously based on the Linux kernel at:
git://github.com/raspberrypi/linux.git rpi-3.2.27

No s-o-b tags were present in either location.

Um, that's a bit worrying to me. Wolfgang?

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121026/7e1b5d2c/attachment.pgp>
#8 lore raw

PATCH 1/2 mmc: add bcm2835 driver

Quoted 12 lines · Tom Rini
Quoted 11 lines · Stephen Warren

This adds a simple driver for the BCM2835's SD controller.

Workarounds are implemented for:
* Register writes can't be too close to each-other in time, or they will be lost.
* Register accesses must all be 32-bit, so implement custom accessors.

This code was extracted from:
git://github.com/gonzoua/u-boot-pi.git master
which was created by Oleksandr Tymoshenko.

Quoted 5 lines
Quoted 4 lines

Portions of the code there were obviously based on the Linux kernel at:
git://github.com/raspberrypi/linux.git rpi-3.2.27

No s-o-b tags were present in either location.

Um, that's a bit worrying to me. Wolfgang?

I didn't have much experience with s-o-b stuff, so excuse my ignorance. Is there official procedure, or is it enough to state that I sign off on everything in git://github.com/gonzoua/u-boot-pi.git master authored by me?

#9 lore raw

PATCH 1/2 mmc: add bcm2835 driver

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 15 lines · Oleksandr Tymoshenko
Quoted 14 lines · Tom Rini
Quoted 13 lines · Stephen Warren

This adds a simple driver for the BCM2835's SD controller.

Workarounds are implemented for: * Register writes can't be too close to each-other in time, or they will be lost. * Register accesses must all be 32-bit, so implement custom accessors.

This code was extracted from:
git://github.com/gonzoua/u-boot-pi.git master which was created by Oleksandr Tymoshenko.

Portions of the code there were obviously based on the Linux kernel at: git://github.com/raspberrypi/linux.git rpi-3.2.27

Quoted 7 lines
Quoted 2 lines
Quoted 1 line

No s-o-b tags were present in either location.

Um, that's a bit worrying to me. Wolfgang?

I didn't have much experience with s-o-b stuff, so excuse my ignorance. Is there official procedure, or is it enough to state that I sign off on everything in
git://github.com/gonzoua/u-boot-pi.git master authored by me?

Just about. Please read
http://elinux.org/Developer_Certificate_Of_Origin and then assuming that is all true, reply to this email with a properly formatted Signed-off-by line (and then hey, you end up in the contributors for the next U-Boot release, once the code is merged). And then you can get in the habit of doing 'git commit -s' for projects where the above applies. There's still a question about the portions taken from the kernel tree. Thanks!

- --
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBAgAGBQJQitDzAAoJENk4IS6UOR1W/K4P/1V5mFKlragudKsi4tUug2TN ihjpQjESpEbwHCcdgK831PIpf/bd8igY+ba50aSJRSO0BrRtwiWe7whnJv5FEg01 dGBhlYlE0E+B6RcyJmORsEIftDphnY1Wrc4DmTpo18CxDJTZ4jdXBiEPygLo+L/v IIC5xVArVXvwvhtkeMB0gO6fg9NbeC13+6TdSOm9Jn1qNyJ3U05DjIjC/h7/3+rn GCScP3qxrnbrTF0xkoRi7LCaBZA2Czfu7n510S7SHFufNXq9Px19GOImonvanrVG z5p9pZJolIE8Jfu6bwXrPfdu8NCo6dv1/apDigDka0jO/KGxIG6l0DPJZTjLf6G9 FJ5G5n/UE+MRheps2AAtHA/ID5nxF7t7F1pjrWw1rkY1BkGzrOf7e13SlBa3QR6j ciLa0lWVdfb4fGU+C3On/ZksP+mMVqHZFwjzYaE7d25jOBYSc60E8O5Q0WzDS8mp 0sar4+/aRQgb3NhjIz1ADxSVrEmuwCTjtgZAwBcCLCK8OfdlYgpx40Dy8OJ7JKtP H+6pz812kqk5fHYAmNDstdbVSX67QNV4US/euCgSspDAsBdqweDCjUosuidVLXjH iq2XNG5HObnUY7zLlmTb2QPxBgarmakAf37jWSaIqNo9QLvzBitt1gDQUZZfjAT0 jeAfVX7FvI35pPbpEoCT
=5cJl
-----END PGP SIGNATURE-----

#10 lore raw

PATCH 1/2 mmc: add bcm2835 driver

Quoted 26 lines · Tom Rini
Quoted 17 lines · Oleksandr Tymoshenko
Quoted 16 lines · Tom Rini
Quoted 14 lines · Stephen Warren

This adds a simple driver for the BCM2835's SD controller.

Workarounds are implemented for: * Register writes can't be too close to each-other in time, or they will be lost. * Register accesses must all be 32-bit, so implement custom accessors.

This code was extracted from:
git://github.com/gonzoua/u-boot-pi.git master which was created by Oleksandr Tymoshenko.

Portions of the code there were obviously based on the Linux kernel at: git://github.com/raspberrypi/linux.git rpi-3.2.27

Quoted 7 lines
Quoted 2 lines
Quoted 1 line

No s-o-b tags were present in either location.

Um, that's a bit worrying to me. Wolfgang?

I didn't have much experience with s-o-b stuff, so excuse my ignorance. Is there official procedure, or is it enough to state that I sign off on everything in
git://github.com/gonzoua/u-boot-pi.git master authored by me?

Quoted 8 lines

Just about. Please read
http://elinux.org/Developer_Certificate_Of_Origin and then assuming that is all true, reply to this email with a properly formatted Signed-off-by line (and then hey, you end up in the contributors for the next U-Boot release, once the code is merged). And then you can get in the habit of doing 'git commit -s' for projects where the above applies. There's still a question about the portions taken from the kernel tree. Thanks!

Although do remember that U-Boot uses S-o-b differently to how the Linux kernel uses it, based on our recent discussions. For U-Boot, it's apparently only about original authorship and/or changes to the patches, whereas for the kernel, people who handle the patch without changes (i.e. apply it to a git tree) also sign the patch off.

Equally, since this code was derived from Linux kernel source, we should track down who wrote that and get them to sign it off too.

#11 lore raw

PATCH 1/2 mmc: add bcm2835 driver

In reply to Oleksandr Tymoshenko
Quoted 13 lines · Oleksandr Tymoshenko
Quoted 12 lines · Tom Rini
Quoted 11 lines · Stephen Warren

This adds a simple driver for the BCM2835's SD controller.

Workarounds are implemented for:
* Register writes can't be too close to each-other in time, or they will be lost.
* Register accesses must all be 32-bit, so implement custom accessors.

This code was extracted from:
git://github.com/gonzoua/u-boot-pi.git master
which was created by Oleksandr Tymoshenko.

Quoted 7 lines
Quoted 5 lines
Quoted 4 lines

Portions of the code there were obviously based on the Linux kernel at:
git://github.com/raspberrypi/linux.git rpi-3.2.27

No s-o-b tags were present in either location.

Um, that's a bit worrying to me. Wolfgang?

I didn't have much experience with s-o-b stuff, so excuse my ignorance.

Please read the file, Documentation/SubmittingPatches, in the Linux kernel source directory, for what it means, and what it is about, before doing anything.

thanks,

greg k-h