profile/mobile/platform/kernel/u-boot-tm1.git
6 years agogpio: remove build warnings caused by sprd bsp 59/165559/1
Seung-Woo Kim [Tue, 2 Jan 2018 06:38:58 +0000 (15:38 +0900)]
gpio: remove build warnings caused by sprd bsp

Remove build warnings caused by sprd bsp.

Change-Id: I0c64253caec188267a13dc9e24cbfd489085d746
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 years agolcd: remove build warnings 42/165542/2
Seung-Woo Kim [Tue, 2 Jan 2018 03:58:19 +0000 (12:58 +0900)]
lcd: remove build warnings

Remove build warnings in logo display.

Change-Id: I021aa282bfb1c55ec909703f99b42f9b2dafede4
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 years agopower: battery: sprd: remove build warnings 39/165539/1
Seung-Woo Kim [Tue, 2 Jan 2018 03:44:19 +0000 (12:44 +0900)]
power: battery: sprd: remove build warnings

Remove build warnings from sprd battery.

Change-Id: I5b30f1d1f35748da2b02e2e6cacad054cd0547c2
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 years agousb: replace wait_ms() with mdelay() 38/165538/1
Mike Frysinger [Mon, 5 Mar 2012 13:47:00 +0000 (13:47 +0000)]
usb: replace wait_ms() with mdelay()

Common code has a mdelay() func, so use that instead of the usb-specific
wait_ms() func.  This also fixes the build errors:

ohci-hcd.c: In function 'submit_common_msg':
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1519:9: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1816:10: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1827:10: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1844:10: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1563:11: sorry, unimplemented: called from here
/usr/local/src/u-boot/blackfin/include/usb.h:202:44: sorry, unimplemented: inlining failed in call to 'wait_ms': function body not available
ohci-hcd.c:1583:9: sorry, unimplemented: called from here
make[1]: *** [ohci-hcd.o] Error 1

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Marek Vasut <marex@denx.de>
[sw0312.kim: backport the commit 5b84dd67cfd8 from mainline u-boot to fix build warning
 - patch of common/usb_hub.c is applied to common/usb.c because it was not divided in v2010.12]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ic383ed6d4d0531e965d7797c5ad0eb3c5145d3c4

6 years agoi2c: sprd: remove build warnings 43/165443/2
Seung-Woo Kim [Fri, 29 Dec 2017 02:34:46 +0000 (11:34 +0900)]
i2c: sprd: remove build warnings

Remove build warnings in sprd i2c.

Change-Id: I377ebe847191dac9aab922e1e9b36c0840bd8b0e
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 years agothor: remove build warnings 44/165444/2
Seung-Woo Kim [Fri, 29 Dec 2017 03:04:39 +0000 (12:04 +0900)]
thor: remove build warnings

Remove build warnings in usb thor.

Change-Id: I210e0ec1780776d53e74ccb202b14aadc99d96ba
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 years agopart: remove build warnings in sprd partition 42/165442/1
Seung-Woo Kim [Fri, 29 Dec 2017 02:33:54 +0000 (11:33 +0900)]
part: remove build warnings in sprd partition

Remove build warnings in sprd partition.

Change-Id: I58dc3673b0c48b8c97f583f92133b5f39ecd0b3a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 years agoconsole: remove build warning in ram console 41/165441/1
Seung-Woo Kim [Fri, 29 Dec 2017 02:32:30 +0000 (11:32 +0900)]
console: remove build warning in ram console

Remove build warning in ram console.

Change-Id: I1b783345c081fbd9d24c727fc1ec00f9d16eb38c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 years agofdt: remove build warnings caused by sprd bsp 40/165440/1
Seung-Woo Kim [Fri, 29 Dec 2017 02:31:33 +0000 (11:31 +0900)]
fdt: remove build warnings caused by sprd bsp

Remove build warnings caused by sprd bsp.

Change-Id: I8989a6fdbac336354feb5736db2ea815ec19e95e
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 years agobootmode: normal: remove duplicated macro 40/165240/2
Seung-Woo Kim [Wed, 27 Dec 2017 07:52:54 +0000 (16:52 +0900)]
bootmode: normal: remove duplicated macro

There is duplicated macro, and it causes build warning. Remove the
duplication.

