mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[PATCH] m32r: bootloader support for OPSPUT platform
This patch supports "m32r-g00ff" bootloader for an OPSPUT platform. Applying this patch, it is possible to do ATA-boot from an IDE drive or HTTP-boot from network by m32r-g00ff. * arch/m32r/boot/compressed/m32r_sio.c: Fix hangup on OPSPUT at boot. * arch/m32r/kernel/io_opsput.c: IDE support for OPSPUT. * arch/m32r/kernel/setup_opsput.c: ditto. * include/asm-m32r/ide.h: ditto. Signed-off-by: Kazuhiro Inaoka <inaoka@linux-m32r.org> Signed-off-by: Hirokazu Takata <takata@linux-m32r.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
6b8bd3f4b2
commit
d93f7de8c5
4 changed files with 84 additions and 14 deletions
|
@ -2,6 +2,7 @@
|
|||
* arch/m32r/boot/compressed/m32r_sio.c
|
||||
*
|
||||
* 2003-02-12: Takeo Takahashi
|
||||
* 2006-11-30: OPSPUT support by Kazuhiro Inaoka
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -16,7 +17,7 @@ static int puts(const char *s)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_PLAT_M32700UT_Alpha) || defined(CONFIG_PLAT_M32700UT)
|
||||
#if defined(CONFIG_PLAT_M32700UT_Alpha) || defined(CONFIG_PLAT_M32700UT) || defined(CONFIG_PLAT_OPSPUT)
|
||||
#include <asm/m32r.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
|
@ -31,7 +32,11 @@ static int puts(const char *s)
|
|||
#define BOOT_SIO0TXB (volatile unsigned short *)(0x02c00000 + 0x2000c)
|
||||
#else
|
||||
#undef PLD_BASE
|
||||
#if defined(CONFIG_PLAT_OPSPUT)
|
||||
#define PLD_BASE 0x1cc00000
|
||||
#else
|
||||
#define PLD_BASE 0xa4c00000
|
||||
#endif
|
||||
#define BOOT_SIO0STS PLD_ESIO0STS
|
||||
#define BOOT_SIO0TXB PLD_ESIO0TXB
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue