Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759807AbYF3JYQ (ORCPT ); Mon, 30 Jun 2008 05:24:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759924AbYF3JWp (ORCPT ); Mon, 30 Jun 2008 05:22:45 -0400 Received: from smtpeu1.atmel.com ([195.65.72.27]:62565 "EHLO bagnes.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759223AbYF3JWn (ORCPT ); Mon, 30 Jun 2008 05:22:43 -0400 From: Haavard Skinnemoen To: kernel@avr32linux.org Cc: linux-kernel@vger.kernel.org, Haavard Skinnemoen Subject: [PATCH 6/8] avr32: Add simple SRAM allocator Date: Mon, 30 Jun 2008 11:21:14 +0200 Message-Id: <1214817676-30378-7-git-send-email-haavard.skinnemoen@atmel.com> X-Mailer: git-send-email 1.5.5.4 In-Reply-To: <1214817676-30378-6-git-send-email-haavard.skinnemoen@atmel.com> References: <1214817676-30378-1-git-send-email-haavard.skinnemoen@atmel.com> <1214817676-30378-2-git-send-email-haavard.skinnemoen@atmel.com> <1214817676-30378-3-git-send-email-haavard.skinnemoen@atmel.com> <1214817676-30378-4-git-send-email-haavard.skinnemoen@atmel.com> <1214817676-30378-5-git-send-email-haavard.skinnemoen@atmel.com> <1214817676-30378-6-git-send-email-haavard.skinnemoen@atmel.com> X-OriginalArrivalTime: 30 Jun 2008 09:21:08.0023 (UTC) FILETIME=[A0F01C70:01C8DA92] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2873 Lines: 110 From: Haavard Skinnemoen Add SRAM allocator for avr32, which is just a thin wrapper around genalloc. Signed-off-by: Haavard Skinnemoen --- arch/avr32/Kconfig | 1 + arch/avr32/mach-at32ap/at32ap700x.c | 26 ++++++++++++++++++++++++++ include/asm-avr32/arch-at32ap/sram.h | 30 ++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 0 deletions(-) create mode 100644 include/asm-avr32/arch-at32ap/sram.h diff --git a/arch/avr32/Kconfig b/arch/avr32/Kconfig index 09ad799..4ff3dea 100644 --- a/arch/avr32/Kconfig +++ b/arch/avr32/Kconfig @@ -88,6 +88,7 @@ config PLATFORM_AT32AP select MMU select PERFORMANCE_COUNTERS select HAVE_GPIO_LIB + select GENERIC_ALLOCATOR # # CPU types diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c index 3ee5e72..07b21b1 100644 --- a/arch/avr32/mach-at32ap/at32ap700x.c +++ b/arch/avr32/mach-at32ap/at32ap700x.c @@ -20,6 +20,7 @@ #include #include #include +#include #include