Change-Id: I05b23aba350bbefb6e95a952a1d24a57bed960fe
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 years agousb: gadget: remove duplicated print macro 15/165215/2
Seung-Woo Kim [Wed, 27 Dec 2017 06:22:57 +0000 (15:22 +0900)]
usb: gadget: remove duplicated print macro

There are duplicated print macros. Remove the macros.

Change-Id: I26cfa53689c39d661e64eb1a61e381f8baf30ac4
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 years agoboard: tizen_tm1: remove build warnings 02/165302/2
Seung-Woo Kim [Thu, 28 Dec 2017 05:36:10 +0000 (14:36 +0900)]
board: tizen_tm1: remove build warnings

Remove build warnings from tizen_tm1 board bsp code.

Change-Id: I2f89ef18bc5f35c2f29aa885f10d98f0496ea06c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 years agoarm: sc8830: remove build warnings 00/165300/2
Seung-Woo Kim [Thu, 28 Dec 2017 05:30:33 +0000 (14:30 +0900)]
arm: sc8830: remove build warnings

Remove build warnings from sc8830 arch bsp code.

Change-Id: I253660a28de843f9f0e61ce7d5bd0a75cf05a86b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 years agoarm: sc8830: fix redefined macro warnings 91/165191/2
Seung-Woo Kim [Wed, 27 Dec 2017 04:45:34 +0000 (13:45 +0900)]
arm: sc8830: fix redefined macro warnings

There are several redefied macro warnings. Remove the warnings with

NOTE: some macro value are different from previous define, so it
changes to use #undef when the macro is defined.

Change-Id: I54284b2de3d26c2385d5e1ae356882a4507754c0
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 years agologo: remove meaningless packed attributte 37/165337/2
Seung-Woo Kim [Thu, 28 Dec 2017 08:38:21 +0000 (17:38 +0900)]
logo: remove meaningless packed attributte

The logo image is not in struct, so packed attribute has no
meaning. Remove the meaning less packed attribute to fix build
warnings.

Change-Id: I35d118600c44af1fcfbd59b6ad59d7601e1bec9a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoARM: SPRD: fix build warnings for sc8830 33/159333/1 accepted/tizen/4.0/unified/20171218.072035 accepted/tizen/unified/20171113.092522 submit/tizen/20171113.013653 submit/tizen_4.0/20171218.021435 tizen_4.0.IoT.p2_release
Seung-Woo Kim [Wed, 8 Nov 2017 07:43:24 +0000 (16:43 +0900)]
ARM: SPRD: fix build warnings for sc8830

Fix build warnings including implicit function, unused variable and
incompatible pointer in sc8830 directory. It also removes not used
ldo functions causing building.

Change-Id: I6fcda323d28437ee5ba41ad9022eb465fc86df83
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoGCC4.6: Squash warnings in lcd.c 38/159138/1
Marek Vasut [Mon, 26 Sep 2011 00:26:04 +0000 (02:26 +0200)]
GCC4.6: Squash warnings in lcd.c

lcd.c: In function ‘lcd_drawchars’:
lcd.c:214:9: warning: variable ‘off’ set but not used
[-Wunused-but-set-variable]
lcd.c: In function ‘lcd_display_bitmap’:
lcd.c:617:16: warning: variable ‘compression’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
[sw0312.kim: cherry-pick from mainline commit be547c6db32d to fix build warning]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I09ae696ae78c82a8761b4ef15befa6f55eddbcc4

7 years agoGCC4.6: Squash warning in cmd_nvedit.c 32/159132/1
Marek Vasut [Mon, 26 Sep 2011 00:26:03 +0000 (02:26 +0200)]
GCC4.6: Squash warning in cmd_nvedit.c

cmd_nvedit.c: In function ‘do_env_edit’:
cmd_nvedit.c:463:6: warning: variable ‘len’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
[sw0312.kim: cherry-pick from mainline commit 7fcd9bbd6f0a6 to fix build warning]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I241ecf6c472b6fc43ccc2254abaa38434767586c

7 years agoGCC4.6: Squash warning in cmd_mem.c 31/159131/1
Marek Vasut [Mon, 26 Sep 2011 00:26:06 +0000 (02:26 +0200)]
GCC4.6: Squash warning in cmd_mem.c

cmd_mem.c: In function ‘do_mem_loop’:
cmd_mem.c:474:25: warning: variable ‘junk’ set but not used
[-Wunused-but-set-variable]

