aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/0006-mx53-loco-add-board-revision-support.patch
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2013-08-26 18:58:19 +0200
committerOtavio Salvador <otavio@ossystems.com.br>2013-09-13 16:32:49 -0300
commit93d7b5a2639e0d468c84d13ec402b050cd5371a3 (patch)
treefd77ffe36fccc7c6e9c957d1bddb513617beacea /recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/0006-mx53-loco-add-board-revision-support.patch
parent6b7309e2bc8a9c9c9f02b2bd1ff97f9968fa4720 (diff)
downloadmeta-fsl-arm-93d7b5a2639e0d468c84d13ec402b050cd5371a3.zip
meta-fsl-arm-93d7b5a2639e0d468c84d13ec402b050cd5371a3.tar.gz
meta-fsl-arm-93d7b5a2639e0d468c84d13ec402b050cd5371a3.tar.bz2
barebox: drop 2012.02.0 support
imx53qsb will be supported using a more recent version Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/0006-mx53-loco-add-board-revision-support.patch')
-rw-r--r--recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/0006-mx53-loco-add-board-revision-support.patch104
1 files changed, 0 insertions, 104 deletions
diff --git a/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/0006-mx53-loco-add-board-revision-support.patch b/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/0006-mx53-loco-add-board-revision-support.patch
deleted file mode 100644
index 0a08427..0000000
--- a/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/0006-mx53-loco-add-board-revision-support.patch
+++ /dev/null
@@ -1,104 +0,0 @@
-From 99324818889fb34c36dd8d15b920bea78bdced35 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Eric=20B=C3=A9nard?= <eric@eukrea.com>
-Date: Tue, 21 Feb 2012 01:09:15 +0100
-Subject: [PATCH 6/7] mx53-loco: add board revision support
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-- this is taken from freescale-mx35-3-stack/3stack.c and allows
-this board to run Freescale's kernel which relies on the system
-revision to configure the correct PMIC.
-
-- On rev0 boards (with DA9053), the log is :
-detected i.MX53 rev 2.1
-MCIMX53-START board 1.0
-
-On newer boards (rev A or B with MC34708), the log is :
-mc34708-i2c@mc34708-i2c0: MC34708 ID: 0x0014
-detected i.MX53 rev 2.1
-MCIMX53-START-R board 1.0 rev B
-
-Signed-off-by: Eric Bénard <eric@eukrea.com>
----
-Upstream-Status: Applied for 2012.04.0
-
- arch/arm/boards/freescale-mx53-loco/board.c | 51 +++++++++++++++++++++++++++
- 1 files changed, 51 insertions(+), 0 deletions(-)
-
-diff --git a/arch/arm/boards/freescale-mx53-loco/board.c b/arch/arm/boards/freescale-mx53-loco/board.c
-index 14c053a..115a8a3 100644
---- a/arch/arm/boards/freescale-mx53-loco/board.c
-+++ b/arch/arm/boards/freescale-mx53-loco/board.c
-@@ -103,6 +103,31 @@ static struct i2c_board_info i2c_devices[] = {
- },
- };
-
-+/*
-+ * Revision to be passed to kernel. The kernel provided
-+ * by freescale relies on this.
-+ *
-+ * C --> CPU type
-+ * S --> Silicon revision
-+ * B --> Board rev
-+ *
-+ * 31 20 16 12 8 4 0
-+ * | Cmaj | Cmin | B | Smaj | Smin|
-+ *
-+ * e.g 0x00053120 --> i.MX35, Cpu silicon rev 2.0, Board rev 2
-+*/
-+static unsigned int loco_system_rev = 0x00053000;
-+
-+static void set_silicon_rev( int rev)
-+{
-+ loco_system_rev = loco_system_rev | (rev & 0xFF);
-+}
-+
-+static void set_board_rev(int rev)
-+{
-+ loco_system_rev = (loco_system_rev & ~(0xF << 8)) | (rev & 0xF) << 8;
-+}
-+
- static int loco_mem_init(void)
- {
- arm_add_mem_device("ram0", 0x70000000, SZ_512M);
-@@ -149,6 +174,8 @@ static int loco_devices_init(void)
-
- loco_fec_reset();
-
-+ set_silicon_rev(imx_silicon_revision());
-+
- armlinux_set_bootparams((void *)0x70000100);
- armlinux_set_architecture(MACH_TYPE_MX53_LOCO);
-
-@@ -177,3 +204,27 @@ static int loco_console_init(void)
- }
-
- console_initcall(loco_console_init);
-+
-+static int loco_pmic_init(void)
-+{
-+ struct mc34708 *mc34708;
-+ int rev;
-+
-+ mc34708 = mc34708_get();
-+ if (!mc34708) {
-+ /* so we have a DA9053 based board */
-+ printf("MCIMX53-START board 1.0\n");
-+ armlinux_set_revision(loco_system_rev);
-+ return 0;
-+ }
-+
-+ /* get the board revision from fuse */
-+ rev = readl(MX53_IIM_BASE_ADDR + 0x878);
-+ set_board_rev(rev);
-+ printf("MCIMX53-START-R board 1.0 rev %c\n", (rev == 1) ? 'A' : 'B' );
-+ armlinux_set_revision(loco_system_rev);
-+
-+ return 0;
-+}
-+
-+late_initcall(loco_pmic_init);
---
-1.7.7.6
-