platform/kernel/u-boot.git
12 years agoGCC4.6: Squash undefined variable in cmd_mtdparts.c
Marek Vasut [Fri, 21 Oct 2011 14:17:25 +0000 (14:17 +0000)]
GCC4.6: Squash undefined variable in cmd_mtdparts.c

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash subsequent warnings in usb_storage.c
Marek Vasut [Tue, 25 Oct 2011 09:39:17 +0000 (11:39 +0200)]
GCC4.6: Squash subsequent warnings in usb_storage.c

usb_storage.c: In function ‘us_one_transfer’:
usb_storage.c:377:7: warning: format ‘%X’ expects argument of type ‘unsigned
int’, but argument 2 has type ‘long unsigned int’ [-Wformat]
usb_storage.c:389:6: warning: format ‘%d’ expects argument of type ‘int’, but
argument 2 has type ‘long unsigned int’ [-Wformat]
usb_storage.c:394:6: warning: format ‘%d’ expects argument of type ‘int’, but
argument 2 has type ‘long unsigned int’ [-Wformat]
usb_storage.c: In function ‘usb_stor_BBB_reset’:
usb_storage.c:442:2: warning: format ‘%X’ expects argument of type ‘unsigned
int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
usb_storage.c:448:2: warning: format ‘%X’ expects argument of type ‘unsigned
int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
usb_storage.c:454:2: warning: format ‘%X’ expects argument of type ‘unsigned
int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
usb_storage.c: In function ‘usb_stor_CB_reset’:
usb_storage.c:482:2: warning: format ‘%X’ expects argument of type ‘unsigned
int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
usb_storage.c: In function ‘usb_stor_CB_comdat’:
usb_storage.c:572:3: warning: format ‘%X’ expects argument of type ‘unsigned
int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
usb_storage.c:584:4: warning: format ‘%X’ expects argument of type ‘unsigned
int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
usb_storage.c: In function ‘usb_stor_BBB_transport’:
usb_storage.c:782:3: warning: format ‘%d’ expects argument of type ‘int’, but
argument 3 has type ‘long unsigned int’ [-Wformat]
usb_storage.c: In function ‘usb_stor_CB_transport’:
usb_storage.c:807:2: warning: format ‘%X’ expects argument of type ‘unsigned
int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
usb_storage.c:830:3: warning: format ‘%X’ expects argument of type ‘unsigned
int’, but argument 2 has type ‘long unsigned int’ [-Wformat]
usb_storage.c:857:3: warning: format ‘%d’ expects argument of type ‘int’, but
argument 2 has type ‘long unsigned int’ [-Wformat]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Remy Bohmer <linux@bohmer.net>
12 years agoGCC4.6: Squash warning in usb_storage.c
Marek Vasut [Tue, 25 Oct 2011 09:39:16 +0000 (11:39 +0200)]
GCC4.6: Squash warning in usb_storage.c

usb_storage.c: In function ‘usb_stor_CB_reset’:
usb_storage.c:466:6: warning: variable ‘result’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warning in cmd_ide.c
Marek Vasut [Tue, 25 Oct 2011 09:39:15 +0000 (11:39 +0200)]
GCC4.6: Squash warning in cmd_ide.c

cmd_ide.c: In function ‘ide_read’:
cmd_ide.c:1227:2: warning: format ‘%LX’ expects argument of type ‘long long
unsigned int’, but argument 3 has type ‘lbaint_t’ [-Wformat]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warnings in common/usb.c
Marek Vasut [Tue, 25 Oct 2011 09:39:14 +0000 (11:39 +0200)]
GCC4.6: Squash warnings in common/usb.c

usb.c: In function ‘usb_parse_config’:
usb.c:331:17: warning: variable ‘ch’ set but not used
[-Wunused-but-set-variable]
usb.c: In function ‘usb_hub_port_connect_change’:
usb.c:1123:29: warning: variable ‘portchange’ set but not used
[-Wunused-but-set-variable]
usb.c: In function ‘usb_hub_configure’:
usb.c:1183:25: warning: variable ‘hubsts’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Add macros to mv_gen_reg.h
Marek Vasut [Fri, 21 Oct 2011 14:17:34 +0000 (14:17 +0000)]
GCC4.6: Add macros to mv_gen_reg.h

interrupts.c: In function 'interrupt_init_cpu':
interrupts.c:40: error: 'ETHERNET0_INTERRUPT_CAUSE_REGISTER' undeclared (first
use in this function)
interrupts.c:40: error: (Each undeclared identifier is reported only once
interrupts.c:40: error: for each function it appears in.)
interrupts.c:40: error: 'ETHERNET1_INTERRUPT_CAUSE_REGISTER' undeclared (first
use in this function)
interrupts.c:40: error: 'ETHERNET2_INTERRUPT_CAUSE_REGISTER' undeclared (first
use in this function)
interrupts.c:44: error: 'ETHERNET0_INTERRUPT_MASK_REGISTER' undeclared (first
use in this function)
interrupts.c:44: error: 'ETHERNET1_INTERRUPT_MASK_REGISTER' undeclared (first
use in this function)
interrupts.c:44: error: 'ETHERNET2_INTERRUPT_MASK_REGISTER' undeclared (first
use in this function)

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash error in cpc45/pd67290.c
Marek Vasut [Fri, 21 Oct 2011 14:17:31 +0000 (14:17 +0000)]
GCC4.6: Squash error in cpc45/pd67290.c

pd67290.c: In function 'cirrus_set_opts':
pd67290.c:282: error: 'buf' undeclared (first use in this function)
pd67290.c:282: error: (Each undeclared identifier is reported only once
pd67290.c:282: error: for each function it appears in.)

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warnings in PPChameleonEVB/flash.c
Marek Vasut [Fri, 21 Oct 2011 14:17:29 +0000 (14:17 +0000)]
GCC4.6: Squash warnings in PPChameleonEVB/flash.c

flash.c: In function 'flash_init':
flash.c:54: warning: format '%08X' expects type 'unsigned int', but argument 4
has type 'struct flash_info_t *'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoGCC4.6: Squash warnings in r360mpi/flash.c
Marek Vasut [Fri, 21 Oct 2011 14:17:28 +0000 (14:17 +0000)]
GCC4.6: Squash warnings in r360mpi/flash.c

flash.c: In function 'flash_get_size':
flash.c:222: warning: format '%08lx' expects type 'long unsigned int', but
argument 3 has type 'int'
flash.c:238: warning: format '%08lx' expects type 'long unsigned int', but
argument 3 has type 'int'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warnings in pmc405de.c
Marek Vasut [Fri, 21 Oct 2011 14:17:22 +0000 (14:17 +0000)]
GCC4.6: Squash warnings in pmc405de.c

pmc405de.c: In function 'do_painit':
pmc405de.c:444: warning: format '%08x' expects type 'unsigned int', but argument
2 has type 'phys_size_t'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warning in cmd_pmc440.c
Marek Vasut [Fri, 21 Oct 2011 14:17:17 +0000 (14:17 +0000)]
GCC4.6: Squash warning in cmd_pmc440.c

cmd_pmc440.c: In function 'do_painit':
cmd_pmc440.c:371: warning: format '%08x' expects type 'unsigned int', but
argument 2 has type 'phys_size_t'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warnings in tqm834x.c
Marek Vasut [Fri, 21 Oct 2011 14:17:10 +0000 (14:17 +0000)]
GCC4.6: Squash warnings in tqm834x.c

tqm834x.c: In function 'initdram':
tqm834x.c:126: warning: format '%d' expects type 'int', but argument 3 has type
'long int'
tqm834x.c: In function 'set_cs_bounds':
tqm834x.c:336: warning: format '%08x' expects type 'unsigned int', but argument
2 has type 'long int'
tqm834x.c:336: warning: format '%08x' expects type 'unsigned int', but argument
3 has type 'long int'
tqm834x.c: In function 'set_cs_config':
tqm834x.c:354: warning: format '%08x' expects type 'unsigned int', but argument
2 has type 'long int'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warnings in mpc8610hpcd.c
Marek Vasut [Fri, 21 Oct 2011 14:17:09 +0000 (14:17 +0000)]
GCC4.6: Squash warnings in mpc8610hpcd.c

mpc8610hpcd.c: In function 'misc_init_r':
mpc8610hpcd.c:79: warning: format '%02lx' expects type 'long unsigned int', but
argument 2 has type 'int'
mpc8610hpcd.c:86: warning: format '%02lx' expects type 'long unsigned int', but
argument 2 has type 'int'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warnings in diu.c
Marek Vasut [Fri, 21 Oct 2011 14:17:08 +0000 (14:17 +0000)]
GCC4.6: Squash warnings in diu.c

diu.c: In function 'diu_set_pixel_clock':
diu.c:77: warning: format '%lu' expects type 'long unsigned int', but argument 2
has type 'u32'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warning in mpc5121ads.c
Marek Vasut [Fri, 21 Oct 2011 14:17:03 +0000 (14:17 +0000)]
GCC4.6: Squash warning in mpc5121ads.c

mpc5121ads.c: In function 'misc_init_r':
mpc5121ads.c:256: warning: format '%02lx' expects type 'long unsigned int', but
argument 2 has type 'int'
mpc5121ads.c:263: warning: format '%02lx' expects type 'long unsigned int', but
argument 2 has type 'int'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warnings in mpc86xx/interrupts.c
Marek Vasut [Fri, 21 Oct 2011 14:17:27 +0000 (14:17 +0000)]
GCC4.6: Squash warnings in mpc86xx/interrupts.c

interrupts.c: In function 'interrupt_init_cpu':
interrupts.c:62: warning: format '%d' expects type 'int', but argument 2 has
type 'long unsigned int'
interrupts.c:69: warning: format '%x' expects type 'unsigned int', but argument
2 has type 'volatile uint *'
interrupts.c:72: warning: format '%x' expects type 'unsigned int', but argument
2 has type 'volatile uint *'
interrupts.c:75: warning: format '%x' expects type 'unsigned int', but argument
2 has type 'volatile uint *'
interrupts.c:79: warning: format '%x' expects type 'unsigned int', but argument
2 has type 'volatile uint *'
interrupts.c:83: warning: format '%x' expects type 'unsigned int', but argument
2 has type 'volatile uint *'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warnings in ddr[123]_dimm_params.c
Marek Vasut [Fri, 21 Oct 2011 14:17:19 +0000 (14:17 +0000)]
GCC4.6: Squash warnings in ddr[123]_dimm_params.c

ddr1_dimm_params.c: In function 'compute_ranksize':
ddr1_dimm_params.c:44: warning: format '%08x' expects type 'unsigned int', but
argument 2 has type 'long long unsigned int'

ddr2_dimm_params.c: In function 'compute_ranksize':
ddr2_dimm_params.c:43: warning: format '%08x' expects type 'unsigned int', but
argument 2 has type 'long long unsigned int'

ddr3_dimm_params.c: In function 'compute_ranksize':
ddr3_dimm_params.c:74: warning: format '%16lx' expects type 'long unsigned int',
but argument 2 has type 'long long unsigned int'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
12 years agoGCC4.6: Squash warnings in 4xx_pcie.c
Marek Vasut [Fri, 21 Oct 2011 14:17:15 +0000 (14:17 +0000)]
GCC4.6: Squash warnings in 4xx_pcie.c

4xx_pcie.c: In function 'pcie_read_config':
4xx_pcie.c:268: warning: format '%08x' expects type 'unsigned int', but argument
3 has type 'volatile unsigned char *'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warnings in 4xx_ibm_ddr2_autocalib.c
Marek Vasut [Fri, 21 Oct 2011 14:17:14 +0000 (14:17 +0000)]
GCC4.6: Squash warnings in 4xx_ibm_ddr2_autocalib.c

4xx_ibm_ddr2_autocalib.c: In function 'DQS_calibration_methodB':
4xx_ibm_ddr2_autocalib.c:910: warning: format '%08X' expects type 'unsigned
int', but argument 2 has type 'ulong'
4xx_ibm_ddr2_autocalib.c:911: warning: format '%08X' expects type 'unsigned
int', but argument 2 has type 'ulong'
4xx_ibm_ddr2_autocalib.c: In function 'DQS_autocalibration':
4xx_ibm_ddr2_autocalib.c:1217: warning: format '%08x' expects type 'unsigned
int', but argument 2 has type 'ulong'
4xx_ibm_ddr2_autocalib.c:1230: warning: format '%08x' expects type 'unsigned
int', but argument 2 has type 'ulong'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
12 years agoGCC4.6: Squash warnings in 44x_spd_ddr.c
Marek Vasut [Fri, 21 Oct 2011 14:17:12 +0000 (14:17 +0000)]
GCC4.6: Squash warnings in 44x_spd_ddr.c

44x_spd_ddr.c: In function 'program_tr0':
44x_spd_ddr.c:823: warning: format '%x' expects type 'unsigned int', but
argument 2 has type 'long unsigned int'
44x_spd_ddr.c: In function 'program_tr1':
44x_spd_ddr.c:1054: warning: format '%x' expects type 'unsigned int', but
argument 2 has type 'long unsigned int'
44x_spd_ddr.c: In function 'program_bxcr':
44x_spd_ddr.c:1127: warning: format '%d' expects type 'int', but argument 2 has
type 'long unsigned int'
44x_spd_ddr.c:1196: warning: format '%d' expects type 'int', but argument 2 has
type 'long unsigned int'
44x_spd_ddr.c:1196: warning: format '%d' expects type 'int', but argument 3 has
type 'long unsigned int'
44x_spd_ddr.c:1196: warning: format '%d' expects type 'int', but argument 4 has
type 'long unsigned int'
44x_spd_ddr.c:1196: warning: format '%d' expects type 'int', but argument 5 has
type 'long unsigned int'
44x_spd_ddr.c:1242: warning: format '%d' expects type 'int', but argument 2 has
type 'long unsigned int'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warnings in denali_spd_ddr2.c
Marek Vasut [Fri, 21 Oct 2011 14:17:07 +0000 (14:17 +0000)]
GCC4.6: Squash warnings in denali_spd_ddr2.c

denali_spd_ddr2.c: In function 'get_spd_info':
denali_spd_ddr2.c:363: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c: In function 'check_frequency':
denali_spd_ddr2.c:390: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c: In function 'get_dimm_size':
denali_spd_ddr2.c:473: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c:474: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c:475: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c:476: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c: In function 'program_ddr0_03':
denali_spd_ddr2.c:571: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c:604: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c:604: warning: format '%d' expects type 'int', but argument 3
has type 'long unsigned int'
denali_spd_ddr2.c:643: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c:644: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c:645: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c:646: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c:676: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c: In function 'program_ddr0_04':
denali_spd_ddr2.c:731: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c:733: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c:735: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c: In function 'program_ddr0_05':
denali_spd_ddr2.c:772: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c:774: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c: In function 'program_ddr0_06':
denali_spd_ddr2.c:831: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c:833: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c: In function 'program_ddr0_11':
denali_spd_ddr2.c:860: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c: In function 'program_ddr0_26':
denali_spd_ddr2.c:931: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c:933: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c: In function 'program_ddr0_27':
denali_spd_ddr2.c:944: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c: In function 'program_ddr0_43':
denali_spd_ddr2.c:978: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_spd_ddr2.c: In function 'program_ddr0_44':
denali_spd_ddr2.c:1006: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoGCC4.6: Squash warnings in denali_data_eye.c
Marek Vasut [Fri, 21 Oct 2011 14:17:06 +0000 (14:17 +0000)]
GCC4.6: Squash warnings in denali_data_eye.c

denali_data_eye.c: In function
'denali_core_search_data_eye':denali_spd_ddr2.c:646: warning: format '%d'
expects type 'int', but argument 2 has type 'long unsigned int'

denali_data_eye.c:320: warning: format '%08lx' expects type 'long unsigned int',
but argument 2 has type 'u32'
denali_data_eye.c:330: warning: format '%08lx' expects type 'long unsigned int',
but argument 2 has type 'u32'
denali_spd_ddr2.c:676: warning: format '%d' expects type 'int', but argument 2
has type 'long unsigned int'
denali_data_eye.c:340: warning: format '%08lx' expects type 'long unsigned int',
but argument 2 has type 'u32'
denali_data_eye.c:350: warning: format '%08lx' expects type 'long unsigned int',
but argument 2 has type 'u32'
denali_data_eye.c:360: warning: format '%08lx' expects type 'long unsigned int',
but argument 2 has type 'u32'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agoPowerPC: Squash warning in mpc512x serial.c
Marek Vasut [Fri, 21 Oct 2011 14:17:02 +0000 (14:17 +0000)]
PowerPC: Squash warning in mpc512x serial.c

serial.c: In function 'serial_setbrg_dev':
serial.c:143: warning: format '%d' expects type 'int', but argument 4 has type
'long unsigned int'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
12 years agocosmetic: s/BOARD_LATE_INIT/CONFIG_BOARD_LATE_INIT
Helmut Raiger [Thu, 20 Oct 2011 04:19:47 +0000 (04:19 +0000)]
cosmetic: s/BOARD_LATE_INIT/CONFIG_BOARD_LATE_INIT

This renames BOARD_LATE_INIT to CONFIG_BOARD_LATE_INIT.
Along the way it removes some leftover

 #define BOARD_LATE_INIT 1

and adds some basic documentation for board specific
callbacks in README.

Signed-off-by: Helmut Raiger <helmut.raiger@hale.at>
Acked-by: Stefano Babic <sbabic@denx.de>
12 years agodisk: part_efi: fix **pgpt_pte == NULL
Doug Anderson [Wed, 19 Oct 2011 09:47:31 +0000 (09:47 +0000)]
disk: part_efi: fix **pgpt_pte == NULL

Code was setting **pgpt_pte == NULL, which meant that the pointer
to the gpt_pte would be stored at RAM address 00000000. This 'worked'
on T20 (SDRAM starts @ 0x00000000), but hung gpt/EFI access on T30
(SDRAM starts @ 0x80000000).

Signed-off-by: Tom Warren <twarren@nvidia.com>
Signed-off-by: Doug Anderson <dianders@chromium.org>
12 years agocosmetic: Replace __FUNCTION__ with __func__ in part_efi.c
Doug Anderson [Wed, 19 Oct 2011 08:04:46 +0000 (08:04 +0000)]
cosmetic: Replace __FUNCTION__ with __func__ in part_efi.c

This makes checkpatch happy.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
12 years agoREADME: improve documentation of network related CONFIG_ settings
Wolfgang Denk [Wed, 26 Oct 2011 10:21:22 +0000 (10:21 +0000)]
README: improve documentation of network related CONFIG_ settings

Add documentation for CONFIG_GATEWAYIP and CONFIG_NETMASK;
also add information which environment variables are set.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Simon Glass <sjg@chromium.org>
12 years agoREADME: white-space cleanup
Wolfgang Denk [Wed, 26 Oct 2011 10:21:21 +0000 (10:21 +0000)]
README: white-space cleanup

Signed-off-by: Wolfgang Denk <wd@denx.de>
12 years agoimage: Fix inverted logic in architecture check.
Thierry Reding [Thu, 27 Oct 2011 08:58:25 +0000 (08:58 +0000)]
image: Fix inverted logic in architecture check.

Commit 476af29 broke this check when the ifdef lists we consolidated.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
12 years agonet: Export auto_load, use it in rarp
Simon Glass [Thu, 27 Oct 2011 06:24:32 +0000 (06:24 +0000)]
net: Export auto_load, use it in rarp

The rarp code includes another instance of the auto_load logic, so call
what is now net_auto_load() instead.

This also fixes an incorrect call to TftpStart() which was never seen
since apparently no boards enable rarp.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
12 years agonet: Change for loop to memset()
Simon Glass [Wed, 26 Oct 2011 14:18:39 +0000 (14:18 +0000)]
net: Change for loop to memset()

This is intended purely as a code size reduction.

Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agonet: Add more #ifdefs for tftpput to reduce code size
Simon Glass [Thu, 27 Oct 2011 06:24:29 +0000 (06:24 +0000)]
net: Add more #ifdefs for tftpput to reduce code size

If CONFIG_CMD_TFTPPUT is not enabled, we want minimal code size impact
on the tftp code. This introduces a few more #ifdefs.

Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agonet: Make net_transfer() a static function
Simon Glass [Thu, 27 Oct 2011 06:24:28 +0000 (06:24 +0000)]
net: Make net_transfer() a static function

This should be a static function so it can be inlined.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
12 years agonet: Hide more code behind CONFIG_CMD_TFTPPUT
Simon Glass [Wed, 26 Oct 2011 14:18:38 +0000 (14:18 +0000)]
net: Hide more code behind CONFIG_CMD_TFTPPUT

This commit reduces code size a little by making the ICMP handler only
available to tftpput. This is reasonable since it is the only user at
present (ping just uses the normal handler).

Signed-off-by: Simon Glass <sjg@chromium.org>
12 years agofat: correct ATTR_VFAT check
J. Vijayanand [Wed, 19 Oct 2011 07:43:08 +0000 (07:43 +0000)]
fat: correct ATTR_VFAT check

ATTR_VFAT condition requires multiple bits to be set but the present
condition checking in do_fat_read() & get_dentfromdir() ends up
passing on even a single bit being set.

Signed-off-by: J. Vijayanand <vijayanand.jayaraman@in.bosch.com>
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
12 years agofs/fat/fat.c: fix warning: 'part_size' defined but not used
Wolfgang Denk [Thu, 27 Oct 2011 21:08:16 +0000 (23:08 +0200)]
fs/fat/fat.c: fix warning: 'part_size' defined but not used

Commit c30a15e "FAT: Add FAT write feature" introduced a compiler
warning.  Fix this.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Donggeun Kim <dg77.kim@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
12 years agoARM: Add Calxeda Highbank platform
Rob Herring [Mon, 24 Oct 2011 08:50:20 +0000 (08:50 +0000)]
ARM: Add Calxeda Highbank platform

Add basic support for Calxeda Highbank platform. Only minimal support with
serial and SATA are included.

Signed-off-by: Jason Hobbs <jason.hobbs@calxeda.com>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
12 years agodkb: make mmc command as default enabled
Lei Wen [Mon, 3 Oct 2011 20:33:43 +0000 (20:33 +0000)]
dkb: make mmc command as default enabled

Signed-off-by: Lei Wen <leiwen@marvell.com>
12 years agoMarvell: dkb: add mmc support
Lei Wen [Mon, 3 Oct 2011 20:33:42 +0000 (20:33 +0000)]
Marvell: dkb: add mmc support

Signed-off-by: Lei Wen <leiwen@marvell.com>
12 years agoARM: pantheon: add mmc definition
Lei Wen [Mon, 3 Oct 2011 20:33:41 +0000 (20:33 +0000)]
ARM: pantheon: add mmc definition

Signed-off-by: Lei Wen <leiwen@marvell.com>
12 years agodavinci: remove config.mk file from the sources
Vladimir Zapolskiy [Mon, 17 Oct 2011 08:46:53 +0000 (08:46 +0000)]
davinci: remove config.mk file from the sources

To compile TI Davinci SoC support the identical config.mk file from
the cpu directory shall be used.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoARM:AM33XX: Add support for TI AM335X EVM
Chandan Nath [Fri, 14 Oct 2011 02:58:26 +0000 (02:58 +0000)]
ARM:AM33XX: Add support for TI AM335X EVM

This patch adds basic support for booting the board.
This patch adds support for the UART necessary to
get to the u-boot prompt.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoARM:AM33XX: Added timer support
Chandan Nath [Fri, 14 Oct 2011 02:58:25 +0000 (02:58 +0000)]
ARM:AM33XX: Added timer support

This patch adds timer support for AM33xx platform.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoARM:AM33XX: Add emif/ddr support
Chandan Nath [Fri, 14 Oct 2011 02:58:24 +0000 (02:58 +0000)]
ARM:AM33XX: Add emif/ddr support

This patch adds AM33xx emif/ddr support along with board specific
defines.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoARM:AM33XX: Add clock definitions
Chandan Nath [Fri, 14 Oct 2011 02:58:23 +0000 (02:58 +0000)]
ARM:AM33XX: Add clock definitions

This patch adds basic clock definition of am33xx SoC.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoARM:AM33XX: Added support for AM33xx
Chandan Nath [Fri, 14 Oct 2011 02:58:22 +0000 (02:58 +0000)]
ARM:AM33XX: Added support for AM33xx

This patch adds basic support for AM33xx which is based on ARMV7
Cortex A8 CPU.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoomap3/emif4: fix registers definition
Ilya Yanok [Thu, 13 Oct 2011 11:18:12 +0000 (11:18 +0000)]
omap3/emif4: fix registers definition

Fix EMIF4 registers definition.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agodavinci: remove obsolete macro CONFIG_EMAC_MDIO_PHY_NUM
Manjunath Hadli [Thu, 13 Oct 2011 03:40:55 +0000 (03:40 +0000)]
davinci: remove obsolete macro CONFIG_EMAC_MDIO_PHY_NUM

remove macro CONFIG_EMAC_MDIO_PHY_NUM and depending macro EMAC_MDIO_PHY_NUM
as they are no longer needed with the support for more than 1 PHYs in davinci
emac driver.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agodavinci: emac: add support for more than 1 PHYs
Manjunath Hadli [Thu, 13 Oct 2011 03:40:54 +0000 (03:40 +0000)]
davinci: emac: add support for more than 1 PHYs

add support for more than 1 PHYs. Many of the davinci platforms have more
than 1 PHYs on thier board. This patch extends support in davinci emac
driver for upto 3 PHYs.

Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agodavinci: emac: add new features to autonegotiate for EMAC
Manjunath Hadli [Thu, 13 Oct 2011 03:40:53 +0000 (03:40 +0000)]
davinci: emac: add new features to autonegotiate for EMAC

add more features like DUPLEX, 100MB link speed etc to auto negotiate
in EMAC driver. EMAC controller autonegotiates for these features with
PHYs which are on the board.

Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoda850evm: Move LPSC configuration to board_early_init_f()
Christian Riesch [Thu, 13 Oct 2011 00:52:29 +0000 (00:52 +0000)]
da850evm: Move LPSC configuration to board_early_init_f()

Since commit f1d2b313c9eb6808d30c16a9eb5251240452a56c the serial
port of the da850evm is accessed before the UART2 peripheral of
the SoC is powered on in the function board_init() in
board/davinci/da8xxevm/da850evm.c.

When u-boot is used in conjunction with the UBL (user boot loader, see
doc/README.davinci) on this board, the UART2 peripheral is already
turned on by UBL at the time u-boot is started. Hence, the wrong
initialization sequence is not noticed by most users. However, if UBL is not
used, u-boot must power on the peripheral before using it.

This patch adds a board_early_init_f() function for the LPSC
configuration to the da850evm board configuration.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Ben Gardiner <bengardiner@nanometrics.ca>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoomap4_panda: Build in cmd_gpio support on panda
Joe Hershberger [Wed, 12 Oct 2011 10:31:45 +0000 (10:31 +0000)]
omap4_panda: Build in cmd_gpio support on panda

Enable the gpio command

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoomap: Don't use gpio_free to change direction to input
Joe Hershberger [Wed, 12 Oct 2011 10:31:44 +0000 (10:31 +0000)]
omap: Don't use gpio_free to change direction to input

gpio_free() should not have the side effect of setting the line to input since this prevents the gpio command from being able to set a line as output.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agommc: omap: Allow OMAP_HSMMC[23]_BASE to be unset
Tom Rini [Wed, 12 Oct 2011 06:20:50 +0000 (06:20 +0000)]
mmc: omap: Allow OMAP_HSMMC[23]_BASE to be unset

Not all omap families define OMAP_HSMMC[23]_BASE so condition those
cases in omap_mmc_init().

Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoOMAP3: overo : Add environment variable optargs to bootargs
Philip Balister [Tue, 11 Oct 2011 11:23:23 +0000 (11:23 +0000)]
OMAP3: overo : Add environment variable optargs to bootargs

This allows the user can easily add extra kernel arguments. Very helpful
for reserving memory for the DSP without rewriting the entire kernel
argument line.

Signed-off-by: Philip Balister <philip@opensdr.com>
Tested-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoOMAP3: overo: Move ethernet CS4 configuration to execute based on board id
Philip Balister [Tue, 11 Oct 2011 11:23:22 +0000 (11:23 +0000)]
OMAP3: overo: Move ethernet CS4 configuration to execute based on board id