The assigned variable can be removed because the pointers are volatile so
accesses to their addresses are always generated.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
[sw0312.kim: cherry-pick from mainline commit f3b3c3df189f to fix build warning]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I20e93f08dc0e7fbc73fbfdf213781948f9737eb7

7 years agolib:sha1: remove unused constant 42/158942/1
Jeroen Hofstee [Thu, 10 Jul 2014 18:12:45 +0000 (20:12 +0200)]
lib:sha1: remove unused constant

This prevents a clang warning.
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
[sw0312.kim: cherry-pick from mainline commit 6b13f0c050c7 to fix build warning]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I288fa12a608c09194a5165070fa4bbc011b0a1a3

7 years agoimage/fit: drop inline markings on parser code 28/155428/1 accepted/tizen/unified/20171106.073148 submit/tizen/20171106.023205
Mike Frysinger [Sun, 22 Apr 2012 06:59:06 +0000 (06:59 +0000)]
image/fit: drop inline markings on parser code

Putting "inline" on extern funcs makes no sense, so drop them.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
[jh80.chung: cherry-pick from u-boot mainline to remove build warning]
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I27f1f80aaa6d6212ea9390ad7fa697cf993fe133

7 years agoi2c: i2c_phy_v0: remove the debug message 90/153590/2 accepted/tizen/4.0/unified/20171017.210954 accepted/tizen/unified/20171016.064312 submit/tizen/20171013.052930 submit/tizen_4.0/20171013.052941 tizen_4.0.m2_release
Jaehoon Chung [Thu, 28 Sep 2017 12:19:15 +0000 (21:19 +0900)]
i2c: i2c_phy_v0: remove the debug message

These messages aren't displayed.
Remove the unnecessary debug message for fixing compile warning.

Change-Id: If7474ae0f06c8a39ffd3b734f4fdb2267c866569
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoarm: sc8830: clock_test: remove clock_test.c file 89/153589/2
Jaehoon Chung [Thu, 28 Sep 2017 12:08:26 +0000 (21:08 +0900)]
arm: sc8830: clock_test: remove clock_test.c file

clock_teset.c doesn't need to build.
Remove clock_teset.c file.

Change-Id: Ie1c6bbddfe41990dbaab582dedce855c83238ad5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoi2c: i2c_hal: remove the unnecessary debug message 88/153588/2
Jaehoon Chung [Thu, 28 Sep 2017 11:59:17 +0000 (20:59 +0900)]
i2c: i2c_hal: remove the unnecessary debug message

These messages aren't displayed.
Remove the unnecessaray debug message for removing warning.

Change-Id: I86a4bd6402fea0620940ff5daee6ca8efc2c7652
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoarm: sc8830: gpio: remove the redefined macro 87/153587/2
Jaehoon Chung [Thu, 28 Sep 2017 11:45:18 +0000 (20:45 +0900)]
arm: sc8830: gpio: remove the redefined macro

Some macros are already defined in other header files.
Remove the redefined macro.

Change-Id: I62b5aa80d057cf5ac32798d796ece59890b6a21e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoarm: sc8830: common: remove the redefined macros 86/153586/2
Jaehoon Chung [Thu, 28 Sep 2017 11:36:41 +0000 (20:36 +0900)]
arm: sc8830: common: remove the redefined macros

BIT_XX wan redefined in bits.h.
Just include the bits header file in common.h

Change-Id: I67b4dacad0353b2d0b9783dd0c2bf3f111fa6449
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoarm: sc8830: remove the unused defined values 69/153269/3
Jaehoon Chung [Thu, 28 Sep 2017 06:18:27 +0000 (15:18 +0900)]
arm: sc8830: remove the unused defined values

Remove the unused defined values for fixing compiler warning.
BIT_GPU_SOFT_RST doesn't use anywhere.

Change-Id: I17102a64b4cb61d32f155bf697f325cb537f912f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoarm: bootm: remove the unused variables 68/153268/3
Jaehoon Chung [Thu, 28 Sep 2017 06:12:02 +0000 (15:12 +0900)]
arm: bootm: remove the unused variables

Remove the unused variables for fixing compiler warning.

