diff options
| -rw-r--r-- | board/sc520_cdp/sc520_cdp_asm.S | 4 | ||||
| -rw-r--r-- | board/sc520_spunk/Makefile | 2 | ||||
| -rw-r--r-- | board/sc520_spunk/flash.c | 30 | ||||
| -rw-r--r-- | board/sc520_spunk/sc520_spunk_asm.S | 4 | ||||
| -rw-r--r-- | cpu/i386/start.S | 20 | ||||
| -rw-r--r-- | drivers/pcmcia/Makefile | 1 | ||||
| -rw-r--r-- | drivers/pcmcia/i82365.c | 4 | ||||
| -rw-r--r-- | examples/.gitignore | 4 | ||||
| -rw-r--r-- | lib_i386/bootm.c | 1 | 
9 files changed, 26 insertions, 44 deletions
| diff --git a/board/sc520_cdp/sc520_cdp_asm.S b/board/sc520_cdp/sc520_cdp_asm.S index be7b2bb48..7f70d65d5 100644 --- a/board/sc520_cdp/sc520_cdp_asm.S +++ b/board/sc520_cdp/sc520_cdp_asm.S @@ -76,8 +76,8 @@ done:   movb	$0x88, %al  	jmp 	*%ebp		     /* return to caller */ -.globl __show_boot_progress -__show_boot_progress: +.globl show_boot_progress +show_boot_progress:  	out	%al, $0x80  	xchg	%al, %ah  	movw	$0x680, %dx diff --git a/board/sc520_spunk/Makefile b/board/sc520_spunk/Makefile index bfb77e8f8..226c756bf 100644 --- a/board/sc520_spunk/Makefile +++ b/board/sc520_spunk/Makefile @@ -36,7 +36,7 @@ OBJS	:= $(addprefix $(obj),$(COBJS))  SOBJS	:= $(addprefix $(obj),$(SOBJS))  $(LIB):	$(obj).depend $(OBJS) $(SOBJS) -	$(AR) $(ARFLAGS) $@ $(OBJS) +	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)  clean:  	rm -f $(SOBJS) $(OBJS) diff --git a/board/sc520_spunk/flash.c b/board/sc520_spunk/flash.c index 4942e598d..0b4bf6889 100644 --- a/board/sc520_spunk/flash.c +++ b/board/sc520_spunk/flash.c @@ -33,7 +33,6 @@  #define PROBE_BUFFER_SIZE 1024  static unsigned char buffer[PROBE_BUFFER_SIZE]; -  #define SC520_MAX_FLASH_BANKS  1  #define SC520_FLASH_BANK0_BASE 0x38000000  /* BOOTCS */  #define SC520_FLASH_BANKSIZE   0x8000000 @@ -62,7 +61,6 @@ flash_info_t    flash_info[SC520_MAX_FLASH_BANKS];  /*-----------------------------------------------------------------------   */ -  static u32 _probe_flash(u32 addr, u32 bw, int il)  {  	u32 result=0; @@ -180,7 +178,6 @@ static u32 _probe_flash(u32 addr, u32 bw, int il)  		break;  	} -  	return result;  } @@ -215,11 +212,9 @@ static int identify_flash(unsigned address, int width)  		enable_interrupts();  	} -  	vendor = res >> 16;  	device = res & 0xffff; -  	return res;  } @@ -385,7 +380,6 @@ void flash_print_info(flash_info_t *info)  		break;  	} -  	printf("  Size: %ld MB in %d Sectors\n",  	       info->size >> 20, info->sector_count); @@ -399,13 +393,13 @@ void flash_print_info(flash_info_t *info)  	}  	printf ("\n"); -	done: +done: +	return;  }  /*-----------------------------------------------------------------------   */ -  static u32 _amd_erase_flash(u32 addr, u32 sector)  {  	unsigned elapsed; @@ -467,7 +461,6 @@ static u32 _intel_erase_flash(u32 addr, u32 sector)  	*(volatile u16*)(addr + sector) = 0x0020;   /* erase setup */  	*(volatile u16*)(addr + sector) = 0x00D0;   /* erase confirm */ -  	/* Wait at least 80us - let's wait 1 ms */  	__udelay(1000); @@ -486,7 +479,6 @@ static u32 _intel_erase_flash(u32 addr, u32 sector)  	return 0;  } -  extern int _intel_erase_flash_end;  asm ("_intel_erase_flash_end:\n"       ".long 0\n"); @@ -548,7 +540,6 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)  		printf ("\n");  	} -  	/* Start erase on unprotected sectors */  	for (sect = s_first; sect<=s_last; sect++) { @@ -566,7 +557,6 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)  				enable_interrupts();  			} -  			if (res) {  				printf("Erase timed out, sector %d\n", sect);  				return res; @@ -576,7 +566,6 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)  		}  	} -  	return 0;  } @@ -586,11 +575,11 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)   * 1 - write timeout   * 2 - Flash not erased   */ -static int _amd_write_word(unsigned start, unsigned dest, unsigned data) +static int _amd_write_word(unsigned start, unsigned dest, u16 data)  { -	volatile u16 *addr2 = (u16*)start; -	volatile u16 *dest2 = (u16*)dest; -	volatile u16 *data2 = (u16*)&data; +	volatile u16 *addr2 = (volatile u16*)start; +	volatile u16 *dest2 = (volatile u16*)dest; +	volatile u16 *data2 = (volatile u16*)&data;  	int i;  	unsigned elapsed; @@ -601,7 +590,6 @@ static int _amd_write_word(unsigned start, unsigned dest, unsigned data)  	for (i = 0; i < 2; i++) { -  		addr2[0x5555] = 0x00AA;  		addr2[0x2aaa] = 0x0055;  		addr2[0x5555] = 0x00A0; @@ -630,7 +618,6 @@ extern int _amd_write_word_end;  asm ("_amd_write_word_end:\n"       ".long 0\n"); -  static int _intel_write_word(unsigned start, unsigned dest, unsigned data)  {  	int i; @@ -663,14 +650,12 @@ static int _intel_write_word(unsigned start, unsigned dest, unsigned data)  	return 0; -  }  extern int _intel_write_word_end;  asm ("_intel_write_word_end:\n"       ".long 0\n"); -  /*-----------------------------------------------------------------------   * Copy memory to flash, returns:   * 0 - OK @@ -715,10 +700,8 @@ int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt)  		return 3;  	} -  	wp = (addr & ~3);	/* get lower word aligned address */ -  	/*  	 * handle unaligned start bytes  	 */ @@ -805,5 +788,4 @@ int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt)  	}  	return rc; -  } diff --git a/board/sc520_spunk/sc520_spunk_asm.S b/board/sc520_spunk/sc520_spunk_asm.S index 8b3410399..0127076db 100644 --- a/board/sc520_spunk/sc520_spunk_asm.S +++ b/board/sc520_spunk/sc520_spunk_asm.S @@ -73,8 +73,8 @@ done:   movl    $0xfffefc32,%edx  	jmp 	*%ebp		     /* return to caller */ -.globl __show_boot_progress -__show_boot_progress: +.globl show_boot_progress +show_boot_progress:  	movl    $0xfffefc32,%edx  	xorw    $0xffff, %ax  	movw    %ax,(%edx) diff --git a/cpu/i386/start.S b/cpu/i386/start.S index 1a54dd10e..51a27aa21 100644 --- a/cpu/i386/start.S +++ b/cpu/i386/start.S @@ -55,7 +55,7 @@ early_board_init_ret:  	/* so we try to indicate progress */  	movw	$0x01, %ax  	movl	$.progress0, %ebp -	jmp	__show_boot_progress +	jmp	show_boot_progress  .progress0:  	/* size memory */ @@ -74,7 +74,7 @@ mem_init_ret:  	/* indicate (lack of) progress */  	movw	$0x81, %ax  	movl	$.progress0a, %ebp -	jmp	__show_boot_progress +	jmp	show_boot_progress  .progress0a:  	jmp 	die  mem_ok: @@ -82,7 +82,7 @@ mem_ok:  	/* indicate progress */  	movw	$0x02, %ax  	movl	$.progress1, %ebp -	jmp	__show_boot_progress +	jmp	show_boot_progress  .progress1:  	/* create a stack after the bss */ @@ -104,7 +104,7 @@ no_stack:  	/* indicate (lack of) progress */  	movw	$0x82, %ax  	movl	$.progress1a, %ebp -	jmp	__show_boot_progress +	jmp	show_boot_progress  .progress1a:  	jmp die @@ -113,7 +113,7 @@ stack_ok:  	/* indicate progress */  	movw	$0x03, %ax  	movl	$.progress2, %ebp -	jmp	__show_boot_progress +	jmp	show_boot_progress  .progress2:  	/* copy data section to ram, size must be 4-byte aligned */ @@ -136,7 +136,7 @@ data_fail:  	/* indicate (lack of) progress */  	movw	$0x83, %ax  	movl	$.progress2a, %ebp -	jmp	__show_boot_progress +	jmp	show_boot_progress  .progress2a:  	jmp 	die @@ -145,7 +145,7 @@ data_ok:  	/* indicate progress */  	movw	$0x04, %ax  	movl	$.progress3, %ebp -	jmp	__show_boot_progress +	jmp	show_boot_progress  .progress3:  	/* clear bss section in ram, size must be 4-byte aligned  */ @@ -168,7 +168,7 @@ bss_fail:  	/* indicate (lack of) progress */  	movw	$0x84, %ax  	movl	$.progress3a, %ebp -	jmp	__show_boot_progress +	jmp	show_boot_progress  .progress3a:  	jmp 	die @@ -180,7 +180,7 @@ bss_ok:  	/* indicate progress */  	movw	$0x05, %ax  	movl	$.progress4, %ebp -	jmp	__show_boot_progress +	jmp	show_boot_progress  .progress4:  	call	start_i386boot  /* Enter, U-boot! */ @@ -188,7 +188,7 @@ bss_ok:  	/* indicate (lack of) progress */  	movw	$0x85, %ax  	movl	$.progress4a, %ebp -	jmp	__show_boot_progress +	jmp	show_boot_progress  .progress4a:  die:	hlt diff --git a/drivers/pcmcia/Makefile b/drivers/pcmcia/Makefile index bba1ab851..53a485d0d 100644 --- a/drivers/pcmcia/Makefile +++ b/drivers/pcmcia/Makefile @@ -25,6 +25,7 @@ include $(TOPDIR)/config.mk  LIB 	:= $(obj)libpcmcia.a +COBJS-$(CONFIG_I82365) += i82365.o  COBJS-y += mpc8xx_pcmcia.o  COBJS-y += pxa_pcmcia.o  COBJS-y += rpx_pcmcia.o diff --git a/drivers/pcmcia/i82365.c b/drivers/pcmcia/i82365.c index a40fcf41c..1e2431e49 100644 --- a/drivers/pcmcia/i82365.c +++ b/drivers/pcmcia/i82365.c @@ -31,8 +31,6 @@  #include <common.h> -#ifdef CONFIG_I82365 -  #include <command.h>  #include <pci.h>  #include <pcmcia.h> @@ -1010,5 +1008,3 @@ static void i82365_dump_regions (pci_dev_t dev)  		ide[4], ide[5], ide[6], ide[7]);  }  #endif	/* DEBUG */ - -#endif /* CONFIG_I82365 */ diff --git a/examples/.gitignore b/examples/.gitignore index 059b09641..806425ff7 100644 --- a/examples/.gitignore +++ b/examples/.gitignore @@ -1,5 +1,9 @@ +/82559_eeprom  /hello_world  /interrupt +/mem_to_mem_idma2intr +/test_burst +/timer  /sched  /smc91111_eeprom  *.bin diff --git a/lib_i386/bootm.c b/lib_i386/bootm.c index 107ebaaa6..d959107c7 100644 --- a/lib_i386/bootm.c +++ b/lib_i386/bootm.c @@ -37,7 +37,6 @@ void do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],  	void		*base_ptr;  	ulong		os_data, os_len;  	ulong		initrd_start, initrd_end; -	ulong		ep;  	image_header_t	*hdr;  	int		ret;  #if defined(CONFIG_FIT) |