By moving the CS4 configuration into the board specific configuration, it
is left free for custom carrier boards. The USRP-E1XX series uses
CS4 to control access to an FPGA, so without this patch the device driver
cannot claim CS4.

Signed-off-by: Philip Balister <philip@opensdr.com>
Tested-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoOMAP3: overo : Use ttyO2 instead of ttyS2.
Philip Balister [Tue, 11 Oct 2011 11:23:21 +0000 (11:23 +0000)]
OMAP3: overo : Use ttyO2 instead of ttyS2.

Starting with kernel 2.6.37, the serial ports on the OMAP3 are called
ttyOX, not ttySX.

Signed-off-by: Philip Balister <philip@opensdr.com>
Tested-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoda830: add support for NAND boot mode
Manjunath Hadli [Fri, 7 Oct 2011 23:38:39 +0000 (23:38 +0000)]
da830: add support for NAND boot mode

Add support for enabling NAND boot mode in configuration file and
add correspanding pinmux support, nand initialize function in board file.
The size required for environment variables not more than 10KB
the CONFIG_ENV_SIZE is set to 10KB from (512 << 10).

Acked-by: Nick Thompson <nick.thompson@ge.com>
Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agodm36x: revert cache disable patch
Manjunath Hadli [Fri, 7 Oct 2011 23:34:37 +0000 (23:34 +0000)]
dm36x: revert cache disable patch

revert commit 98c19aff9524e1d0dd6bf39bf7bde5644f121feb as the
disabling of cache need not be done explicitly. Subsequent
patches to new cache management framework has fixed it.
EMAC issue with cache coherency still exists when cahces are
enabled.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agodm644X: revert cache disable patch
Manjunath Hadli [Fri, 7 Oct 2011 23:33:32 +0000 (23:33 +0000)]
dm644X: revert cache disable patch

revert commit 913a39e9aa4d935948d41cd727d53f5878414a77 as the
disabling of cache need not be done explicitly. Subsequent
patches to new cache management framework has fixed it.
EMAC issue with cache coherency still exists when cahces are
enabled.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agodevkit8000: Add malloc space
Tom Rini [Tue, 18 Oct 2011 17:47:22 +0000 (10:47 -0700)]
devkit8000: Add malloc space

With malloc support being a new requirement for all ARM SPL
implementations, define a small area for use on devkit8000.

Cc: Frederik Kriewitz <frederik@kriewitz.eu>
Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoomap: spl: fix build break due to changes in FAT
Aneesh V [Fri, 21 Oct 2011 16:29:34 +0000 (12:29 -0400)]
omap: spl: fix build break due to changes in FAT

FAT library now uses malloc() and free(). But SPL doesn't
have heap until now. Setup a heap in SDRAM to fix this issue.

However this increases SPL footprint beyond the available SRAM
budget. So, compile out some fancy features in the SDARM init
bring back footprint under control

CC: Sandeep Paulraj <s-paulraj@ti.com>
CC: Wolfgang Denk <wd@denx.de>
Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoOMAP3 SPL: Provide weak omap_rev_string
Tom Rini [Tue, 4 Oct 2011 04:59:23 +0000 (04:59 +0000)]
OMAP3 SPL: Provide weak omap_rev_string

We add an weak version of omap_rev_string in omap-common/spl.c
and while at it drop the omap3 version.  Move the prototype over
to <asm/omap_common.h> with the other SPL functions.

Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoomap: beagle: Use ubifs instead of jffs2 for nand boot
Steve Sakoman [Fri, 30 Sep 2011 09:29:11 +0000 (09:29 +0000)]
omap: beagle: Use ubifs instead of jffs2 for nand boot

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Acked-by: Koen Kooi <k-kooi@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoomap: overo: Disable pull-ups on camera PCLK, HS and VS signals
Steve Sakoman [Fri, 30 Sep 2011 09:08:36 +0000 (09:08 +0000)]
omap: overo: Disable pull-ups on camera PCLK, HS and VS signals

The level shifters used on the Caspa camera module have a 4k output
impedance. Combined with the 100uA pull-up resistors in the OMAP3,
this raises the ground level to 400mV. Adding crosstalk between the
pixel clock and the HS/VS signals on the flat cable (a ground line in
between would have been nice), logic 0 levels can raise up to 650mV.
This exceeds the camera input pins VIL maximum voltage.  This change
suggested-by Laurent Pinchart

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoomap: overo: Configure mux for gpio10
Steve Sakoman [Fri, 30 Sep 2011 09:04:14 +0000 (09:04 +0000)]
omap: overo: Configure mux for gpio10

This pad was previously configured for sysclkout_1.  This patch changes
the configuration to gpio_10 to reduce radiated noise from the 26Mhz
clock, as well as make the pin more generally useful.

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Acked-by: Philip Balister <philip@opensdr.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoSPL: Add DMA library
Simon Schwarz [Wed, 28 Sep 2011 05:00:27 +0000 (05:00 +0000)]
SPL: Add DMA library

Adding a DMA library to the SPL. It is used if CONFIG_SPL_DMA_SUPPORT is
defined.

Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoomap3: Add interface for omap3 DMA
Simon Schwarz [Wed, 28 Sep 2011 05:00:26 +0000 (05:00 +0000)]
omap3: Add interface for omap3 DMA

Adds an interface to use the OMAP3 DMA.

Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoomap3: Add DMA register accessors
Simon Schwarz [Wed, 28 Sep 2011 05:00:25 +0000 (05:00 +0000)]
omap3: Add DMA register accessors

Adding the register definitions for omap3 DMA controller to cpu.h

Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoomap3: Add Base register for DMA
Simon Schwarz [Wed, 28 Sep 2011 05:00:24 +0000 (05:00 +0000)]
omap3: Add Base register for DMA