Change-Id: I59fc03e1ffb27b1e1c005ccb0b06c4b81d80b21c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agopart_efi: don't build the dead code for checking gpt validation 67/153267/3
Jaehoon Chung [Thu, 28 Sep 2017 05:52:31 +0000 (14:52 +0900)]
part_efi: don't build the dead code for checking gpt validation

format_gpt_valid() isn't call anywhere.
It means that code is dead.
In future, someone want to use it, just add the configuration as
CONFIG_GPT_FORMAT_VALID.

Change-Id: Id6fdcbd0b1e0530779649096637f488024709c2a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agopart: add the get_partition_info_efi_with_partnum() in header file 66/153266/3
Jaehoon Chung [Thu, 28 Sep 2017 04:42:22 +0000 (13:42 +0900)]
part: add the get_partition_info_efi_with_partnum() in header file

Add the get_partition_info_efi_with_partnum() in header file for fixing
compiler warning.

Change-Id: I1c11f240d84216e9671f2e522f2b5907369b97dc
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agommc: add mmc_legacy_init() in header file 63/152863/5
Jaehoon Chung [Wed, 27 Sep 2017 08:01:34 +0000 (17:01 +0900)]
mmc: add mmc_legacy_init() in header file

mmc_legacy_init() is used when CONFIG_EMMC_BOOT is enabled.
Add the mmc_legacy_init() in header file.

Change-Id: I96aaee67ee511a484a812f4fe2afa9f4bc3d0620
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoarm: sc8830: sprd_reg_base: fix the wrong base register address 71/153271/2 accepted/tizen/4.0/unified/20170929.080247 accepted/tizen/unified/20170929.212511 submit/tizen/20170928.101559 submit/tizen_4.0/20170928.101617 tizen_4.0.IoT.p1_release
Jaehoon Chung [Thu, 28 Sep 2017 06:57:08 +0000 (15:57 +0900)]
arm: sc8830: sprd_reg_base: fix the wrong base register address

According to spec, 0x40060000 is used the spinlock register, not
spinlock control register(0x20c00000).

Change-Id: Ifd399cae2416c20a0d45c9b766e73e7d3939fdf7
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoarm: sc8830: sprd_module_config: remove the duplicated defined value 70/153270/2
Jaehoon Chung [Thu, 28 Sep 2017 06:23:19 +0000 (15:23 +0900)]
arm: sc8830: sprd_module_config: remove the duplicated defined value

KPD_NUM is already defined.
(0x01 << 16) | (0x03 << 20) is same with (0x31 << 16).

Change-Id: Ieef99d7f9c32ea7170f16814bccad718ef730ef3
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agokwbimage: Fix check variable of checksum 01/153001/2
Nobuhiro Iwamatsu [Tue, 10 May 2011 17:33:08 +0000 (17:33 +0000)]
kwbimage: Fix check variable of checksum

calc_hdrcsum two times are checked. checksumi of exthdr is not checked.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
CC: Prafulla Wadaskar <prafulla@marvell.com>
[jh80.chung: cherry-pick from u-boot mainline to remove build warning]
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I62d00303ad285eb1feed14dd0236a1c1a4940808

7 years agoconfigs: tizen_tm1: fix the duplicated defined config 58/152858/2
Jaehoon Chung [Wed, 27 Sep 2017 07:07:04 +0000 (16:07 +0900)]
configs: tizen_tm1: fix the duplicated defined config

Some configurations are defined the twice.
If configuration is not defined, it needs to define at that time.

Change-Id: I8ee34f434fd3e532e610eadb16e6a36954615ee9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoarch: sc8830: sci_types: remove the redefined macro 62/152862/2
Jaehoon Chung [Wed, 27 Sep 2017 07:40:25 +0000 (16:40 +0900)]
arch: sc8830: sci_types: remove the redefined macro

Arleady defined 'MAX' and 'MIN' in include/common.h
Remove the redefined 'MAX'/'MIN' macro.

Change-Id: I7a5a15ee137b87133f619ac1803843734c10762c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agocommon: disable the PERFORMANCE_TEST configuration 59/152859/2
Jaehoon Chung [Wed, 27 Sep 2017 07:15:32 +0000 (16:15 +0900)]
common: disable the PERFORMANCE_TEST configuration

There is no needs to enable PERFORMANCE_TEST.
Disabled the PERFORMANCE_TEST configuration.

