From patchwork Thu Oct 29 10:51:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 56444 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9TAue7c016657 for ; Thu, 29 Oct 2009 10:56:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752113AbZJ2K4e (ORCPT ); Thu, 29 Oct 2009 06:56:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752319AbZJ2K4e (ORCPT ); Thu, 29 Oct 2009 06:56:34 -0400 Received: from mail-yx0-f187.google.com ([209.85.210.187]:64390 "EHLO mail-yx0-f187.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752113AbZJ2K4d (ORCPT ); Thu, 29 Oct 2009 06:56:33 -0400 Received: by yxe17 with SMTP id 17so1523395yxe.33 for ; Thu, 29 Oct 2009 03:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :in-reply-to:references:subject; bh=DZNXvNKxKIW8/TJRAQaWoaaGaKCWbl4RG10k4sp1jQA=; b=syNJDdUl24hcJBqGP3YVrSJmy022F0QNM6P2ePffT7a4kgbPcRBtm1hTQu8tAfBNN7 iMObZlcWq+/Rbt5DJjtj1MEuaMGsToSIJ5Y3hBDYAHLiDQlt4nEW7OsB6mJCLPaKIRoU /NmZJnt6JsEOV9ECqwFU3y/b/e3JjZSmX8wcU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:in-reply-to:references:subject; b=qk2YdlSLug96Ofq6urXOcjVUB8jxt5Gu9gMSrVycQOOHqlrGxHivqJiahMyfyK1DAo Bb50DLF59R4ev129Z3/hJNpBCa+gCR7nWUzAFWwzVy3LDNtgdUzihNIJpOpIUEtJR/H1 Cdpbfvktth72oj0TiznSV1WwFTINS0rCtlmDo= Received: by 10.150.130.24 with SMTP id c24mr10071ybd.168.1256813798296; Thu, 29 Oct 2009 03:56:38 -0700 (PDT) Received: from rxone.opensource.se (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id 6sm691336ywd.22.2009.10.29.03.56.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 29 Oct 2009 03:56:37 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Thu, 29 Oct 2009 19:51:40 +0900 Message-Id: <20091029105140.29078.90079.sendpatchset@rxone.opensource.se> In-Reply-To: <20091029105131.29078.26418.sendpatchset@rxone.opensource.se> References: <20091029105131.29078.26418.sendpatchset@rxone.opensource.se> Subject: [PATCH 01/07] sh: Rename romimage-macros.h to partner-jet-macros.h Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org --- /dev/null +++ work/arch/sh/include/asm/partner-jet-macros.h 2009-10-28 18:02:15.000000000 +0900 @@ -0,0 +1,73 @@ +#ifndef __ROMIMAGE_MACRO_H +#define __ROMIMAGE_MACRO_H + +/* The LIST command is used to include comments in the script */ +.macro LIST comment +.endm + +/* The ED command is used to write a 32-bit word */ +.macro ED, addr, data + mov.l 1f, r1 + mov.l 2f, r0 + mov.l r0, @r1 + bra 3f + nop + .align 2 +1 : .long \addr +2 : .long \data +3 : +.endm + +/* The EW command is used to write a 16-bit word */ +.macro EW, addr, data + mov.l 1f, r1 + mov.l 2f, r0 + mov.w r0, @r1 + bra 3f + nop + .align 2 +1 : .long \addr +2 : .long \data +3 : +.endm + +/* The EB command is used to write an 8-bit word */ +.macro EB, addr, data + mov.l 1f, r1 + mov.l 2f, r0 + mov.b r0, @r1 + bra 3f + nop + .align 2 +1 : .long \addr +2 : .long \data +3 : +.endm + +/* The WAIT command is used to delay the execution */ +.macro WAIT, time + mov.l 2f, r3 +1 : + nop + tst r3, r3 + bf/s 1b + dt r3 + bra 3f + nop + .align 2 +2 : .long \time * 100 +3 : +.endm + +/* The DD command is used to read a 32-bit word */ +.macro DD, addr, addr2, nr + mov.l 1f, r1 + mov.l @r1, r0 + bra 2f + nop + .align 2 +1 : .long \addr +2 : +.endm + +#endif /* __ROMIMAGE_MACRO_H */ --- 0001/arch/sh/include/asm/romimage-macros.h +++ /dev/null 2009-10-26 09:40:59.257024378 +0900 @@ -1,73 +0,0 @@ -#ifndef __ROMIMAGE_MACRO_H -#define __ROMIMAGE_MACRO_H - -/* The LIST command is used to include comments in the script */ -.macro LIST comment -.endm - -/* The ED command is used to write a 32-bit word */ -.macro ED, addr, data - mov.l 1f, r1 - mov.l 2f, r0 - mov.l r0, @r1 - bra 3f - nop - .align 2 -1 : .long \addr -2 : .long \data -3 : -.endm - -/* The EW command is used to write a 16-bit word */ -.macro EW, addr, data - mov.l 1f, r1 - mov.l 2f, r0 - mov.w r0, @r1 - bra 3f - nop - .align 2 -1 : .long \addr -2 : .long \data -3 : -.endm - -/* The EB command is used to write an 8-bit word */ -.macro EB, addr, data - mov.l 1f, r1 - mov.l 2f, r0 - mov.b r0, @r1 - bra 3f - nop - .align 2 -1 : .long \addr -2 : .long \data -3 : -.endm - -/* The WAIT command is used to delay the execution */ -.macro WAIT, time - mov.l 2f, r3 -1 : - nop - tst r3, r3 - bf/s 1b - dt r3 - bra 3f - nop - .align 2 -2 : .long \time * 100 -3 : -.endm - -/* The DD command is used to read a 32-bit word */ -.macro DD, addr, addr2, nr - mov.l 1f, r1 - mov.l @r1, r0 - bra 2f - nop - .align 2 -1 : .long \addr -2 : -.endm - -#endif /* __ROMIMAGE_MACRO_H */ --- 0001/arch/sh/include/mach-ecovec24/mach/romimage.h +++ work/arch/sh/include/mach-ecovec24/mach/romimage.h 2009-10-29 12:53:15.000000000 +0900 @@ -3,7 +3,7 @@ * the assembly code is the first code to be executed in the romImage */ -#include +#include #include "partner-jet-setup.txt" /* execute icbi after enabling cache */ --- 0001/arch/sh/include/mach-kfr2r09/mach/romimage.h +++ work/arch/sh/include/mach-kfr2r09/mach/romimage.h 2009-10-29 12:53:01.000000000 +0900 @@ -3,7 +3,7 @@ * the assembly code is the first code to be executed in the romImage */ -#include +#include #include "partner-jet-setup.txt" /* execute icbi after enabling cache */