From 1c2c4c67a86a809cb39e9de329896d7f7be34265 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 27 Sep 2012 04:05:16 +0200 Subject: [PATCH] linux: update RPi patches Signed-off-by: Stephan Raue --- ...inux-3.2.30-601-RPi_support-9245b4c.patch} | 40 ++++++++++++++----- 1 file changed, 30 insertions(+), 10 deletions(-) rename packages/linux/patches/{linux-3.2.30-601-RPi_support-c14ddd0.patch => linux-3.2.30-601-RPi_support-9245b4c.patch} (99%) diff --git a/packages/linux/patches/linux-3.2.30-601-RPi_support-c14ddd0.patch b/packages/linux/patches/linux-3.2.30-601-RPi_support-9245b4c.patch similarity index 99% rename from packages/linux/patches/linux-3.2.30-601-RPi_support-c14ddd0.patch rename to packages/linux/patches/linux-3.2.30-601-RPi_support-9245b4c.patch index d878fb72d8..7d810480e9 100644 --- a/packages/linux/patches/linux-3.2.30-601-RPi_support-c14ddd0.patch +++ b/packages/linux/patches/linux-3.2.30-601-RPi_support-9245b4c.patch @@ -2196,7 +2196,7 @@ index 0000000..5593167 +endmenu diff --git a/arch/arm/mach-bcm2708/Makefile b/arch/arm/mach-bcm2708/Makefile new file mode 100644 -index 0000000..164ecb2 +index 0000000..3ee8a4b --- /dev/null +++ b/arch/arm/mach-bcm2708/Makefile @@ -0,0 +1,8 @@ @@ -2204,7 +2204,7 @@ index 0000000..164ecb2 +# Makefile for the linux kernel. +# + -+obj-$(CONFIG_MACH_BCM2708) += clock.o bcm2708.o armctrl.o vcio.o power.o dma.o ++obj-$(CONFIG_MACH_BCM2708) += clock.o bcm2708.o armctrl.o vcio.o power.o dma.o delay.o +obj-$(CONFIG_BCM2708_GPIO) += bcm2708_gpio.o +obj-$(CONFIG_BCM2708_VCMEM) += vc_mem.o + @@ -2674,10 +2674,10 @@ index 0000000..0aa916e +#endif diff --git a/arch/arm/mach-bcm2708/bcm2708.c b/arch/arm/mach-bcm2708/bcm2708.c new file mode 100644 -index 0000000..c9d6bd1 +index 0000000..ac118a4 --- /dev/null +++ b/arch/arm/mach-bcm2708/bcm2708.c -@@ -0,0 +1,897 @@ +@@ -0,0 +1,891 @@ +/* + * linux/arch/arm/mach-bcm2708/bcm2708.c + * @@ -3563,12 +3563,6 @@ index 0000000..c9d6bd1 + } while ((long)(now - start) <= usecs); +} + -+void __delay(int loops) -+{ -+ while (--loops > 0) -+ nop(); -+} -+ +MACHINE_START(BCM2708, "BCM2708") + /* Maintainer: Broadcom Europe Ltd. */ + .map_io = bcm2708_map_io,.init_irq = bcm2708_init_irq,.timer = @@ -4074,6 +4068,32 @@ index 0000000..5f9d725 +struct clk { + unsigned long rate; +}; +diff --git a/arch/arm/mach-bcm2708/delay.S b/arch/arm/mach-bcm2708/delay.S +new file mode 100644 +index 0000000..4256d29 +--- /dev/null ++++ b/arch/arm/mach-bcm2708/delay.S +@@ -0,0 +1,20 @@ ++/* ++ * linux/arch/arm/lib/delay.S ++ * ++ * Copyright (C) 1995, 1996 Russell King ++ * ++ * 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. ++ */ ++#include ++#include ++#include ++ ++ .text ++@ Delay routine ++ENTRY(__delay) ++ subs r0, r0, #1 ++ bhi __delay ++ mov pc, lr ++ENDPROC(__delay) diff --git a/arch/arm/mach-bcm2708/dma.c b/arch/arm/mach-bcm2708/dma.c new file mode 100644 index 0000000..0b7a4f6