Change-Id: I071a1d9402e807cb6b469119a169567a5b26891b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agobuild: remove duplicated config in Makefile 63/152963/1
Seung-Woo Kim [Wed, 27 Sep 2017 11:22:56 +0000 (20:22 +0900)]
build: remove duplicated config in Makefile

There is duplicated config in Makefile. Remove the duplicated
config to resolve following warning:
   Makefile:1609: warning: overriding recipe for target 'sp7731gea_hd_config'
   Makefile:1587: warning: ignoring old recipe for target 'sp7731gea_hd_config'

Change-Id: Icd68729e87de893f10a31c6f0e1d47faf0603248
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agotizen: thordown: fix to check partition size more than 4GB 78/134378/1 accepted/tizen/4.0/unified/20170816.015754 accepted/tizen/4.0/unified/20170828.222115 accepted/tizen/unified/20170629.085434 submit/tizen/20170619.032200 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100008 submit/tizen_4.0_unified/20170814.115522
Seung-Woo Kim [Fri, 16 Jun 2017 06:56:06 +0000 (15:56 +0900)]
tizen: thordown: fix to check partition size more than 4GB

The routine to check file size larger than partitione is introducetd,
but it only checks partition size with 32 bit variable, so partition
larger than 4GB is not properly checked. So this patch fixes to
check partition size with 64 bit for more than 4GB partition.

Change-Id: If22c12e9d0678ea571ca3c382b46f5ae93036025
Fixes: cecbd73e488f ("tizen: thordown: fix to check larger file size than partition size")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agopackaging: Turn off ASan build 43/132843/1 accepted/tizen/unified/20170613.193934 submit/tizen/20170613.005505
Gonzha Dmitriy Evgenevich [Wed, 31 May 2017 18:33:59 +0000 (21:33 +0300)]
packaging: Turn off ASan build

Turn off ASan in case of ASan build for u-boot-tm1 package

Change-Id: I1a3714f47eb14da53fac8a14e179d90ffa416b7f
Signed-off-by: Gonzha Dmitriy Evgenevich <d.gonzha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agotizen: thordown: fix to check larger file size than partition size 93/123493/1 accepted/tizen/unified/20170406.055840 submit/tizen/20170406.031953 tizen_4.0.m1_release
Seung-Woo Kim [Thu, 6 Apr 2017 01:06:13 +0000 (10:06 +0900)]
tizen: thordown: fix to check larger file size than partition size

If the file is larger than its mapped partition size, then it should
be failed to thor command. So, this patch fixes to check requested
file size.

Change-Id: I87a3c825138b93ebba961227e47a8cf600de602d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agotizen: add recovery u-boot prompt command 19/114119/1 accepted/tizen_mobile accepted/tizen/mobile/20170306.102415 accepted/tizen/unified/20170309.075129 submit/tizen/20170306.005208 submit/tizen_unified/20170308.100420 submit/tizen_unified/20170309.100419
Seung-Woo Kim [Fri, 10 Feb 2017 05:06:40 +0000 (14:06 +0900)]
tizen: add recovery u-boot prompt command

This patch adds recovery command to u-boot prompt.

Change-Id: Ifeaef04ea27beef5d7e31ac0d85717fe4c89eeb1
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agotizen: add recovery boot mode 18/114118/1
Seung-Woo Kim [Fri, 10 Feb 2017 05:04:42 +0000 (14:04 +0900)]
tizen: add recovery boot mode

This patch adds recovery boot mode, in which mode, kernel image
is loaded from recovery partition and ramdisk image is loaded from
ramdisk2 partition. Also, it sets "bootmode=recovery" to bootargs of
kernel.

Change-Id: I5f6a024962a0d4744266763f7cddec8b6e4e2ea4
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agotizen: fix to load kernel image with partition information 17/114117/1
Seung-Woo Kim [Fri, 10 Feb 2017 04:59:26 +0000 (13:59 +0900)]
tizen: fix to load kernel image with partition information

This patch fixes to load kernel image with partition information
instead of hard coded block offset of emmc.

Change-Id: I4026c517a272e358acbd018473549c15689300ec
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agotizen: add ramdisk2 partition to default parition table 16/114116/1
Seung-Woo Kim [Fri, 10 Feb 2017 04:15:09 +0000 (13:15 +0900)]
tizen: add ramdisk2 partition to default parition table