Adding the base register address of OMAP3 DMA controller.

Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoarm, davinci: add missing LSPC define for MMC/SD1
Heiko Schocher [Tue, 27 Sep 2011 19:40:41 +0000 (19:40 +0000)]
arm, davinci: add missing LSPC define for MMC/SD1

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Paulraj Sandeep <s-paulraj@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoU-Boot/SPL: omap4: Make ddr pre-calculated timings as default.
SRICHARAN R [Tue, 27 Sep 2011 01:43:18 +0000 (01:43 +0000)]
U-Boot/SPL: omap4: Make ddr pre-calculated timings as default.

All ddr configurations(geometry/timings) are done automatically
by detecting the device connected at run time. Though this
is a useful feature, making this as a default setting increases
the code size by about 2K bytes. This is quite big, especially
in the case of SPL which runs from a smaller SRAM. So do not
use this feature as the default setting, instead use the
precalculated tables.

Signed-off-by: sricharan <r.sricharan@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoDaVinci: correct MDSTAT.STATE mask
Sergei Shtylyov [Fri, 23 Sep 2011 04:29:15 +0000 (04:29 +0000)]
DaVinci: correct MDSTAT.STATE mask

MDSTAT.STATE occupies bits 0..5 according to all available documentation, so fix
the mask which previously was leaving out the intermediate state indicator bit.

While at it, introduce two #define's for that mask -- unfortunately, we can't
use a single #define as the assembly code can't include <asm/arch/hardware.h>
due to C-specfic constructs in it.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoomap4: splitting padconfs into common, 4430 and 4460
Ricardo Salveti de Araujo [Wed, 21 Sep 2011 10:17:31 +0000 (10:17 +0000)]
omap4: splitting padconfs into common, 4430 and 4460

Not all padconfs are the same between 4430 and 4460, so instead of
working around this with an if, we should have an specific padconf
structure for both chips (like handling the differences between the LEDs
GPIOs and TPS).

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoomap4: adding revision detection for 4460 ES1.1
Ricardo Salveti de Araujo [Wed, 21 Sep 2011 10:17:30 +0000 (10:17 +0000)]
omap4: adding revision detection for 4460 ES1.1

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org>
 2 files changed, 17 insertions(+), 1 deletions(-)
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agoomap4: replacing OMAP4_CONTROL with OMAP4430_CONTROL
Ricardo Salveti de Araujo [Wed, 21 Sep 2011 10:17:29 +0000 (10:17 +0000)]
omap4: replacing OMAP4_CONTROL with OMAP4430_CONTROL

OMAP4460 has a different set of values for the ID code, so moving the
old ones to be related just with 4430.

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
12 years agogplug: fixed build error as a result of code cleanup patch
Prafulla Wadaskar [Tue, 18 Oct 2011 14:35:47 +0000 (20:05 +0530)]
gplug: fixed build error as a result of code cleanup patch

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
12 years agokirkwood_spi: add dummy spi_init()
Michael Walle [Tue, 18 Oct 2011 14:42:00 +0000 (20:12 +0530)]
kirkwood_spi: add dummy spi_init()

The spi_init() function is missing. Add it.

Signed-off-by: Michael Walle <michael@walle.cc>
12 years agogpio: mvmfp: reduce include platform file
Lei Wen [Tue, 18 Oct 2011 14:41:55 +0000 (20:11 +0530)]
gpio: mvmfp: reduce include platform file

Build pass with following config:
dkb_config
aspenite_config

Signed-off-by: Lei Wen <leiwen@marvell.com>
12 years agoARM: orion5x: reduce dependence of including platform file
Lei Wen [Mon, 24 Oct 2011 16:27:32 +0000 (16:27 +0000)]
ARM: orion5x: reduce dependence of including platform file

For files like the drivers/serial/serial.c, it must include the
platform file, as the CONFIG_SYS_NS16550_COM1 must reference to
the definition in the platform definition files.

Include the platform definition file in the config file, so that it
would decouple the dependence for the driver files.

Signed-off-by: Lei Wen <leiwen@marvell.com>
12 years agoserial: reduce include platform file for marvell chip
Lei Wen [Tue, 18 Oct 2011 14:41:48 +0000 (20:11 +0530)]
serial: reduce include platform file for marvell chip

Build pass with following config:
dkb_config
aspenite_config
edminiv2_config
openrd_ultimate_config
sheevaplug_config
mv88f6281gtw_ge_config
rd6281a_config
guruplug_config
km_kirkwood_config

Signed-off-by: Lei Wen <leiwen@marvell.com>
Acked-by: Wolfgang Denk <wd@denx.de>
12 years agoARM: kirkwood: reduce dependence of including platform file
Lei Wen [Tue, 18 Oct 2011 14:41:42 +0000 (20:11 +0530)]
ARM: kirkwood: reduce dependence of including platform file

For files like the drivers/serial/serial.c, it must include the
platform file, as the CONFIG_SYS_NS16550_COM1 must reference to the
definition in the platform definition files.

Include the platform definition file in the config file, so that it
would decouple the dependence for the driver files.

Signed-off-by: Lei Wen <leiwen@marvell.com>
12 years agoARM: armada100: reduce dependence of including platform file
Lei Wen [Tue, 18 Oct 2011 14:20:48 +0000 (19:50 +0530)]
ARM: armada100: reduce dependence of including platform file

For files like the drivers/serial/serial.c, it must include the
platform file, as the CONFIG_SYS_NS16550_COM1 must reference to the
definition in the platform definition files.

Include the platform definition file in the config file, so that it
would decouple the dependence for the driver files.

Updated cpu.h to remove build errors for gplugd board (by prafulla)

Signed-off-by: Lei Wen <leiwen@marvell.com>
Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
12 years agoARM: pantheon: reduce dependence of including platform file
Lei Wen [Tue, 18 Oct 2011 13:51:33 +0000 (19:21 +0530)]
ARM: pantheon: reduce dependence of including platform file

