PXA: Rework start.S to be closer to other ARMs
Subsystems (4)
PATCH 1/19 PXA: Rework start.S to be closer to other ARMs
The start.S on PXA was very obscure. This reworks it back to be close to arm1136 start.S and others.
V2: Don't compile in relocation support if building SPL
--- arch/arm/cpu/pxa/cpu.c | 16 ++ arch/arm/cpu/pxa/start.S | 384 ++++++++++++++++----------------------------- 2 files changed, 153 insertions(+), 247 deletions(-)
arch/arm/cpu/pxa/cpu.c +16 -0
@@ -328,3 +328,19 @@ void i2c_clk_enable(void)writel (readl (CKEN ) |CKEN14_I2C ,CKEN );#endif } + +void reset_cpu (ulong ignored) __attribute__((noreturn)); + +void reset_cpu (ulong ignored) +{ +uint32_t tmp; + +setbits_le32 (OWER ,OWER_WME ); + + tmp =readl (OSCR ); + tmp +=0x1000 ; +writel (tmp,OSMR3 ); + +for (;;) + ; +}
arch/arm/cpu/pxa/start.S +137 -247
552 lines not on this page · raw message
Signature · 1 line
1.7.7.1
PATCH 2/19 PXA: Re-add the Dcache locking as RAM for pxa250
--- arch/arm/cpu/pxa/start.S | 112 ++++++++++++++++++++++++++++++++++++++++++- arch/arm/cpu/pxa/u-boot.lds | 6 ++ 2 files changed, 116 insertions(+), 2 deletions(-)
arch/arm/cpu/pxa/start.S +110 -2
@@ -38,6 +38,13 @@ #include <asm-offsets.h> #include <config.h> #include <version.h> + +#ifdef CONFIG_PXA25X +#if ((CONFIG_SYS_INIT_SP_ADDR) != 0xfffff800) +#error "Init SP address must be set to 0xfffff800 for PXA250" +#endif +#endif + .globl _start _start: b reset #ifdef CONFIG_SPL_BUILD
@@ -153,6 +160,10 @@ reset: bl cpu_init_crit #endif +#ifdef CONFIG_PXA250 + bl lock_cache_for_stack +#endif + /* Set stackpointer in internal RAM to call board_init_f */ call_board_init_f: ldr sp, =(CONFIG_SYS_INIT_SP_ADDR)
@@ -179,6 +190,11 @@ relocate_code: stack_setup: mov sp, r4 +/* Disable the Dcache RAM lock for stack now */ +#ifdef CONFIG_PXA250 + bl cpu_init_crit +#endif + adr r0, _start cmp r0, r6 beq clear_bss /* skip relocation */
@@ -291,7 +307,7 @@ _dynsym_start_ofs: * ************************************************************************* */ -#ifndef CONFIG_SKIP_LOWLEVEL_INIT +#if !defined(CONFIG_SKIP_LOWLEVEL_INIT) || defined(CONFIG_PXA250) cpu_init_crit: /* * flush v4 I/D caches
@@ -311,7 +327,7 @@ cpu_init_crit: mcr p15, 0, r0, c1, c0, 0 mov pc, lr /* back to my caller */ -#endif /* CONFIG_SKIP_LOWLEVEL_INIT */ +#endif /* !CONFIG_SKIP_LOWLEVEL_INIT || CONFIG_PXA250 */ #ifndef CONFIG_SPL_BUILD /*
@@ -495,3 +511,95 @@ fiq: #endif .align 5 #endif /* CONFIG_SPL_BUILD */ + + +/* + * Enable MMU to use DCache as DRAM. + * + * This is useful on PXA25x and PXA26x in early bootstages, where there is no + * other possible memory available to hold stack. + */ +#ifdef CONFIG_PXA250 +.macro CPWAIT reg + mrc p15, 0, \reg, c2, c0, 0 + mov \reg, \reg + sub pc, pc, #4 +.endm +lock_cache_for_stack: + /* Domain access -- enable for all CPs */ + ldr r0, =0x0000ffff + mcr p15, 0, r0, c3, c0, 0 + + /* Point TTBR to MMU table */ + ldr r0, =mmutable + mcr p15, 0, r0, c2, c0, 0 + + /* Kick in MMU, ICache, DCache, BTB */ + mrc p15, 0, r0, c1, c0, 0 + bic r0, #0x1b00 + bic r0, #0x0087 + orr r0, #0x1800 + orr r0, #0x0005 + mcr p15, 0, r0, c1, c0, 0 + CPWAIT r0 + + /* Unlock Icache, Dcache */ + mcr p15, 0, r0, c9, c1, 1 + mcr p15, 0, r0, c9, c2, 1 + + /* Flush Icache, Dcache, BTB */ + mcr p15, 0, r0, c7, c7, 0 + + /* Unlock I-TLB, D-TLB */ + mcr p15, 0, r0, c10, c4, 1 + mcr p15, 0, r0, c10, c8, 1 + + /* Flush TLB */ + mcr p15, 0, r0, c8, c7, 0 + + /* Allocate 4096 bytes of Dcache as RAM */ + + /* Drain pending loads and stores */ + mcr p15, 0, r0, c7, c10, 4 + + mov r4, #0x00 + mov r5, #0x00 + mov r2, #0x01 + mcr p15, 0, r0, c9, c2, 0 + CPWAIT r0 + + /* 128 lines reserved (128 x 32bytes = 4096 bytes total) */ + mov r0, #128 + ldr r1, =0xfffff000 + +alloc: + mcr p15, 0, r1, c7, c2, 5 + /* Drain pending loads and stores */ + mcr p15, 0, r0, c7, c10, 4 + strd r4, [r1], #8 + strd r4, [r1], #8 + strd r4, [r1], #8 + strd r4, [r1], #8 + subs r0, #0x01 + bne alloc + /* Drain pending loads and stores */ + mcr p15, 0, r0, c7, c10, 4 + mov r2, #0x00 + mcr p15, 0, r2, c9, c2, 0 + CPWAIT r0 + + mov pc, lr + +.section .mmutable, "a" +mmutable: + .align 14 + /* 0x00000000 - 0xffe00000 : 1:1, uncached mapping */ + .set __base, 0 + .rept 0xfff + .word (__base << 20) | 0xc12 + .set __base, __base + 1 + .endr + + /* 0xfff00000 : 1:1, cached mapping */ + .word (0xfff << 20) | 0x1c1e +#endif /* CONFIG_PXA250 */
arch/arm/cpu/pxa/u-boot.lds +6 -0
@@ -63,6 +63,12 @@ SECTIONS *(.dynsym) } + . = ALIGN(4096); + + .mmutable : { + *(.mmutable) + } + _end = .; .bss __rel_dyn_start (OVERLAY) : {
Signature · 1 line
1.7.7.1
PATCH 3/19 PXA: Fixup PXA25x boards after start.S update
In reply to Marek Vasut--- include/configs/lubbock.h | 2 +- include/configs/palmtc.h | 2 +- include/configs/pxa255_idp.h | 2 +- include/configs/xaeniax.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
include/configs/lubbock.h +1 -1
@@ -175,7 +175,7 @@#define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 -#define CONFIG_SYS_INIT_SP_ADDR (GENERATED_GBL_DATA_SIZE + PHYS_SDRAM_1) +#define CONFIG_SYS_INIT_SP_ADDR 0xfffff800#define FPGA_REGS_BASE_PHYSICAL 0x08000000
include/configs/palmtc.h +1 -1
@@ -157,7 +157,7 @@#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_DRAM_BASE#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 -#define CONFIG_SYS_INIT_SP_ADDR (GENERATED_GBL_DATA_SIZE + PHYS_SDRAM_1) +#define CONFIG_SYS_INIT_SP_ADDR 0xfffff800/* * NOR FLASH
include/configs/pxa255_idp.h +1 -1
@@ -291,7 +291,7 @@#define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 -#define CONFIG_SYS_INIT_SP_ADDR (GENERATED_GBL_DATA_SIZE + PHYS_SDRAM_1) +#define CONFIG_SYS_INIT_SP_ADDR 0xfffff800/* * GPIO settings
include/configs/xaeniax.h +1 -1
@@ -168,7 +168,7 @@#define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 -#define CONFIG_SYS_INIT_SP_ADDR (GENERATED_GBL_DATA_SIZE + PHYS_SDRAM_1) +#define CONFIG_SYS_INIT_SP_ADDR 0xfffff800/* * FLASH and environment organization
Signature · 1 line
1.7.7.1
PATCH 4/19 PXA: Drop Voipac PXA270 OneNAND IPL
In reply to Marek VasutThis OneNAND IPL will be replaced by OneNAND SPL.
--- onenand_ipl/board/vpac270/Makefile | 79 -------------------------- onenand_ipl/board/vpac270/config.mk | 1 - onenand_ipl/board/vpac270/u-boot.onenand.lds | 51 ----------------- onenand_ipl/board/vpac270/vpac270.c | 42 -------------- 4 files changed, 0 insertions(+), 173 deletions(-) delete mode 100644 onenand_ipl/board/vpac270/Makefile delete mode 100644 onenand_ipl/board/vpac270/config.mk delete mode 100644 onenand_ipl/board/vpac270/u-boot.onenand.lds delete mode 100644 onenand_ipl/board/vpac270/vpac270.c
onenand_ipl/board/vpac270/Makefile deleted +0 -79
@@ -1,79 +0,0 @@ - -include $(TOPDIR)/config.mk -include $(TOPDIR)/board/$(BOARDDIR)/config.mk - -LDSCRIPT= $(TOPDIR)/onenand_ipl/board/$(BOARDDIR)/u-boot.onenand.lds -LDFLAGS = -Bstatic -T $(onenandobj)u-boot.lds -Ttext $(CONFIG_SYS_TEXT_BASE) $(PLATFORM_LDFLAGS) -AFLAGS += -DCONFIG_SPL_BUILD -DCONFIG_ONENAND_IPL -CFLAGS += -DCONFIG_SPL_BUILD -DCONFIG_ONENAND_IPL -OBJCFLAGS += --gap-fill=0x00 - -SOBJS += start.o -COBJS := vpac270.o -COBJS += onenand_read.o -COBJS += onenand_boot.o - -SRCS := $(addprefix $(obj),$(SOBJS:.o=.S) $(COBJS:.o=.c)) -OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) -__OBJS := $(SOBJS) $(COBJS) -LNDIR := $(OBJTREE)/onenand_ipl/board/$(BOARDDIR) - -onenandobj := $(OBJTREE)/onenand_ipl/ - -ALL = $(onenandobj)onenand-ipl $(onenandobj)onenand-ipl.bin $(onenandobj)onenand-ipl-2k.bin - -all: $(obj).depend $(ALL) - -$(onenandobj)onenand-ipl-2k.bin: $(onenandobj)onenand-ipl - $(OBJCOPY) ${OBJCFLAGS} --pad-to=0x0800 -O binary $< $@ - -$(onenandobj)onenand-ipl.bin: $(onenandobj)onenand-ipl - $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ - -$(onenandobj)onenand-ipl: $(OBJS) $(onenandobj)u-boot.lds - cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ - -Map [email protected] -o $@ - -$(onenandobj)u-boot.lds: $(LDSCRIPT) - $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@ - -# create symbolic links from common files - -# from cpu directory -$(obj)start.S: - @rm -f $@ - ln -s $(SRCTREE)/$(CPUDIR)/start.S $@ - -# from onenand_ipl directory -$(obj)onenand_ipl.h: - @rm -f $@ - ln -s $(SRCTREE)/onenand_ipl/onenand_ipl.h $@ - -$(obj)onenand_boot.c: $(obj)onenand_ipl.h - @rm -f $@ - ln -s $(SRCTREE)/onenand_ipl/onenand_boot.c $@ - -$(obj)onenand_read.c: $(obj)onenand_ipl.h - @rm -f $@ - ln -s $(SRCTREE)/onenand_ipl/onenand_read.c $@ - -ifneq ($(OBJTREE), $(SRCTREE)) -$(obj)vpac270.c: - @rm -f $@ - ln -s $(SRCTREE)/onenand_ipl/board/$(BOARDDIR)/vpac270.c $@ -endif - -######################################################################### - -$(obj)%.o: $(obj)%.S - $(CC) $(AFLAGS) -c -o $@ $< - -$(obj)%.o: $(obj)$.c - $(CC) $(CFLAGS) -c -o $@ $< - -# defines $(obj).depend target -include $(SRCTREE)/rules.mk - -sinclude $(obj).depend - -#########################################################################
onenand_ipl/board/vpac270/config.mk deleted +0 -1
@@ -1 +0,0 @@ -CONFIG_SYS_TEXT_BASE = 0x5c03fc00
onenand_ipl/board/vpac270/u-boot.onenand.lds deleted +0 -51
51 lines not on this page · raw message
onenand_ipl/board/vpac270/vpac270.c deleted +0 -42
42 lines not on this page · raw message
Signature · 1 line
1.7.7.1
PATCH 5/19 PXA: Adapt Voipac PXA270 to OneNAND SPL
In reply to Marek VasutV2: Add missing u-boot-spl.lds, convert bitshifts to division,
convert to spl_onenand_load_image()
--- board/vpac270/Makefile | 4 ++ board/vpac270/onenand.c | 66 ++++++++++++++++++++++++++++++ board/vpac270/u-boot-spl.lds | 92 ++++++++++++++++++++++++++++++++++++++++++ board/vpac270/vpac270.c | 2 + include/configs/vpac270.h | 25 +++++++++-- 5 files changed, 184 insertions(+), 5 deletions(-) create mode 100644 board/vpac270/onenand.c create mode 100644 board/vpac270/u-boot-spl.lds
board/vpac270/Makefile +4 -0
@@ -23,7 +23,11 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).o +ifndef CONFIG_SPL_BUILD COBJS := vpac270.o +else +COBJS := onenand.o +endif SRCS := $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS))
board/vpac270/onenand.c new file +66 -0
66 lines not on this page · raw message
board/vpac270/u-boot-spl.lds new file +92 -0
92 lines not on this page · raw message
board/vpac270/vpac270.c +2 -0
@@ -57,7 +57,9 @@ struct serial_device *default_serial_console(void)extern void pxa_dram_init (void );int dram_init (void ) { +#ifndef CONFIG_ONENAND pxa_dram_init (); +#endif gd->ram_size =PHYS_SDRAM_1_SIZE ;return 0 ; }
include/configs/vpac270.h +20 -5
@@ -27,7 +27,17 @@*/ #define CONFIG_PXA27X 1/* Marvell PXA270 CPU */ #define CONFIG_VPAC270 1/* Voipac PXA270 board */ -#define CONFIG_SYS_TEXT_BASE 0x0 +#define CONFIG_SYS_TEXT_BASE 0xa0000000 + +#ifdef CONFIG_ONENAND +#define CONFIG_SPL +#define CONFIG_SPL_ONENAND_SUPPORT +#define CONFIG_SPL_ONENAND_LOAD_ADDR 0x2000 +#define CONFIG_SPL_ONENAND_LOAD_SIZE \ + (512 * 1024 - CONFIG_SPL_ONENAND_LOAD_ADDR) +#define CONFIG_SPL_TEXT_BASE 0x5c000000 +#define CONFIG_SPL_LDSCRIPT "board/vpac270/u-boot-spl.lds" +#endif /* * Environment settings
@@ -46,12 +56,19 @@"bootm 0xa4000000; " \"fi; " \ "bootm 0x60000;" + +#define CONFIG_EXTRA_ENV_SETTINGS \ + "update_onenand=" \ + "onenand erase 0x0 0x80000 ; " \ + "onenand write 0xa0000000 0x0 0x80000" +#define CONFIG_BOOTARGS "console=tty0 console=ttyS0,115200"#define CONFIG_TIMESTAMP #define CONFIG_BOOTDELAY 2/* Autoboot delay */ #define CONFIG_CMDLINE_TAG #define CONFIG_SETUP_MEMORY_TAGS #define CONFIG_LZMA /* LZMA compression support */ +#define CONFIG_OF_LIBFDT /* * Serial Console Configuration
@@ -180,16 +197,14 @@#define CONFIG_SYS_MEMTEST_END 0xa0800000/* 4 ... 8 MB in DRAM */ #define CONFIG_SYS_LOAD_ADDR PHYS_SDRAM_1 -#define CONFIG_SYS_IPL_LOAD_ADDR (0x5c000000)#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 -#define CONFIG_SYS_INIT_SP_ADDR \ - (PHYS_SDRAM_1 + GENERATED_GBL_DATA_SIZE + 2048) +#define CONFIG_SYS_INIT_SP_ADDR 0x5c010000/* * NOR FLASH */ #define CONFIG_SYS_MONITOR_BASE 0x0 -#define CONFIG_SYS_MONITOR_LEN 0x40000 +#define CONFIG_SYS_MONITOR_LEN 0x80000#define CONFIG_ENV_ADDR \ (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)#define CONFIG_ENV_SIZE 0x4000
Signature · 1 line
1.7.7.1
PATCH 6/19 PXA: Enable command line editing for vpac270
In reply to Marek Vasut--- include/configs/vpac270.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
include/configs/vpac270.h +2 -0
@@ -158,6 +158,8 @@#define CONFIG_SYS_MAXARGS 16#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE#define CONFIG_SYS_DEVICE_NULLDEV 1 +#define CONFIG_CMDLINE_EDITING 1 +#define CONFIG_AUTO_COMPLETE 1/* * Clock Configuration
Signature · 1 line
1.7.7.1
PATCH 7/19 PXA: Unify vpac270 environment size
In reply to Marek Vasut--- include/configs/vpac270.h | 14 ++------------ 1 files changed, 2 insertions(+), 12 deletions(-)
include/configs/vpac270.h +2 -12
@@ -209,7 +209,8 @@#define CONFIG_SYS_MONITOR_LEN 0x80000#define CONFIG_ENV_ADDR \ (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) -#define CONFIG_ENV_SIZE 0x4000 +#define CONFIG_ENV_SIZE 0x20000 +#define CONFIG_ENV_SECT_SIZE 0x20000#if defined(CONFIG_CMD_FLASH )/* NOR */ #define PHYS_FLASH_1 0x00000000/* Flash Bank #1 */
@@ -238,22 +239,11 @@#define CONFIG_ENV_IS_IN_FLASH 1 -/* -* The first four sectors of the NOR flash are 0x8000 bytes big, the rest of the -* flash consists of 0x20000 bytes big sectors. -*/ -#if (CONFIG_ENV_ADDR <=0x18000 ) -#define CONFIG_ENV_SECT_SIZE 0x8000 -#else -#define CONFIG_ENV_SECT_SIZE 0x20000 -#endif -#elif defined(CONFIG_CMD_ONENAND )/* OneNAND */ #define CONFIG_SYS_NO_FLASH #define CONFIG_SYS_ONENAND_BASE 0x00000000#define CONFIG_ENV_IS_IN_ONENAND 1 -#define CONFIG_ENV_SECT_SIZE 0x20000#else /* No flash */ #define CONFIG_SYS_NO_FLASH
Signature · 1 line
1.7.7.1
PATCH 8/19 PXA: Rename CONFIG_PXA2[57]X to CONFIG_CPU_PXA2[57]X
In reply to Marek Vasut--- arch/arm/cpu/pxa/cpu.c | 10 +++--- arch/arm/cpu/pxa/start.S | 14 ++++---- arch/arm/cpu/pxa/timer.c | 4 +- arch/arm/cpu/pxa/usb.c | 12 ++++---- arch/arm/include/asm/arch-pxa/pxa-regs.h | 48 +++++++++++++++--------------- common/lcd.c | 14 +++++---- drivers/mmc/pxa_mmc.c | 7 ++-- drivers/mmc/pxa_mmc_gen.c | 4 +- drivers/net/lan91c96.h | 4 +- drivers/net/smc91111.h | 6 ++-- drivers/serial/serial_pxa.c | 4 +- drivers/serial/usbtty.h | 2 +- drivers/usb/gadget/Makefile | 2 +- include/configs/balloon3.h | 2 +- include/configs/colibri_pxa270.h | 2 +- include/configs/lubbock.h | 2 +- include/configs/palmld.h | 2 +- include/configs/palmtc.h | 2 +- include/configs/pxa255_idp.h | 2 +- include/configs/trizepsiv.h | 2 +- include/configs/vpac270.h | 2 +- include/configs/xaeniax.h | 2 +- include/configs/zipitz2.h | 2 +- include/lcd.h | 5 ++- 24 files changed, 80 insertions(+), 76 deletions(-)
arch/arm/cpu/pxa/cpu.c +5 -5
@@ -234,21 +234,21 @@ void pxa_gpio_setup(void)writel (CONFIG_SYS_GPSR0_VAL ,GPSR0 );writel (CONFIG_SYS_GPSR1_VAL ,GPSR1 );writel (CONFIG_SYS_GPSR2_VAL ,GPSR2 ); -#if defined(CONFIG_PXA27X ) || defined(CONFIG_CPU_MONAHANS ) +#if defined(CONFIG_CPU_PXA27X ) || defined(CONFIG_CPU_MONAHANS )writel (CONFIG_SYS_GPSR3_VAL ,GPSR3 );#endif writel (CONFIG_SYS_GPCR0_VAL ,GPCR0 );writel (CONFIG_SYS_GPCR1_VAL ,GPCR1 );writel (CONFIG_SYS_GPCR2_VAL ,GPCR2 ); -#if defined(CONFIG_PXA27X ) || defined(CONFIG_CPU_MONAHANS ) +#if defined(CONFIG_CPU_PXA27X ) || defined(CONFIG_CPU_MONAHANS )writel (CONFIG_SYS_GPCR3_VAL ,GPCR3 );#endif writel (CONFIG_SYS_GPDR0_VAL ,GPDR0 );writel (CONFIG_SYS_GPDR1_VAL ,GPDR1 );writel (CONFIG_SYS_GPDR2_VAL ,GPDR2 ); -#if defined(CONFIG_PXA27X ) || defined(CONFIG_CPU_MONAHANS ) +#if defined(CONFIG_CPU_PXA27X ) || defined(CONFIG_CPU_MONAHANS )writel (CONFIG_SYS_GPDR3_VAL ,GPDR3 );#endif
@@ -258,7 +258,7 @@ void pxa_gpio_setup(void)writel (CONFIG_SYS_GAFR1_U_VAL ,GAFR1_U );writel (CONFIG_SYS_GAFR2_L_VAL ,GAFR2_L );writel (CONFIG_SYS_GAFR2_U_VAL ,GAFR2_U ); -#if defined(CONFIG_PXA27X ) || defined(CONFIG_CPU_MONAHANS ) +#if defined(CONFIG_CPU_PXA27X ) || defined(CONFIG_CPU_MONAHANS )writel (CONFIG_SYS_GAFR3_L_VAL ,GAFR3_L );writel (CONFIG_SYS_GAFR3_U_VAL ,GAFR3_U );#endif
@@ -270,7 +270,7 @@ void pxa_interrupt_setup(void) {writel (0 ,ICLR );writel (0 ,ICMR ); -#if defined(CONFIG_PXA27X ) || defined(CONFIG_CPU_MONAHANS ) +#if defined(CONFIG_CPU_PXA27X ) || defined(CONFIG_CPU_MONAHANS )writel (0 ,ICLR2 );writel (0 ,ICMR2 );#endif
arch/arm/cpu/pxa/start.S +7 -7
@@ -39,7 +39,7 @@ #include <config.h> #include <version.h> -#ifdef CONFIG_PXA25X +#ifdef CONFIG_CPU_PXA25X #if ((CONFIG_SYS_INIT_SP_ADDR) != 0xfffff800) #error "Init SP address must be set to 0xfffff800 for PXA250" #endif
@@ -160,7 +160,7 @@ reset: bl cpu_init_crit #endif -#ifdef CONFIG_PXA250 +#ifdef CONFIG_CPU_PXA25X bl lock_cache_for_stack #endif
@@ -191,7 +191,7 @@ stack_setup: mov sp, r4 /* Disable the Dcache RAM lock for stack now */ -#ifdef CONFIG_PXA250 +#ifdef CONFIG_CPU_PXA25X bl cpu_init_crit #endif
@@ -307,7 +307,7 @@ _dynsym_start_ofs: * ************************************************************************* */ -#if !defined(CONFIG_SKIP_LOWLEVEL_INIT) || defined(CONFIG_PXA250) +#if !defined(CONFIG_SKIP_LOWLEVEL_INIT) || defined(CONFIG_CPU_PXA25X) cpu_init_crit: /* * flush v4 I/D caches
@@ -327,7 +327,7 @@ cpu_init_crit: mcr p15, 0, r0, c1, c0, 0 mov pc, lr /* back to my caller */ -#endif /* !CONFIG_SKIP_LOWLEVEL_INIT || CONFIG_PXA250 */ +#endif /* !CONFIG_SKIP_LOWLEVEL_INIT || CONFIG_CPU_PXA25X */ #ifndef CONFIG_SPL_BUILD /*
@@ -519,7 +519,7 @@ fiq: * This is useful on PXA25x and PXA26x in early bootstages, where there is no * other possible memory available to hold stack. */ -#ifdef CONFIG_PXA250 +#ifdef CONFIG_CPU_PXA25X .macro CPWAIT reg mrc p15, 0, \reg, c2, c0, 0 mov \reg, \reg
@@ -602,4 +602,4 @@ mmutable: /* 0xfff00000 : 1:1, cached mapping */ .word (0xfff << 20) | 0x1c1e -#endif /* CONFIG_PXA250 */ +#endif /* CONFIG_CPU_PXA25X */
arch/arm/cpu/pxa/timer.c +2 -2
@@ -35,9 +35,9 @@#error : interrupts not implemented yet#endif -#if defined(CONFIG_PXA27X ) || defined(CONFIG_CPU_MONAHANS ) +#if defined(CONFIG_CPU_PXA27X ) || defined(CONFIG_CPU_MONAHANS )#define TIMER_FREQ_HZ 3250000 -#elif defined(CONFIG_PXA250 ) +#elif defined(CONFIG_CPU_PXA25X )#define TIMER_FREQ_HZ 3686400#else #error "Timer frequency unknown - please config PXA CPU type"
arch/arm/cpu/pxa/usb.c +6 -6
@@ -24,7 +24,7 @@#include <common.h> #if defined(CONFIG_USB_OHCI_NEW ) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT ) -# if defined(CONFIG_CPU_MONAHANS ) || defined(CONFIG_PXA27X ) +# if defined(CONFIG_CPU_MONAHANS ) || defined(CONFIG_CPU_PXA27X )#include <asm/arch/pxa-regs.h> #include <asm/io.h>
@@ -37,7 +37,7 @@ int usb_cpu_init(void)writel (readl (CKENA ) |CKENA_2_USBHOST |CKENA_20_UDC ,CKENA );udelay (100 );#endif -#if defined(CONFIG_PXA27X ) +#if defined(CONFIG_CPU_PXA27X )/* Enable USB host clock. */ writel (readl (CKEN ) |CKEN10_USBHOST ,CKEN );#endif
@@ -58,7 +58,7 @@ int usb_cpu_init(void)#if defined(CONFIG_CPU_MONAHANS )writel (readl (UHCHR ) & ~UHCHR_SSEP0 ,UHCHR );#endif -#if defined(CONFIG_PXA27X ) +#if defined(CONFIG_CPU_PXA27X )writel (readl (UHCHR ) & ~UHCHR_SSEP2 ,UHCHR );#endif writel (readl (UHCHR ) & ~(UHCHR_SSEP1 |UHCHR_SSE ),UHCHR );
@@ -78,7 +78,7 @@ int usb_cpu_stop(void)#if defined(CONFIG_CPU_MONAHANS )writel (readl (UHCHR ) |UHCHR_SSEP0 ,UHCHR );#endif -#if defined(CONFIG_PXA27X ) +#if defined(CONFIG_CPU_PXA27X )writel (readl (UHCHR ) |UHCHR_SSEP2 ,UHCHR );#endif writel (readl (UHCHR ) |UHCHR_SSEP1 |UHCHR_SSE ,UHCHR );
@@ -88,7 +88,7 @@ int usb_cpu_stop(void)writel (readl (CKENA ) & ~(CKENA_2_USBHOST |CKENA_20_UDC ),CKENA );udelay (100 );#endif -#if defined(CONFIG_PXA27X ) +#if defined(CONFIG_CPU_PXA27X )/* Disable USB host clock. */ writel (readl (CKEN ) & ~CKEN10_USBHOST ,CKEN );#endif
@@ -101,5 +101,5 @@ int usb_cpu_init_fail(void)return usb_cpu_stop (); } -# endif /* defined(CONFIG_CPU_MONAHANS) || defined(CONFIG_PXA27X) */ +# endif /* defined(CONFIG_CPU_MONAHANS) || defined(CONFIG_CPU_PXA27X) */ #endif /* defined(CONFIG_USB_OHCI) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT) */
arch/arm/include/asm/arch-pxa/pxa-regs.h +24 -24
186 lines not on this page · raw message
common/lcd.c +8 -6
@@ -41,7 +41,9 @@#include <lcd.h> #include <watchdog.h> -#if definedCONFIG_PXA250 || definedCONFIG_PXA27X || definedCONFIG_CPU_MONAHANS +#if defined(CONFIG_CPU_PXA25X ) || defined(CONFIG_CPU_PXA27X ) || \ + defined(CONFIG_CPU_MONAHANS ) +#define CONFIG_CPU_PXA #include <asm/byteorder.h> #endif
@@ -512,7 +514,7 @@ void bitmap_plot (int x, int y)uchar *bmap;uchar *fb;ushort *fb16; -#if definedCONFIG_PXA250 || definedCONFIG_PXA27X || definedCONFIG_CPU_MONAHANS +#if defined(CONFIG_CPU_PXA )struct pxafb_info *fbi = &panel_info.pxa;#elif defined(CONFIG_MPC823 )volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR ;
@@ -528,7 +530,7 @@ void bitmap_plot (int x, int y)if (NBITS (panel_info.vl_bpix) <12 ) {/* Leave room for default color map */ -#if definedCONFIG_PXA250 || definedCONFIG_PXA27X || definedCONFIG_CPU_MONAHANS +#if defined(CONFIG_CPU_PXA ) cmap = (ushort *)fbi->palette;#elif defined(CONFIG_MPC823 ) cmap = (ushort *)&(cp->lcd_cmap[BMP_LOGO_OFFSET *sizeof (ushort)]);
@@ -623,7 +625,7 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y)unsigned long width, height, byte_width;unsigned long pwidth = panel_info.vl_col;unsigned colors, bpix, bmp_bpix; -#if definedCONFIG_PXA250 || definedCONFIG_PXA27X || definedCONFIG_CPU_MONAHANS +#if defined(CONFIG_CPU_PXA )struct pxafb_info *fbi = &panel_info.pxa;#elif defined(CONFIG_MPC823 )volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR ;
@@ -663,7 +665,7 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y)#if !defined(CONFIG_MCC200 )/* MCC200 LCD doesn't need CMAP, supports 1bpp b&w only */ if (bmp_bpix ==8 ) { -#if definedCONFIG_PXA250 || definedCONFIG_PXA27X || definedCONFIG_CPU_MONAHANS +#if defined(CONFIG_CPU_PXA ) cmap = (ushort *)fbi->palette;#elif defined(CONFIG_MPC823 ) cmap = (ushort *)&(cp->lcd_cmap[255 *sizeof (ushort)]);
@@ -752,7 +754,7 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y)WATCHDOG_RESET ();for (j =0 ; j < width; j++) {if (bpix !=16 ) { -#if definedCONFIG_PXA250 || definedCONFIG_PXA27X || definedCONFIG_CPU_MONAHANS || defined(CONFIG_ATMEL_LCD ) +#if defined(CONFIG_CPU_PXA ) || defined(CONFIG_ATMEL_LCD ) *(fb++) = *(bmap++);#elif defined(CONFIG_MPC823 ) || defined(CONFIG_MCC200 ) *(fb++) =255 - *(bmap++);
drivers/mmc/pxa_mmc.c +4 -3
@@ -129,7 +129,7 @@ mmc_block_read(uchar * dst, uint32_t src, int len)writel (~MMC_I_MASK_RXFIFO_RD_REQ ,MMC_I_MASK );while (len) {if (readl (MMC_I_REG ) &MMC_I_REG_RXFIFO_RD_REQ ) { -#if defined(CONFIG_PXA27X ) || defined(CONFIG_CPU_MONAHANS ) +#if defined(CONFIG_CPU_PXA27X ) || defined(CONFIG_CPU_MONAHANS )int i;for (i =min (len,32 ); i; i--) { *dst++ =readb (MMC_RXFIFO );
@@ -560,7 +560,8 @@ mmc_legacy_init(int verbose)/* Reset device interface type */ mmc_dev.if_type =IF_TYPE_UNKNOWN ; -#if defined (CONFIG_LUBBOCK ) || (defined (CONFIG_GUMSTIX ) && !defined(CONFIG_PXA27X )) +#if defined(CONFIG_LUBBOCK ) || \ + (defined(CONFIG_GUMSTIX ) && !defined(CONFIG_CPU_PXA27X ))set_GPIO_mode (GPIO6_MMCCLK_MD );set_GPIO_mode (GPIO8_MMCCS0_MD );#endif
@@ -633,7 +634,7 @@ mmc_legacy_init(int verbose)writel (0 ,MMC_CLKRT );/* 20 MHz */ resp =mmc_cmd (MMC_CMD_SELECT_CARD , rca,0 ,MMC_CMDAT_R1 ); -#if defined(CONFIG_PXA27X ) || defined(CONFIG_CPU_MONAHANS ) +#if defined(CONFIG_CPU_PXA27X ) || defined(CONFIG_CPU_MONAHANS )if (IF_TYPE_SD == mmc_dev.if_type) { resp =mmc_cmd (MMC_CMD_APP_CMD , rca,0 ,MMC_CMDAT_R1 ); resp =mmc_cmd (SD_CMD_APP_SET_BUS_WIDTH ,0 ,2 ,MMC_CMDAT_R1 );
drivers/mmc/pxa_mmc_gen.c +2 -2
@@ -30,12 +30,12 @@#include <asm/io.h> /* PXAMMC Generic default config for various CPUs */ -#if defined(CONFIG_PXA250 ) +#if defined(CONFIG_CPU_PXA25X )#define PXAMMC_FIFO_SIZE 1#define PXAMMC_MIN_SPEED 312500#define PXAMMC_MAX_SPEED 20000000#define PXAMMC_HOST_CAPS (0) -#elif defined(CONFIG_PXA27X ) +#elif defined(CONFIG_CPU_PXA27X )#define PXAMMC_CRC_SKIP #define PXAMMC_FIFO_SIZE 32#define PXAMMC_MIN_SPEED 304000
drivers/net/lan91c96.h +2 -2
@@ -68,7 +68,7 @@ typedef unsigned long int dword;#define SMC_IO_EXTENT 16 -#ifdef CONFIG_PXA250 +#ifdef CONFIG_CPU_PXA25X #ifdef CONFIG_LUBBOCK #define SMC_IO_SHIFT 2
@@ -146,7 +146,7 @@ typedef unsigned long int dword; }; \ }) -#else /* if not CONFIG_PXA250 */ +#else /* if not CONFIG_CPU_PXA25X */ /* * We have only 16 Bit PCMCIA access on Socket 0
drivers/net/smc91111.h +3 -3
@@ -78,7 +78,7 @@ struct smc91111_priv{#define SMC_IO_EXTENT 16 -#ifdef CONFIG_PXA250 +#ifdef CONFIG_CPU_PXA25X #ifdef CONFIG_XSENGINE #define SMC_inl (a,r) (*((volatile dword *)((a)->iobase+((r)<<1))))
@@ -180,7 +180,7 @@ struct smc91111_priv{ }; \ }) -#elif defined(CONFIG_LEON )/* if not CONFIG_PXA250 */ +#elif defined(CONFIG_LEON )/* if not CONFIG_CPU_PXA25X */ #define SMC_LEON_SWAP16 (_x_) ({ word _x = (_x_); ((_x << 8) | (_x >> 8)); })
@@ -249,7 +249,7 @@ struct smc91111_priv{ }; \ }while(0) -#else /* if not CONFIG_PXA250 and not CONFIG_LEON */ +#else /* if not CONFIG_CPU_PXA25X and not CONFIG_LEON */ #ifndef CONFIG_SMC_USE_IOFUNCS /* these macros don't work on some boards */ /*
drivers/serial/serial_pxa.c +2 -2
@@ -49,7 +49,7 @@ DECLARE_GLOBAL_DATA_PTR;#define BTUART_INDEX 0#define FFUART_INDEX 1#define STUART_INDEX 2 -#elif CONFIG_PXA250 +#elif CONFIG_CPU_PXA25X #define UART_CLK_BASE (1 << 4)/* HWUART */ #define UART_CLK_REG CKEN#define HWUART_INDEX 0
@@ -68,7 +68,7 @@ DECLARE_GLOBAL_DATA_PTR;* Only PXA250 has HWUART, to avoid poluting the code with more macros, * artificially introduce this. */ -#ifndef CONFIG_PXA250 +#ifndef CONFIG_CPU_PXA25X #define HWUART_INDEX 0xff#endif
drivers/serial/usbtty.h +1 -1
@@ -31,7 +31,7 @@#include <usb/omap1510_udc.h> #elif defined(CONFIG_MUSB_UDC )#include <usb/musb_udc.h> -#elif defined(CONFIG_PXA27X ) +#elif defined(CONFIG_CPU_PXA27X )#include <usb/pxa27x_udc.h> #elif defined(CONFIG_SPEAR3XX ) || defined(CONFIG_SPEAR600 )#include <usb/spr_udc.h>
drivers/usb/gadget/Makefile +1 -1
@@ -37,7 +37,7 @@ COBJS-y += ep0.o COBJS-$(CONFIG_OMAP1510) += omap1510_udc.o COBJS-$(CONFIG_OMAP1610) += omap1510_udc.o COBJS-$(CONFIG_MPC885_FAMILY) += mpc8xx_udc.o -COBJS-$(CONFIG_PXA27X) += pxa27x_udc.o +COBJS-$(CONFIG_CPU_PXA27X) += pxa27x_udc.o COBJS-$(CONFIG_SPEARUDC) += spr_udc.o endif endif
include/configs/balloon3.h +1 -1
@@ -25,7 +25,7 @@/* * High Level Board Configuration Options */ -#define CONFIG_PXA27X 1/* Marvell PXA270 CPU */ +#define CONFIG_CPU_PXA27X 1/* Marvell PXA270 CPU */ #define CONFIG_BALLOON3 1/* Balloon3 board */ /*
include/configs/colibri_pxa270.h +1 -1
@@ -25,7 +25,7 @@/* * High Level Board Configuration Options */ -#define CONFIG_PXA27X 1/* Marvell PXA270 CPU */ +#define CONFIG_CPU_PXA27X 1/* Marvell PXA270 CPU */ #define CONFIG_VPAC270 1/* Toradex Colibri PXA270 board */ #undef CONFIG_BOARD_LATE_INIT
include/configs/lubbock.h +1 -1
@@ -34,7 +34,7 @@* High Level Configuration Options * (easy to change) */ -#define CONFIG_PXA250 1/* This is an PXA250 CPU */ +#define CONFIG_CPU_PXA25X 1/* This is an PXA250 CPU */ #define CONFIG_LUBBOCK 1/* on an LUBBOCK Board */ #define CONFIG_LCD 1#ifdef CONFIG_LCD
include/configs/palmld.h +1 -1
@@ -25,7 +25,7 @@/* * High Level Board Configuration Options */ -#define CONFIG_PXA27X 1/* Marvell PXA270 CPU */ +#define CONFIG_CPU_PXA27X 1/* Marvell PXA270 CPU */ #define CONFIG_PALMLD 1/* Palm LifeDrive board */ /*
include/configs/palmtc.h +1 -1
@@ -27,7 +27,7 @@/* * High Level Board Configuration Options */ -#define CONFIG_PXA250 1/* Intel PXA255 CPU */ +#define CONFIG_CPU_PXA25X 1/* Intel PXA255 CPU */ #define CONFIG_PALMTC 1/* Palm Tungsten|C board */ /*
include/configs/pxa255_idp.h +1 -1
@@ -55,7 +55,7 @@* High Level Configuration Options * (easy to change) */ -#define CONFIG_PXA250 1/* This is an PXA250 CPU */ +#define CONFIG_CPU_PXA25X 1/* This is an PXA250 CPU */ #undef CONFIG_LCD#ifdef CONFIG_LCD
include/configs/trizepsiv.h +1 -1
@@ -40,7 +40,7 @@* High Level Configuration Options * (easy to change) */ -#define CONFIG_PXA27X 1/* This is an PXA27x CPU */ +#define CONFIG_CPU_PXA27X 1/* This is an PXA27x CPU */ #define CONFIG_MMC 1#define CONFIG_BOARD_LATE_INIT
include/configs/vpac270.h +1 -1
@@ -25,7 +25,7 @@/* * High Level Board Configuration Options */ -#define CONFIG_PXA27X 1/* Marvell PXA270 CPU */ +#define CONFIG_CPU_PXA27X 1/* Marvell PXA270 CPU */ #define CONFIG_VPAC270 1/* Voipac PXA270 board */ #define CONFIG_SYS_TEXT_BASE 0xa0000000
include/configs/xaeniax.h +1 -1
@@ -40,7 +40,7 @@* High Level Configuration Options * (easy to change) */ -#define CONFIG_PXA250 1/* This is an PXA255 CPU */ +#define CONFIG_CPU_PXA25X 1/* This is an PXA255 CPU */ #define CONFIG_XAENIAX 1/* on a xaeniax board */ #define CONFIG_SYS_TEXT_BASE 0x0
include/configs/zipitz2.h +1 -1
@@ -25,7 +25,7 @@/* * High Level Board Configuration Options */ -#define CONFIG_PXA27X 1/* Marvell PXA270 CPU */ +#define CONFIG_CPU_PXA27X 1/* Marvell PXA270 CPU */ #define CONFIG_ZIPITZ2 1/* Zipit Z2 board */ #define CONFIG_SYS_TEXT_BASE 0x0
include/lcd.h +3 -2
@@ -87,7 +87,8 @@ typedef struct vidinfo { u_char vl_wbf; /* Wait between frames */ } vidinfo_t; -#elif defined CONFIG_PXA250 || defined CONFIG_PXA27X || defined CONFIG_CPU_MONAHANS +#elif defined(CONFIG_CPU_PXA25X) || defined(CONFIG_CPU_PXA27X) || \ + defined CONFIG_CPU_MONAHANS/* * PXA LCD DMA descriptor */
@@ -195,7 +196,7 @@ typedef struct vidinfo { void *priv; /* Pointer to driver-specific data */ } vidinfo_t; -#endif /* CONFIG_MPC823, CONFIG_PXA250 or CONFIG_MCC200 or CONFIG_ATMEL_LCD */ +#endif /* CONFIG_MPC823, CONFIG_CPU_PXA25X, CONFIG_MCC200, CONFIG_ATMEL_LCD */ extern vidinfo_t panel_info;
Signature · 1 line
1.7.7.1
PATCH 9/19 PXA: Separate PXA2xx CPU init
In reply to Marek Vasut--- arch/arm/cpu/pxa/Makefile | 5 +- arch/arm/cpu/pxa/cpu.c | 346 --------------------------------------------- arch/arm/cpu/pxa/pxa2xx.c | 301 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 305 insertions(+), 347 deletions(-) delete mode 100644 arch/arm/cpu/pxa/cpu.c create mode 100644 arch/arm/cpu/pxa/pxa2xx.c
arch/arm/cpu/pxa/Makefile +4 -1
@@ -27,7 +27,10 @@ LIB = $(obj)lib$(CPU).o START = start.o -COBJS += cpu.o +COBJS-$(CONFIG_CPU_PXA25X) = pxa2xx.o +COBJS-$(CONFIG_CPU_PXA27X) = pxa2xx.o + +COBJS = $(COBJS-y) COBJS += pxafb.o COBJS += timer.o COBJS += usb.o
arch/arm/cpu/pxa/cpu.c deleted +0 -346
346 lines not on this page · raw message
arch/arm/cpu/pxa/pxa2xx.c new file +301 -0
301 lines not on this page · raw message
Signature · 1 line
1.7.7.1
PATCH 10/19 PXA: Add cpuinfo display for PXA2xx
In reply to Marek Vasut--- arch/arm/cpu/pxa/Makefile | 2 + arch/arm/cpu/pxa/cpuinfo.c | 132 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 134 insertions(+), 0 deletions(-) create mode 100644 arch/arm/cpu/pxa/cpuinfo.c
arch/arm/cpu/pxa/Makefile +2 -0
@@ -30,6 +30,8 @@ START = start.o COBJS-$(CONFIG_CPU_PXA25X) = pxa2xx.o COBJS-$(CONFIG_CPU_PXA27X) = pxa2xx.o +COBJS-y += cpuinfo.o + COBJS = $(COBJS-y) COBJS += pxafb.o COBJS += timer.o
arch/arm/cpu/pxa/cpuinfo.c new file +132 -0
132 lines not on this page · raw message
Signature · 1 line
1.7.7.1
PATCH 11/19 PXA: Replace timer driver
In reply to Marek VasutThis new timer driver shall conform to new Timer API.
--- arch/arm/cpu/pxa/timer.c | 87 ++++++++++++++++++--------------------------- 1 files changed, 35 insertions(+), 52 deletions(-)
arch/arm/cpu/pxa/timer.c +35 -52
@@ -1,11 +1,7 @@/* -* (C) Copyright 2002 -* Sysgo Real-Time Solutions, GmbH <www.elinos.com> -* Marius Groeger <[email protected]> +* Marvell PXA2xx/3xx timer driver * -* (C) Copyright 2002 -* Sysgo Real-Time Solutions, GmbH <www.elinos.com> -* Alex Zuepke <[email protected]> +* Copyright (C) 2011 Marek Vasut <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
@@ -31,55 +27,63 @@#include <common.h> #include <div64.h> -#ifdef CONFIG_USE_IRQ -#error : interrupts not implemented yet -#endif +DECLARE_GLOBAL_DATA_PTR ; + +#define TIMER_LOAD_VAL 0xffffffff + +#define timestamp (gd->tbl) +#define lastinc (gd->lastinc)#if defined(CONFIG_CPU_PXA27X ) || defined(CONFIG_CPU_MONAHANS ) -#define TIMER_FREQ_HZ 3250000 +#define TIMER_FREQ_HZ 3250000#elif defined(CONFIG_CPU_PXA25X ) -#define TIMER_FREQ_HZ 3686400 +#define TIMER_FREQ_HZ 3686400#else #error "Timer frequency unknown - please config PXA CPU type"#endif -static inline unsigned long long tick_to_time (unsigned long long tick) +static unsigned long long tick_to_time (unsigned long long tick) { - tick *=CONFIG_SYS_HZ ; -do_div (tick,TIMER_FREQ_HZ ); -return tick; +return tick *CONFIG_SYS_HZ /TIMER_FREQ_HZ ; } -static inline unsigned long long us_to_tick (unsigned long long us) +static unsigned long long us_to_tick (unsigned long long us) { - us = us *TIMER_FREQ_HZ +999999 ; -do_div (us,1000000 ); -return us; +return (us *TIMER_FREQ_HZ ) /1000000 ; } -int timer_init (void ) +int timer_init (void ) {writel (0 ,OSCR ); -return 0 ; } -ulong get_timer (ulong base) -{ -return get_timer_masked () - base; -} - -void __udelay (unsigned long usec) +unsigned long long get_ticks (void ) { -udelay_masked (usec); +/* Current tick value */ +uint32_t now =readl (OSCR ); + +if (now >= lastinc) { +/* +* Normal mode (non roll) +* Move stamp forward with absolute diff ticks +*/ + timestamp += (now - lastinc); + }else { +/* We have rollover of incrementer */ + timestamp += (TIMER_LOAD_VAL - lastinc) + now; + } + + lastinc = now; +return timestamp; } -ulong get_timer_masked (void ) +ulong get_timer (ulong base) { -return tick_to_time (get_ticks ()); +return tick_to_time (get_ticks ()) - base; } -void udelay_masked (unsigned long usec) +void __udelay (unsigned long usec) {unsigned long long tmp;ulong tmo;
@@ -89,25 +93,4 @@ void udelay_masked (unsigned long usec)while (get_ticks () < tmp)/* loop till event */ /*NOP*/ ; - -} - -/* -* This function is derived from PowerPC code (read timebase as long long). -* On ARM it just returns the timer value. -*/ -unsigned long long get_ticks (void ) -{ -return readl (OSCR ); -} - -/* -* This function is derived from PowerPC code (timebase clock frequency). -* On ARM it returns the number of timer ticks per second. -*/ -ulong get_tbclk (void ) -{ -ulong tbclk; - tbclk =TIMER_FREQ_HZ ; -return tbclk; }
Signature · 1 line
1.7.7.1
PATCH 12/19 PXA: Cleanup Colibri PXA270
In reply to Marek Vasut--- board/colibri_pxa270/colibri_pxa270.c | 32 ++++++-------- include/configs/colibri_pxa270.h | 73 +++++++++++++++++---------------- 2 files changed, 51 insertions(+), 54 deletions(-)
board/colibri_pxa270/colibri_pxa270.c +14 -18
@@ -21,26 +21,19 @@#include <common.h> #include <asm/arch/hardware.h> +#include <asm/arch/regs-mmc.h> #include <netdev.h> #include <asm/io.h> +#include <serial.h> DECLARE_GLOBAL_DATA_PTR ; -/* ------------------------------------------------------------------------- */ - -/* -* Miscelaneous platform dependent initialisations -*/ -extern struct serial_device serial_ffuart_device; -extern struct serial_device serial_btuart_device; -extern struct serial_device serial_stuart_device; - -struct serial_device *default_serial_console (void ) +struct serial_device *default_serial_console (void ) {return &serial_ffuart_device; } -int board_init (void ) +int board_init (void ) {/* We have RAM, disable cache */ dcache_disable ();
@@ -63,12 +56,6 @@ int dram_init(void)return 0 ; } -void dram_init_banksize (void ) -{ - gd->bd->bi_dram[0 ].start =PHYS_SDRAM_1 ; - gd->bd->bi_dram[0 ].size =PHYS_SDRAM_1_SIZE ; -} -#ifdef CONFIG_CMD_USB int usb_board_init (void ) {
@@ -78,7 +65,8 @@ int usb_board_init(void)writel (readl (UHCHR ) |UHCHR_FSBIR ,UHCHR ); -while (UHCHR &UHCHR_FSBIR ); +while (UHCHR &UHCHR_FSBIR ) + ;writel (readl (UHCHR ) & ~UHCHR_SSE ,UHCHR );writel ((UHCHIE_UPRIE |UHCHIE_RWIE ),UHCHIE );
@@ -126,3 +114,11 @@ int board_eth_init(bd_t *bis) return dm9000_initialize(bis); }#endif + +#ifdef CONFIG_CMD_MMC +int board_mmc_init (bd_t *bis) +{ +pxa_mmc_register (0 ); +return 0 ; +} +#endif
include/configs/colibri_pxa270.h +37 -36
140 lines not on this page · raw message
Signature · 1 line
1.7.7.1
PATCH 13/19 PXA: Export cpu_is_ and pxa_dram_init functions
In reply to Marek Vasut--- arch/arm/include/asm/arch-pxa/pxa.h | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) create mode 100644 arch/arm/include/asm/arch-pxa/pxa.h
arch/arm/include/asm/arch-pxa/pxa.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* PXA common functions +* +* Copyright (C) 2011 Marek Vasut <[email protected]> +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#ifndef __PXA_H__ +#define __PXA_H__ + +int cpu_is_pxa25x (void ); +int cpu_is_pxa27x (void ); +void pxa_dram_init (void ); + +#endif /* __PXA_H__ */
Signature · 1 line
1.7.7.1
PATCH 14/19 PXA: Squash extern pxa_dram_init()
In reply to Marek Vasut--- board/balloon3/balloon3.c | 2 +- board/colibri_pxa270/colibri_pxa270.c | 2 +- board/lubbock/lubbock.c | 2 +- board/palmld/palmld.c | 2 +- board/palmtc/palmtc.c | 2 +- board/pxa255_idp/pxa_idp.c | 2 +- board/trizepsiv/conxs.c | 2 +- board/vpac270/onenand.c | 3 +-- board/vpac270/vpac270.c | 2 +- board/xaeniax/xaeniax.c | 2 +- board/zipitz2/zipitz2.c | 2 +- 11 files changed, 11 insertions(+), 12 deletions(-)
board/balloon3/balloon3.c +1 -1
@@ -21,6 +21,7 @@#include <common.h> #include <asm/arch/hardware.h> +#include <asm/arch/pxa.h> #include <serial.h> #include <asm/io.h> #include <spartan3.h>
@@ -57,7 +58,6 @@ struct serial_device *default_serial_console(void)return &serial_stuart_device; } -extern void pxa_dram_init (void );int dram_init (void ) {pxa_dram_init ();
board/colibri_pxa270/colibri_pxa270.c +1 -1
@@ -22,6 +22,7 @@#include <common.h> #include <asm/arch/hardware.h> #include <asm/arch/regs-mmc.h> +#include <asm/arch/pxa.h> #include <netdev.h> #include <asm/io.h> #include <serial.h>
@@ -48,7 +49,6 @@ int board_init(void)return 0 ; } -extern void pxa_dram_init (void );int dram_init (void ) {pxa_dram_init ();
board/lubbock/lubbock.c +1 -1
@@ -27,6 +27,7 @@#include <common.h> #include <netdev.h> +#include <asm/arch/pxa.h> DECLARE_GLOBAL_DATA_PTR ;
@@ -56,7 +57,6 @@ int board_late_init(void)return 0 ; } -extern void pxa_dram_init (void );int dram_init (void ) {pxa_dram_init ();
board/palmld/palmld.c +1 -1
@@ -23,6 +23,7 @@#include <command.h> #include <serial.h> #include <asm/arch/pxa-regs.h> +#include <asm/arch/pxa.h> #include <asm/io.h> DECLARE_GLOBAL_DATA_PTR ;
@@ -56,7 +57,6 @@ struct serial_device *default_serial_console(void)return &serial_ffuart_device; } -extern void pxa_dram_init (void );int dram_init (void ) {pxa_dram_init ();
board/palmtc/palmtc.c +1 -1
@@ -23,6 +23,7 @@#include <command.h> #include <serial.h> #include <asm/io.h> +#include <asm/arch/pxa.h> DECLARE_GLOBAL_DATA_PTR ;
@@ -55,7 +56,6 @@ struct serial_device *default_serial_console(void)return &serial_ffuart_device; } -extern void pxa_dram_init (void );int dram_init (void ) {pxa_dram_init ();
board/pxa255_idp/pxa_idp.c +1 -1
@@ -34,6 +34,7 @@#include <netdev.h> #include <command.h> #include <asm/io.h> +#include <asm/arch/pxa.h> DECLARE_GLOBAL_DATA_PTR ;
@@ -83,7 +84,6 @@ int board_late_init(void)return 0 ; } -extern void pxa_dram_init (void );int dram_init (void ) {pxa_dram_init ();
board/trizepsiv/conxs.c +1 -1
@@ -33,6 +33,7 @@#include <common.h> #include <asm/arch/pxa-regs.h> +#include <asm/arch/pxa.h> #include <netdev.h> #include <asm/io.h>
@@ -139,7 +140,6 @@ struct serial_device *default_serial_console (void)return &serial_ffuart_device; } -extern void pxa_dram_init (void );int dram_init (void ) {pxa_dram_init ();
board/vpac270/onenand.c +1 -2
@@ -26,8 +26,7 @@#include <config.h> #include <asm/io.h> #include <onenand_uboot.h> - -extern void pxa_dram_init (void ); +#include <asm/arch/pxa.h> void board_init_f (unsigned long unused) {
board/vpac270/vpac270.c +1 -1
@@ -22,6 +22,7 @@#include <common.h> #include <asm/arch/hardware.h> #include <asm/arch/regs-mmc.h> +#include <asm/arch/pxa.h> #include <netdev.h> #include <serial.h> #include <asm/io.h>
@@ -54,7 +55,6 @@ struct serial_device *default_serial_console(void)return &serial_ffuart_device; } -extern void pxa_dram_init (void );int dram_init (void ) {#ifndef CONFIG_ONENAND
board/xaeniax/xaeniax.c +1 -1
@@ -30,6 +30,7 @@#include <common.h> #include <netdev.h> +#include <asm/arch/pxa.h> DECLARE_GLOBAL_DATA_PTR ;
@@ -59,7 +60,6 @@ int board_late_init(void)return 0 ; } -extern void pxa_dram_init (void );int dram_init (void ) {pxa_dram_init ();
board/zipitz2/zipitz2.c +1 -1
@@ -27,6 +27,7 @@#include <command.h> #include <serial.h> #include <asm/arch/hardware.h> +#include <asm/arch/pxa.h> #include <spi.h> #include <asm/io.h>
@@ -65,7 +66,6 @@ struct serial_device *default_serial_console (void)return &serial_stuart_device; } -extern void pxa_dram_init (void );int dram_init (void ) {pxa_dram_init ();
Signature · 1 line
1.7.7.1
PATCH 15/19 PXA: Rename pxa_dram_init to pxa2xx_dram_init
In reply to Marek Vasut--- arch/arm/cpu/pxa/pxa2xx.c | 4 ++-- arch/arm/include/asm/arch-pxa/pxa.h | 2 +- board/balloon3/balloon3.c | 2 +- board/colibri_pxa270/colibri_pxa270.c | 2 +- board/lubbock/lubbock.c | 2 +- board/palmld/palmld.c | 2 +- board/palmtc/palmtc.c | 2 +- board/pxa255_idp/pxa_idp.c | 2 +- board/trizepsiv/conxs.c | 2 +- board/vpac270/onenand.c | 2 +- board/vpac270/vpac270.c | 2 +- board/xaeniax/xaeniax.c | 2 +- board/zipitz2/zipitz2.c | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-)
arch/arm/cpu/pxa/pxa2xx.c +2 -2
@@ -71,7 +71,7 @@ inline void writelrb(uint32_t val, uint32_t addr) asmvolatile ("" : : :"memory" ); } -void pxa_dram_init (void ) +void pxa2xx_dram_init (void ) {uint32_t tmp;int i;
@@ -262,7 +262,7 @@ void pxa_wakeup(void)/* Wakeup */ if (rcsr &RCSR_SMR ) {writel (PSSR_PH ,PSSR ); -pxa_dram_init (); +pxa2xx_dram_init ();icache_disable ();dcache_disable (); asmvolatile ("mov pc, %0" : :"r" (readl (PSPR )));
arch/arm/include/asm/arch-pxa/pxa.h +1 -1
@@ -24,6 +24,6 @@int cpu_is_pxa25x (void );int cpu_is_pxa27x (void ); -void pxa_dram_init (void ); +void pxa2xx_dram_init (void );#endif /* __PXA_H__ */
board/balloon3/balloon3.c +1 -1
@@ -60,7 +60,7 @@ struct serial_device *default_serial_console(void)int dram_init (void ) { -pxa_dram_init (); +pxa2xx_dram_init (); gd->ram_size =PHYS_SDRAM_1_SIZE ;return 0 ; }
board/colibri_pxa270/colibri_pxa270.c +1 -1
@@ -51,7 +51,7 @@ int board_init(void)int dram_init (void ) { -pxa_dram_init (); +pxa2xx_dram_init (); gd->ram_size =PHYS_SDRAM_1_SIZE ;return 0 ; }
board/lubbock/lubbock.c +1 -1
@@ -59,7 +59,7 @@ int board_late_init(void)int dram_init (void ) { -pxa_dram_init (); +pxa2xx_dram_init (); gd->ram_size =PHYS_SDRAM_1_SIZE ;return 0 ; }
board/palmld/palmld.c +1 -1
@@ -59,7 +59,7 @@ struct serial_device *default_serial_console(void)int dram_init (void ) { -pxa_dram_init (); +pxa2xx_dram_init (); gd->ram_size =PHYS_SDRAM_1_SIZE ;return 0 ; }
board/palmtc/palmtc.c +1 -1
@@ -58,7 +58,7 @@ struct serial_device *default_serial_console(void)int dram_init (void ) { -pxa_dram_init (); +pxa2xx_dram_init (); gd->ram_size =PHYS_SDRAM_1_SIZE ;return 0 ; }
board/pxa255_idp/pxa_idp.c +1 -1
@@ -86,7 +86,7 @@ int board_late_init(void)int dram_init (void ) { -pxa_dram_init (); +pxa2xx_dram_init (); gd->ram_size =PHYS_SDRAM_1_SIZE ;return 0 ; }
board/trizepsiv/conxs.c +1 -1
@@ -142,7 +142,7 @@ struct serial_device *default_serial_console (void)int dram_init (void ) { -pxa_dram_init (); +pxa2xx_dram_init (); gd->ram_size =PHYS_SDRAM_1_SIZE ;return 0 ; }
board/vpac270/onenand.c +1 -1
@@ -45,7 +45,7 @@ void board_init_f(unsigned long unused)/* Hereby, the code runs from (S)RAM, copy U-Boot and execute it. */ arch_cpu_init (); -pxa_dram_init (); +pxa2xx_dram_init ();onenand_spl_load_image (CONFIG_SPL_ONENAND_LOAD_ADDR ,CONFIG_SPL_ONENAND_LOAD_SIZE , (void *)CONFIG_SYS_TEXT_BASE );
board/vpac270/vpac270.c +1 -1
@@ -58,7 +58,7 @@ struct serial_device *default_serial_console(void)int dram_init (void ) {#ifndef CONFIG_ONENAND -pxa_dram_init (); +pxa2xx_dram_init ();#endif gd->ram_size =PHYS_SDRAM_1_SIZE ;return 0 ;
board/xaeniax/xaeniax.c +1 -1
@@ -62,7 +62,7 @@ int board_late_init(void)int dram_init (void ) { -pxa_dram_init (); +pxa2xx_dram_init (); gd->ram_size =PHYS_SDRAM_1_SIZE ;return 0 ; }
board/zipitz2/zipitz2.c +1 -1
@@ -68,7 +68,7 @@ struct serial_device *default_serial_console (void)int dram_init (void ) { -pxa_dram_init (); +pxa2xx_dram_init (); gd->ram_size =PHYS_SDRAM_1_SIZE ;return 0 ; }
Signature · 1 line
1.7.7.1
PATCH 16/19 PXA: Introduce common configuration header for PXA
In reply to Marek Vasut--- include/configs/pxa-common.h | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 60 insertions(+), 0 deletions(-) create mode 100644 include/configs/pxa-common.h
include/configs/pxa-common.h new file +60 -0
@@ -0,0 +1,60 @@ +/* +* Toradex Colibri PXA270 configuration file +* +* Copyright (C) 2010 Marek Vasut <[email protected]> +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#ifndef __CONFIG_PXA_COMMON_H__ +#define __CONFIG_PXA_COMMON_H__ + +#define CONFIG_DISPLAY_CPUINFO + +/* +* KGDB +*/ +#ifdef CONFIG_CMD_KGDB +#define CONFIG_KGDB_BAUDRATE 230400 +#define CONFIG_KGDB_SER_INDEX 2 +#endif + +/* +* MMC Card Configuration +*/ +#ifdef CONFIG_CMD_MMC +#define CONFIG_MMC +#define CONFIG_GENERIC_MMC +#define CONFIG_PXA_MMC_GENERIC +#define CONFIG_CMD_FAT +#define CONFIG_CMD_EXT2 +#define CONFIG_DOS_PARTITION +#endif + +/* +* OHCI USB +*/ +#ifdef CONFIG_CMD_USB +#define CONFIG_USB_OHCI_NEW +#define CONFIG_SYS_USB_OHCI_CPU_INIT +#define CONFIG_SYS_USB_OHCI_BOARD_INIT +#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2 +#define CONFIG_SYS_USB_OHCI_REGS_BASE 0x4c000000 +#define CONFIG_SYS_USB_OHCI_SLOT_NAME "pxa-ohci" +#define CONFIG_USB_STORAGE +#endif + +#endif /* __CONFIG_PXA_COMMON_H__ */
Signature · 1 line
1.7.7.1
PATCH 17/19 PXA: Flip colibri_pxa27x to pxa-common.h
In reply to Marek Vasut--- include/configs/colibri_pxa270.h | 36 +----------------------------------- 1 files changed, 1 insertions(+), 35 deletions(-)
include/configs/colibri_pxa270.h +1 -35
@@ -28,8 +28,6 @@#define CONFIG_CPU_PXA27X 1/* Marvell PXA270 CPU */ #define CONFIG_SYS_TEXT_BASE 0x0 -#define CONFIG_DISPLAY_CPUINFO -/* * Environment settings */
@@ -93,27 +91,6 @@#endif /* -* MMC Card Configuration -*/ -#ifdef CONFIG_CMD_MMC -#define CONFIG_MMC -#define CONFIG_GENERIC_MMC -#define CONFIG_PXA_MMC_GENERIC -#define CONFIG_SYS_MMC_BASE 0xF0000000 -#define CONFIG_CMD_FAT -#define CONFIG_CMD_EXT2 -#define CONFIG_DOS_PARTITION -#endif - -/* -* KGDB -*/ -#ifdef CONFIG_CMD_KGDB -#define CONFIG_KGDB_BAUDRATE 230400/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX 2/* which serial port to use */ -#endif - -/* * HUSH Shell Configuration */ #define CONFIG_SYS_HUSH_PARSER 1
@@ -263,17 +240,6 @@#define CONFIG_SYS_MCIO0_VAL 0x0001430f#define CONFIG_SYS_MCIO1_VAL 0x0001430f -/* -* USB -*/ -#ifdef CONFIG_CMD_USB -#define CONFIG_USB_OHCI_NEW -#define CONFIG_SYS_USB_OHCI_CPU_INIT -#define CONFIG_SYS_USB_OHCI_BOARD_INIT -#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2 -#define CONFIG_SYS_USB_OHCI_REGS_BASE 0x4C000000 -#define CONFIG_SYS_USB_OHCI_SLOT_NAME "tdex270" -#define CONFIG_USB_STORAGE -#endif +#include "pxa-common.h" #endif /* __CONFIG_H */
Signature · 1 line
1.7.7.1
PATCH 18/19 PXA: Move colibri_pxa270 to board/toradex/
In reply to Marek Vasut--- board/colibri_pxa270/Makefile | 41 -------- board/colibri_pxa270/colibri_pxa270.c | 124 ------------------------- board/toradex/colibri_pxa270/Makefile | 41 ++++++++ board/toradex/colibri_pxa270/colibri_pxa270.c | 124 +++++++++++++++++++++++++ boards.cfg | 2 +- 5 files changed, 166 insertions(+), 166 deletions(-) delete mode 100644 board/colibri_pxa270/Makefile delete mode 100644 board/colibri_pxa270/colibri_pxa270.c create mode 100644 board/toradex/colibri_pxa270/Makefile create mode 100644 board/toradex/colibri_pxa270/colibri_pxa270.c
board/colibri_pxa270/Makefile deleted +0 -41
@@ -1,41 +0,0 @@ -# -# Toradex Colibri PXA270 Support -# -# Copyright (C) 2010 Marek Vasut <[email protected]> -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 2 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, -# MA 02111-1307 USA -# - -include $(TOPDIR)/config.mk - -LIB = $(obj)lib$(BOARD).o - -COBJS := colibri_pxa270.o - -SRCS := $(COBJS:.o=.c) -OBJS := $(addprefix $(obj),$(COBJS)) - -$(LIB): $(obj).depend $(OBJS) - $(call cmd_link_o_target, $(OBJS)) - -######################################################################### - -# defines $(obj).depend target -include $(SRCTREE)/rules.mk - -sinclude $(obj).depend - -#########################################################################
board/colibri_pxa270/colibri_pxa270.c deleted +0 -124
124 lines not on this page · raw message
board/toradex/colibri_pxa270/Makefile new file +41 -0
41 lines not on this page · raw message
board/toradex/colibri_pxa270/colibri_pxa270.c new file +124 -0
124 lines not on this page · raw message
boards.cfg +1 -1
@@ -216,7 +216,7 @@ actux3 arm ixp actux4 arm ixp dvlhost arm ixp balloon3 arm pxa -colibri_pxa270 arm pxa +colibri_pxa270 arm pxa - toradex lubbock arm pxa palmld arm pxa palmtc arm pxa
Signature · 1 line
1.7.7.1
PATCH 19/19 GCC4.6: PXA: Squash warning in xaeniax
In reply to Marek Vasutflash.c: In function ?flash_erase?:
flash.c:223:6: warning: variable ?flag? set but not used [-Wunused-but-set-variable]flash.c: In function ?write_data?:
flash.c:392:6: warning: variable ?flag? set but not used [-Wunused-but-set-variable]
--- board/xaeniax/flash.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
board/xaeniax/flash.c +3 -4
@@ -220,7 +220,7 @@ static ulong flash_get_size (FPW *addr, flash_info_t *info)int flash_erase (flash_info_t *info,int s_first,int s_last) { -int flag, prot, sect; +int prot, sect;ulong type, start;int rcode =0 ;
@@ -255,7 +255,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last) }/* Disable interrupts which might cause a timeout here */ - flag =disable_interrupts (); +disable_interrupts ();/* Start erase on unprotected sectors */ for (sect = s_first; sect <= s_last; sect++) {
@@ -389,7 +389,6 @@ static int write_data (flash_info_t *info, ulong dest, FPW data) {FPWV *addr = (FPWV *) dest;ulong status; -int flag;ulong start;/* Check if Flash is (sufficiently) erased */
@@ -398,7 +397,7 @@ static int write_data (flash_info_t *info, ulong dest, FPW data)return (2 ); }/* Disable interrupts which might cause a timeout here */ - flag =disable_interrupts (); +disable_interrupts (); *addr = (FPW )0x00400040 ;/* write setup */ *addr = data;
Signature · 1 line
1.7.7.1