This patch adds ramdisk2 partition to default partition table to
flash ramdisk-recovery.img to the partition for recovery mode.

Change-Id: Ia6d1f78f14f40c83235af104c400af94552cb2f7
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agotizen: tm1: enable ramdisk bootmode config option 23/111923/2
Seung-Woo Kim [Wed, 25 Jan 2017 04:22:15 +0000 (13:22 +0900)]
tizen: tm1: enable ramdisk bootmode config option

This patch enables ramdisk bootmode config option for tm1 board.

Change-Id: I591324581500f9e10f2888f4c8bea46c3924bf10
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agotizen: add ramdisk bootmode with ramdisk config option 22/111922/2
Seung-Woo Kim [Wed, 25 Jan 2017 04:20:39 +0000 (13:20 +0900)]
tizen: add ramdisk bootmode with ramdisk config option

This patch adds ramdisk bootmode with ramdisk boot config option.

Change-Id: Ic9b571b4eb7c09805b7f567fa9ffa5ec08fe51de
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agotizen: add ramdisk1 partition to default partition table 21/111921/1 accepted/tizen/mobile/20170227.050547 submit/tizen/20170227.015201
Seung-Woo Kim [Wed, 25 Jan 2017 00:31:52 +0000 (09:31 +0900)]
tizen: add ramdisk1 partition to default partition table

This patch adds ramdisk1 partition to default partition table to
flash ramdisk.img to the partition.

Change-Id: I5aa9ec8b61f51af0806a6ebd97b3bc8bda1c77e7
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agopackaging: remove To-Be-Unsupported macro 34/110134/1 accepted/tizen/mobile/20170116.090343 submit/tizen/20170116.061641
Seung-Woo Kim [Fri, 13 Jan 2017 05:17:23 +0000 (14:17 +0900)]
packaging: remove To-Be-Unsupported macro

The tizen_target_name macro will be removed, so this patch removes
it.

Change-Id: I2b83e3dc6d7754ae875f31fc3a8345b472cf56e0
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agobuild: fix gcc6 build error 80/104280/1 accepted/tizen/mobile/20161215.074110 submit/tizen/20161215.014354
Dongkyun, Son [Mon, 7 Nov 2016 08:42:50 +0000 (17:42 +0900)]
build: fix gcc6 build error

error: aliased to external symbol.

Change-Id: I722d0051211d1835d6d4d764a05d959f2c88d315
Signed-off-by: Dongkyun, Son <dongkyun.s@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agocompiler*.h: sync include/linux/compiler*.h with Linux 4.5-rc6 79/104279/1
Tom Rini [Mon, 29 Feb 2016 16:34:15 +0000 (11:34 -0500)]
compiler*.h: sync include/linux/compiler*.h with Linux 4.5-rc6

Copy these from Linux v4.5-rc6 tag.

This is needed so that we can keep up with newer gcc versions.  Note
that we don't have the uapi/ hierarchy from the kernel so continue to
use <linux/types.h>

Signed-off-by: Tom Rini <trini@konsulko.com>
[backport from u-boot mainline for gcc6]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I21e3573bec8c826d4dfd4dc16d762f81e87be0c4

7 years agoAdd linux/compiler-gcc5.h to fix builds with gcc5 78/104278/1
Hans de Goede [Sat, 7 Feb 2015 21:52:40 +0000 (22:52 +0100)]
Add linux/compiler-gcc5.h to fix builds with gcc5

Add linux/compiler-gcc5/h from the kernel sources at:

commit 5631b8fba640a4ab2f8a954f63a603fa34eda96b
Author: Steven Noonan <steven@uplinklabs.net>
Date:   Sat Oct 25 15:09:42 2014 -0700

    compiler/gcc4+: Remove inaccurate comment about 'asm goto' miscompiles

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
[backport from u-boot mainline for gcc6]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I04addcb7ccb452bc51e6b073e72cc570684e5bcc

7 years agocompiler_gcc: prevent redefining attributes 77/104277/1
Jeroen Hofstee [Thu, 18 Sep 2014 18:10:27 +0000 (20:10 +0200)]
compiler_gcc: prevent redefining attributes

The libc headers on FreeBSD and likely related projects as well contain an
header file, cdefs.h which provides similiar functionality as linux/compiler.h.
It provides compiler independent defines like __weak __packed, to allow
compiling with multiple compilers which might have a different syntax for such
extension.