For files like the drivers/serial/serial.c, it must include the platform
file, as the CONFIG_SYS_NS16550_COM1 must reference to the definition in
the platform definition files.

Include the platform definition file in the config file, so that it
would decouple the dependence for the driver files.

Signed-off-by: Lei Wen <leiwen@marvell.com>
12 years agoArmada100: Add env storage support for Marvell gplugD
Ajay Bhargav [Mon, 3 Oct 2011 08:30:58 +0000 (14:00 +0530)]
Armada100: Add env storage support for Marvell gplugD

This patch adds support for envrionment varaible storage in SPI flash
for Marvell gplugD.

Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
12 years agoArmada100: Add SPI flash support for Marvell gplugD
Ajay Bhargav [Mon, 3 Oct 2011 08:30:58 +0000 (14:00 +0530)]
Armada100: Add SPI flash support for Marvell gplugD

This patch enables Atmel AT45 SPI flash support for Marvell gplugD
Enables SF commands.

Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
12 years agoArmada100: Add SPI support for Marvell gplugD
Ajay Bhargav [Mon, 3 Oct 2011 08:30:57 +0000 (14:00 +0530)]
Armada100: Add SPI support for Marvell gplugD

This patch add SPI driver support for Marvell gplugD

Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
12 years agoSPI: Add SPI driver support for Marvell Armada100
Ajay Bhargav [Mon, 3 Oct 2011 08:30:57 +0000 (14:00 +0530)]
SPI: Add SPI driver support for Marvell Armada100

This patch provides support for SPI emulated over SSP for Marvell
Armada100 SOC.

Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
12 years agodreamplug: initial board support.
Jason Cooper [Mon, 3 Oct 2011 08:19:53 +0000 (13:49 +0530)]
dreamplug: initial board support.

Copied wholeheartedly from board/Marvell/guruplug and modified to add support
for SPI NOR flash.

CONFIG_MACH_DREAMPLUG defined in include/configs/dreamplug.h until Linus's
kernel.org tree adds it to mach-types.h.  Once it trickles down, the definition
can be removed from include/configs/dreamplug.h.

Signed-off-by: Jason Cooper <u-boot@lakedaemon.net>
12 years agoimx: fix coding style
Fabio Estevam [Thu, 13 Oct 2011 05:34:59 +0000 (05:34 +0000)]
imx: fix coding style

Fix checkpatch warning and errors in several i.MX related files.

While at it also address a checkpatch warning at arch/arm/cpu/armv7/mx5/soc.c
regarding the usage of extern in a C file.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
12 years agomisc: pmic: drop old Freescale's pmic driver
Stefano Babic [Sat, 8 Oct 2011 09:35:14 +0000 (11:35 +0200)]
misc: pmic: drop old Freescale's pmic driver

Signed-off-by: Stefano Babic <sbabic@denx.de>
12 years agoMX31: mx31pdk: use new pmic driver
Stefano Babic [Sat, 8 Oct 2011 09:04:22 +0000 (11:04 +0200)]
MX31: mx31pdk: use new pmic driver

Switch to new pmic generic driver.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Fabio Estevam <fabio.estevam@freescale.com>
12 years agoMX31: mx31ads: use new pmic driver
Stefano Babic [Sat, 8 Oct 2011 09:02:53 +0000 (11:02 +0200)]
MX31: mx31ads: use new pmic driver

Switch to new pmic generic driver.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Fabio Estevam <fabio.estevam@freescale.com>
12 years agoMX31: mx31_litekit: use new pmic driver
Stefano Babic [Sat, 8 Oct 2011 09:01:52 +0000 (11:01 +0200)]
MX31: mx31_litekit: use new pmic driver

Switch to new pmic generic driver.

Signed-off-by: Stefano Babic <sbabic@denx.de>
12 years agoMX5: mx53evk: use new pmic driver
Stefano Babic [Sat, 8 Oct 2011 09:00:22 +0000 (11:00 +0200)]
MX5: mx53evk: use new pmic driver

Switch to new pmic generic driver.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Jason Liu <jason.hui@linaro.org>
Acked-by: Jason Liu <jason.hui@linaro.org>
12 years agoMX5: mx51evk: use new pmic driver
Stefano Babic [Sat, 8 Oct 2011 08:59:20 +0000 (10:59 +0200)]
MX5: mx51evk: use new pmic driver

Switch to new pmic generic driver.

Signed-off-by: Stefano Babic <sbabic@denx.de>
12 years agoMX35: mx35pdk: use new pmic driver
Stefano Babic [Thu, 6 Oct 2011 19:07:42 +0000 (21:07 +0200)]
MX35: mx35pdk: use new pmic driver

Switch to new pmic generic driver.

Signed-off-by: Stefano Babic <sbabic@denx.de>
12 years agomisc: pmic: addI2C support to pmic_fsl driver
Stefano Babic [Thu, 6 Oct 2011 19:06:39 +0000 (21:06 +0200)]
misc: pmic: addI2C  support to pmic_fsl driver

Signed-off-by: Stefano Babic <sbabic@denx.de>
12 years agomisc: pmic: use I2C_SET_BUS in pmic I2C
Stefano Babic [Tue, 11 Oct 2011 17:18:05 +0000 (19:18 +0200)]
misc: pmic: use I2C_SET_BUS in pmic I2C

Instead of using directly the i2c_set_bus() function,
the I2C_SET_BUS macro must be used to avoid build
errors for targets without multibus I2C.

Signed-off-by: Stefano Babic <sbabic@denx.de>
12 years agoMX5: efikamx/efikasb: use new pmic driver
Stefano Babic [Thu, 6 Oct 2011 09:44:26 +0000 (11:44 +0200)]
MX5: efikamx/efikasb: use new pmic driver

Switch to new pmic generic driver.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>