Since that header file is included in multiple standard headers, like stddef.h
and stdarg.h, multiple definitions of those defines will be present if both are
included. When compiling u-boot the compiler will warn about it hundreds of
times since e.g. common.h will include both files indirectly.

commit 7ea50d52849fe8ffa5b5b74c979b60b1045d6fc9 "compiler_gcc: do not redefine
__gnu_attributes" prevented such redefinitions, but this was undone by commit
fb8ffd7cfc68b3dc44e182356a207d784cb30b34 "compiler*.h: sync
include/linux/compiler*.h with Linux 3.16".

Add the checks back where necessary to prevent such warnings.

As the original patch this checkpatch warning is ignored:
"WARNING: Adding new packed members is to be done with care"

Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Tom Rini <trini@ti.com>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Acked-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
[backport from u-boot mainline for gcc6]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I510e45c099dc0111a94c10035366675d94abdf3e

7 years agocompiler*.h: sync include/linux/compiler*.h with Linux 3.16 76/104276/1
Masahiro Yamada [Wed, 3 Sep 2014 17:40:58 +0000 (02:40 +0900)]
compiler*.h: sync include/linux/compiler*.h with Linux 3.16

Copy them from Linux v3.16 tag.
My main motivation of this commit is to add compiler-clang.h.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Jeroen Hofstee <jeroen@myspectrum.nl>
[backport from u-boot mainline for gcc6]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I1874abe85a7ed2c228fee5f7ceae0fa3eccaf5da

7 years agocompiler_gcc: do not redefine __gnu_attributes 75/104275/1
Jeroen Hofstee [Sat, 10 Aug 2013 15:16:50 +0000 (17:16 +0200)]
compiler_gcc: do not redefine __gnu_attributes

gcc allows extensions to be non compiler specific by defining
__* macros for the attributes supported by gcc. Having a
different definition causes many warnings during the build
(cdefs.h on FreeBSD uses __attribute((__pure__)) where u-boot
uses __attribute__((pure)) for example). Do not redefine
these macros to suppress these warnings.

This patch ignores the checkpatch warning:
WARNING: __packed is preferred over __attribute__((packed))

Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
[backport from u-boot mainline for gcc6]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I3ee9aa3b3732cc97b4b3305908fcf62ee86e2964

7 years agoAdd missing header for gcc3 74/104274/1
Scott McNutt [Fri, 23 Sep 2011 11:42:14 +0000 (11:42 +0000)]
Add missing header for gcc3

When include/linux/compiler.h is included, the associated gcc3
header is required for older build environments.

Signed-off-by: Scott McNutt <smcnutt@psyent.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
[backport from u-boot mainline for gcc6]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I21ca3964ba7508c441582276120a9cf93425cf30

8 years agoi2c: rename sc9630 i2c files without special whitespace character 91/86991/1 accepted/tizen_3.0.m2_mobile tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170105.025928 accepted/tizen/3.0/mobile/20161015.034431 accepted/tizen/mobile/20160912.093255 submit/tizen/20160912.020407 submit/tizen_3.0.m2/20170104.093756 submit/tizen_3.0_mobile/20161015.000007
Seung-Woo Kim [Tue, 6 Sep 2016 01:35:49 +0000 (10:35 +0900)]
i2c: rename sc9630 i2c files without special whitespace character

sc9630 i2c driver is not really built from Makefile and it has
special whitespace character in the file name. So this patch just
renames the files.

Change-Id: I092f3351125f88fc6be1dbf20679946f374f2208
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agochange source file mode to 0644 instead of 0755 82/86982/1
Seung-Woo Kim [Tue, 6 Sep 2016 01:01:30 +0000 (10:01 +0900)]
change source file mode to 0644 instead of 0755

For source, exec permission is not required, so this patch changes
permission mode of source files to 0644 instead of 0755.

Change-Id: If900266b09e93d71397e71aa5f4a35565f5bd7c0
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agotizen: tm1: change u-boot console prompt 79/86979/3
Donghoon Shin [Tue, 6 Sep 2016 00:03:25 +0000 (09:03 +0900)]
tizen: tm1: change u-boot console prompt

This patch changes u-boot console prompt for tm1 because litmus auto
test system uses console prompt to recognize device type.

Change-Id: Ia3c264e87e95e507db8cf26632cb9cb3df1cc825
Signed-off-by: Donghoon Shin <dhs.shin@samsung.com>
8 years agotizen: tm1: support thordown command from console 57/86857/1
Joonyoung Shim [Wed, 17 Feb 2016 05:00:53 +0000 (14:00 +0900)]
tizen: tm1: support thordown command from console

This will enable u-boot console mode with any key input from console
and support thordown command, then LITMUS auto test system can use
thordown command from u-boot prompt.

Change-Id: I4f0b98e60d7dcee74ceabc1d0de70cc22c7bf0d0
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
8 years agopackaging: exclude build except target TM1 38/82538/2 accepted/tizen/mobile/20160809.232536 submit/tizen/20160809.043430 submit/tizen/20160809.063303
Seung-Woo Kim [Thu, 4 Aug 2016 00:39:54 +0000 (09:39 +0900)]
packaging: exclude build except target TM1

This patch excludes build except target TM1.

Change-Id: I8ec9b2b943eaf2c6edfc12b9962640d67da33402
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
8 years agotizen: tm1: enter the download mode when usb is connected 06/65706/3 accepted/tizen/mobile/20160715.075447 submit/tizen/20160715.064037
Jaehoon Chung [Tue, 12 Apr 2016 07:40:01 +0000 (16:40 +0900)]
tizen: tm1: enter the download mode when usb is connected

When usb is connected, bootmode is charge mode.
So if enter the reboot download, it needs to check the charger mode.
And clear the inform3 register.

Change-Id: I5008a615d3cc24c7b579ec8a305131825281b35d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
8 years agotizen: tm1: provide the reboot download 84/60084/2 accepted/tizen/mobile/20160412.063948 submit/tizen/20160412.023908
Jaehoon Chung [Tue, 23 Feb 2016 08:07:56 +0000 (17:07 +0900)]
tizen: tm1: provide the reboot download

Provide the reboot download mode for thor.

Change-Id: Ie5b3cc5a3d0a56c74537300258461011b6219d76
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
8 years agommc: card_sdio: fix the block capacity 45/60045/1
Jaehoon Chung [Mon, 22 Feb 2016 21:55:06 +0000 (06:55 +0900)]
mmc: card_sdio: fix the block capacity

User capacity is caculated with only card's register value.
It doesn't need to substract from user capacity to boot capacity.

Change-Id: Ia60647e25c37dc5e2a2863613c950a32d9d14333
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
9 years agospec: Fix URL site accepted/tizen/mobile/20151117.094125 submit/tizen/20151117.061401 submit/tizen_common/20160222.141210
Joonyoung Shim [Tue, 17 Nov 2015 06:08:41 +0000 (15:08 +0900)]
spec: Fix URL site

Right URL is http://www.denx.de/wiki/U-Boot

Change-Id: I9deab4a33e27eec6107cb084777e3a4ec823426e
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
9 years agospec: fix badness problem by rpmlint
Joonyoung Shim [Tue, 17 Nov 2015 05:21:34 +0000 (14:21 +0900)]
spec: fix badness problem by rpmlint

This fixes below badness by rpmlint in spec file.

E: summary-not-capitalized (Badness: 63)
E: non-standard-group (Badness: 200)
E: invalid-license (Badness: 200)
E: dir-or-file-in-tmp (Badness: 200)

Change-Id: I05df62d0e10e378ee80dfb76ce80504de66206c6
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
9 years agospec: do not check target_name 85/51785/1 accepted/tizen/mobile/20151116.024905 submit/tizen/20151116.022633
Inki Dae [Mon, 16 Nov 2015 02:20:44 +0000 (11:20 +0900)]
spec: do not check target_name

Now public Tizen 3.0 doesn't support target name
so the relevant script should be removed to build
kernel.

Change-Id: Ief6bd559ab531b9e9861f4c7588b63a133420e40
Signed-off-by: Inki Dae <inki.dae@samsung.com>
9 years agotizen 2.4 release accepted/tizen/mobile/20151112.232222 submit/tizen/20151112.080358
jk7744.park [Sat, 24 Oct 2015 09:28:37 +0000 (18:28 +0900)]
tizen 2.4 release

9 years agoInitial empty repository
Jeonghoon Jeon [Fri, 23 Oct 2015 09:43:34 +0000 (02:43 -0700)]
Initial empty repository