Jaehoon Chung [Fri, 13 Oct 2017 05:22:13 +0000 (14:22 +0900)]
mmc: fix the compile warning in mmc.c
There are some compile warnings in mmc.c
This patch is for fixing them.
Change-Id: I1dc5ae6ef4ea6461b4d4635fbc5fecc66939c886
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 13 Oct 2017 02:52:40 +0000 (11:52 +0900)]
arm: exynos: pinmux: avoid the using uninitialized variable
If there is no hit in statement, some variables are used as
uninitialized status.
This patch is for avoiding this cases.
Change-Id: I41c2b25c24f2ca12a54eb700ba1f7daf2afeaccd
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 10 Oct 2017 02:50:01 +0000 (11:50 +0900)]
arm: exynos: clock: fix the compile warning about unused variable
Some variables didn't used anywhere.
Fix the compile warning about unused variable for artik5/10.
Change-Id: I7a61e54b0a70b34f1ba12c0480773810d05bfa24
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 10 Oct 2017 02:35:33 +0000 (11:35 +0900)]
board: samsung: espress3250: fix the wrong comment style
Fix the wrong comment style.
Change-Id: Ibb3d20d09921f19b9772226ca26f5a4564c76b90
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 29 Sep 2017 05:40:33 +0000 (14:40 +0900)]
include: usb: lin_gadget_compat: remove the duplicated defined macros
Some macros are already defined in include/linux/compat.h.
Remove the unnecessary defined macros.
Partially picked from mainline commit
ff94bc40af34 ("mtd, ubi, ubifs: resync with Linux-3.14").
Change-Id: Id5e55f577fddcaf26680c2dec3460776fb0b581c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 29 Sep 2017 04:26:28 +0000 (13:26 +0900)]
arm: exynos: cpu: add the return value about non-void type
It doesn't have the non-void return type.
If it doesn't match anything, it should be returned as void type.
This patch is fixed it after adding the return value.
Change-Id: I0f5c7f41aea36da486ed07a0c64a179b53a403d5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Mon, 11 Sep 2017 02:54:37 +0000 (11:54 +0900)]
configs: artik_common: fix to boot with ramdisk if existing
The ramdisk file is only loaded and not used booting rootfs. So fix
to boot with ramdisk if existing.
Change-Id: I31f438c3d7a414ec57bdb67f4006b2c7152d87c4
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Thu, 7 Sep 2017 02:07:30 +0000 (11:07 +0900)]
configs: artik_common: fix wrong consoleon/consoleoff commands
The CONFIG_CMD_SETEXPR option is not set, so set command is same
with setenv command but consoleon and consoneoff commands are
defined with "=', so it can not be run. Fix wrong consoleon and
console off commands by using setenv command explictly.
Change-Id: Id02a72dd5c135a784bb050e4cddcbe7434afc400
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Thu, 7 Sep 2017 01:12:10 +0000 (10:12 +0900)]
configs: artik10: write the params.bin to boot partition
params.bin needs to write into boot partition, not user partition.
Add the "mmcpart 1" for raw writing.
Change-Id: I31841582c0f59c56c4ec605450451b7bf413fdbb
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 7 Sep 2017 01:10:28 +0000 (10:10 +0900)]
configs: artik5: write the params.bin to boot partition
params.bin needs to write into boot partition, not user partition.
Add the "mmcpart 1" for raw writing.
Change-Id: I9064b9458a788ae46dc44d5ffb1f7b7816744dd9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 7 Sep 2017 01:05:56 +0000 (10:05 +0900)]
configs: artik_common: define the partition number for saving env
eMMC has the physical boot partitions. It's used for booting.
Environment variable can be located into boot partition.
When it's saved and loaded, it needs to define which partition is used.
Define the CONFIG_SYS_MMC_ENV_PART for saving environment variable.
Change-Id: Ib3d16b0685ad0cca5dab19144d72ceb8ab3f8c7f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Stephen Warren [Mon, 30 Jul 2012 10:55:44 +0000 (10:55 +0000)]
env_mmc: allow environment to be in an eMMC partition
eMMC devices may have hardware-level partitions: 2 boot partitions,
up to 4 general partitions, plus the user area. This change introduces
optional config variable CONFIG_SYS_MMC_ENV_PART to indicate which
partition the environment should be stored in: 0=user, 1=boot0, 2=boot1,
4..7=general0..3. This allows the environment to be kept out of the user
area, which simplifies the management of OS-/user-level (MBR/GPT)
partitions within the user area.
Change-Id: Ie10bfa5ef9a1da57cac4383c8271e97bab786e6c
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
jino.cho [Tue, 28 Feb 2017 10:26:11 +0000 (19:26 +0900)]
artik_common: configs: add raw ramdisk booting
This patch adds to support raw ramdisk image.
- enable CONFIG_SUPPORT_RAW_INITRD
- add "ramdisk.img" in the CONFIG_DFU_ALT list
Change-Id: I1dcae6b56ce45001281e084d71ff22e612103115
Signed-off-by: jino.cho <jino.cho@samsung.com>
Stephen Warren [Mon, 3 Feb 2014 20:21:06 +0000 (13:21 -0700)]
cmd_test: implement -e test for file existence
This is much like a regular shell's -e operator, except that it takes
multiple arguments to specify the device type and device/partition ID
in addition to the usual filename:
if test -e mmc 0:1 /boot/boot.scr; then echo yes; else echo no; fi
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Stephen Warren [Mon, 3 Feb 2014 20:21:05 +0000 (13:21 -0700)]
cmd_test: evaluate to false without any arguments
This emulates bash:
$ if test; then echo yes; else echo no; fi
no
Currently, the code sets expr = -1 in this case, which gets mapped to
0 (true) at the end of do_test() by the logical -> shell exit code
conversion.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Stephen Warren [Mon, 3 Feb 2014 20:21:04 +0000 (13:21 -0700)]
cmd_test: implement ! on sub-expressions
Currently, ! can only be parsed as the first operator in an expression.
This prevents the following from working:
$ if test ! ! 1 -eq 1; then echo yes; else echo no; fi
yes
$ if test ! 1 -eq 2 -a ! 3 -eq 4; then echo yes; else echo no; fi
yes
Fix this by parsing ! like any other operator, and and handling it
similarly to -a and -o.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Stephen Warren [Mon, 3 Feb 2014 20:21:03 +0000 (13:21 -0700)]
cmd_test: check for binary operators before unary
This better mirrors the behaviour of bash, for example:
$ if test -z = -z; then echo yes; else echo no; fi
yes
This is parsed as a string comparison of "-z" and "-z", since the check
for the binary "=" operator occurs first. Without this change, the
command would be parsed as a -z test of "-", followed by a syntax error;
a trailing -z without and operand.
This is a behavioural change, but I believe any commands affected were
previously invalid or bizarely formed.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Stephen Warren [Mon, 3 Feb 2014 20:21:02 +0000 (13:21 -0700)]
cmd_test: use table lookup for parsing
do_test() currently uses strcmp() twice to determine which operator is
present; once to determine how many arguments the operator needs, then
a second time to actually decode the operator and implement it.
Rewrite the code so that a table lookup is used to translate the operator
string to an integer, and use a more efficient switch statement to decode
and execute the operator.
This approach also acts as enablement for the following patches.
This patch should introduce no behavioural change.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Conflicts:
common/cmd_test.c
Change-Id: I2966c40c9f0c502fbb800d6ee058617a2c87666c
York Sun [Thu, 4 Apr 2013 11:52:53 +0000 (11:52 +0000)]
common/cmd_test: Avoid macro expansion
cmd_test.c adds "true" and "false" as new commands. We need to avoid macro
expansion for U_BOOT_CMD.
Signed-off-by: York Sun <yorksun@freescale.com>
Joe Hershberger [Fri, 17 Aug 2012 10:56:12 +0000 (10:56 +0000)]
Change dead code in "test" cmd to debug output
Improve debug output for test by indicating the number of parameters
and quoting the parameters to make it clear exactly what each contains
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
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: jino.cho <jino.cho@samsung.com>
Change-Id: I5371fdde53577612173287a06fb6c9ccd83519f0
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: jino.cho <jino.cho@samsung.com>
Change-Id: Idd570d9e49afcaffa7745250dbaaa740ee15024e
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: jino.cho <jino.cho@samsung.com>
Change-Id: I7eb4c3c04458fe5e26f1ca8e70a1327ead6143d2
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: jino.cho <jino.cho@samsung.com>
Change-Id: Ic609b26409268784dc0c46e5e21c3745e179dc1d
Jaewon Kim [Tue, 16 Aug 2016 09:47:38 +0000 (18:47 +0900)]
board: samsung: artik5: setup pwm early
This patch setups pwm channel 0 and 1 in order to maintain
the pwm gpio signal to low until use in kernel.
Change-Id: I170c1af8f686a0ea7cc37f385ab4a657b1fcd054
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
Chanho Park [Mon, 29 Aug 2016 07:17:28 +0000 (16:17 +0900)]
artik: configs: disable RAMDUMP feature
This patch disable the RAMDUMP feature because the artik
does not support it and it will jump to normal booting
when watchdog reset.
Change-Id: I84f510bb4d6127bf92bcb891cef346916a5ceb09
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Tue, 16 Aug 2016 06:41:44 +0000 (15:41 +0900)]
artik5: remove RAMDUMP feature
The artik does not support the ramdump feature.
Change-Id: I8bfa76c1e4a20de3ea4ae05d9ebc59cc1b745adf
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Dongil Park [Thu, 16 Jun 2016 06:35:17 +0000 (15:35 +0900)]
espresso3250: enable watchdog timer s/w reset
This patch enables WTSR(Watchdog Timer S/W Reset) register at s2mps14 pmic
to support h/w reset.
Change-Id: Ib0e4ca8fb1959dc7f945c7d1d055369ae76cebe9
Signed-off-by: Dongil Park <dongil01.park@samsung.com>
Dongil Park [Thu, 16 Jun 2016 05:41:06 +0000 (14:41 +0900)]
espresso3250: pmic: add pmic_enable_wtsr function
This patch adds pmic_enable_wtsr() to support h/w reset.
Change-Id: If810133b471cd98f862586fc006297ef74cee5a9
Signed-off-by: Dongil Park <dongil01.park@samsung.com>
Chanho Park [Wed, 1 Jun 2016 05:35:02 +0000 (14:35 +0900)]
artik: configs: clean up boot argument setting
This patch factors out boot argument setting to support
multiple boot options such as ramfsboot, mmcboot.
Change-Id: I095f5f3b79bbe6448d6773a3e37698cd238039c9
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Jaehoon Kim [Wed, 1 Jun 2016 03:59:04 +0000 (12:59 +0900)]
exynos: artik10: resize CONFIG_TRUSTZONE_RESERVED_DRAM to 24MB
This patch resizes trustzone reserved dram area
from 0x1600000 to 0x1800000.
For secure OS,
we want to reserve secure DRAM region as 24MB like below:
[Secure OS Memory Information for ARTIK10]
--------------------- 0xC000_0000
Secure OS
(8MB)
--------------------- 0xBF80_0000
Frame Buffer
(16MB, To be used)
--------------------- 0xBE80_0000
Change-Id: Ie7c6ae569f0b5a7601bf2a4ffd6a25f0d857d196
Signed-off-by: Jaehoon Kim <jh228.kim@samsung.com>
Chanho Park [Wed, 1 Jun 2016 01:38:09 +0000 (10:38 +0900)]
artik10: configs: update tzsw partition offset for dfu
This patch updates tzsw partition offset for dfu according
to tzsw partition change.
Change-Id: Id61c9e419454898123970a747fd3f4e00eb63dde
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Wed, 1 Jun 2016 01:34:35 +0000 (10:34 +0900)]
exynos: artik10: resize tzsw partition to 1MB
This patch resizes the tzsw partition from 512KB to 1MB
for artik10.
Change-Id: I06d38063f88ec9a269be9b9bfa9ffd81e53ea871
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Tue, 31 May 2016 05:48:20 +0000 (14:48 +0900)]
fdt: support to skip checking fdt
This patch is required to skip fdt checking because this
u-boot version does not support OF_EMBED.
Change-Id: Ibb6299fd09ff2df7b7edf5f5cf7f65d1cdb67ee9
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Tue, 10 May 2016 10:44:37 +0000 (19:44 +0900)]
artik: configs: split artik5 and 10 configurations
This patch splits artik5 and artik10 configurations
into each config file.
Change-Id: Ie3f2e5fbad9bc5c33fd31076d4641c1490918c37
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Tue, 10 May 2016 10:27:58 +0000 (19:27 +0900)]
artik: configs: resize malloc pool len
Current malloc len is too much and consume too long
to initialize them. There is no problem just adding
2MB for malloc pool.
Change-Id: I53ab0e9ae420a365a9513224d547ffd4646e562a
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Tue, 3 May 2016 12:50:48 +0000 (21:50 +0900)]
artik: configs: update dfu partition configurations
This patch updates DFU partition configurations
according to increased bootloader partition size.
Change-Id: Icbe088e67055fede975a2765b723ab152a4201e6
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Tue, 3 May 2016 12:22:56 +0000 (21:22 +0900)]
Revert "artik: remove CONFIG_USB_OHCI to secure the image capacity"
This reverts commit
7a88a017d836d2eecfcb5d4a726023824934b4ff.
Change-Id: I778ba4bd54a12cef19b6649dbda3a3aae435c945
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Tue, 3 May 2016 11:22:48 +0000 (20:22 +0900)]
artik: arm: exynos: resize u-boot partition to 1MB
This patch resizes u-boot partition size from 328KB to 1MB
size. The mainline u-boot can be reached 1MB size to support
FDT of u-boot.
Change-Id: I8d1384de89446e117dc42cbeaee49facde8ead10
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Mon, 2 May 2016 13:57:05 +0000 (22:57 +0900)]
artik: configs: skip 4MB size of boot partition
This patch skips 4MB size of boot partition for resizing
tzsw image and reserve area which can be used at future.
Change-Id: Ic70bc068d8aca86f15bd64177d8e2ee5394c3a1b
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Mon, 2 May 2016 12:49:12 +0000 (21:49 +0900)]
exynos: artik5: resize tzsw partition to 1MB
This patch resizes tzsw partition to 1MB for artik
trustware solution.
Change-Id: I917da6e1e039707ae70d3d55916ec9fd0d0a6c51
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Mon, 2 May 2016 12:42:18 +0000 (21:42 +0900)]
artik5: configs: correct SPL_TEXT_BASE address
This patch corrects SPL text base from 0x2025000 to
0x2026000.
Change-Id: I7de57defe6a9b639b5770af591c389cc8bd2db65
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Jaewon Kim [Wed, 27 Apr 2016 00:37:38 +0000 (09:37 +0900)]
artik5: configs: fix prompt typo
This patch fixes prompt name typo on artik5.
Change-Id: I83dbd08d0adb999198e9ee7b46351a080c370e34
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
jino.cho [Tue, 21 Jun 2016 05:33:54 +0000 (14:33 +0900)]
artik: configs: change attribute of installed files.
u-boot.bin and params.bin don't need executable attribute.
Change-Id: Idb706b1bbde124b62cc9e7f6c4e11cb0e7c4aca5
Signed-off-by: jino.cho <jino.cho@samsung.com>
wansu.yoo [Mon, 16 May 2016 02:18:14 +0000 (11:18 +0900)]
artik: configs: Modified size of system-data area from 256M to 1024M
When there occurred system crash, core dump file is being saved at
system-data partition. (/opt/share/crash/dump)
But if there happened some crashes, it is insufficient to be saved with
current size(256M). On the other hand, there are enough size in user
partition.
So, we are thinking it's proper to adjust partition size.
Change-Id: I2a5a1b5c635ad3cb95336d2010a6284920beb48c
Signed-off-by: wansu.yoo <wansu.yoo@samsung.com>
jino.cho [Wed, 27 Apr 2016 13:39:00 +0000 (22:39 +0900)]
artik: configs: support the Thor downloader on a bootable SD card
This patch supports the Thor downloader on a bootable SD card.
On the get_dfu_alt_system(), "dfu_alt_system" env information is replaced
to CONFIG_DFU_ALT_SYSTEM_SD when "rootdev" is '1'.
Change-Id: Ia013df50e9f9edeab9dcdfb6d674b2549c156bf7
Signed-off-by: jino.cho <jino.cho@samsung.com>
jino.cho [Tue, 26 Apr 2016 00:24:59 +0000 (09:24 +0900)]
artik: configs: fix boot partition offset
This patch fixes boot partition offset of DFU for the Thor downloader.
CONFIG_DFU_ALT_BOOT_SD information was added to support booting by SD
card. But, there was an error because this feature was under developing at
that time.
EMMC and SD have differnt offset because of the difference between GPT
and MBR. EMMC and SD use GPT and MBR, respectively. GPT have a partition
for boot separately. So, EMMC don't need offset. But, SD need one block as
a offset for MBR information.
Change-Id: I0c16c4fc8466d6c22567b43fe357c3354c0b0381
Signed-off-by: jino.cho <jino.cho@samsung.com>
jino.cho [Tue, 19 Apr 2016 03:05:22 +0000 (12:05 +0900)]
artik: configs: increase size of malloc() pool
This patch increase size of malloc() pool for Thor downloader.
When downloading image of the platform, "Thor failed" error occurs due to the
small size of malloc() pool.
Change-Id: I69154640c0e4f587645d7cb97b2d04929959e0cc
Signed-off-by: jino.cho <jino.cho@samsung.com>
jino.cho [Mon, 18 Apr 2016 02:04:07 +0000 (11:04 +0900)]
artik10: usb: gadget: add g_dnl_bind_fixup() function
This patch replaces VID & PID information of the THOR downloader by
adding g_gnl_bind_fixup() function.
Change-Id: I15fe00747ff980f1969018af05bddbefa8936bef
Signed-off-by: jino.cho <jino.cho@samsung.com>
jino.cho [Mon, 18 Apr 2016 01:50:55 +0000 (10:50 +0900)]
artik10: usb: dwc3: change base address of the USB Global Register
This patch changes base address of the USB Global Register. Because
ARTIK10 uses USB channel 0.
- USB Ch0 Base Address: 0x1200_0000
- USB Ch1 Base Address: 0x1240_0000
Change-Id: I41f96247248f16c76894a10daa4b11cbac69d5df
Signed-off-by: jino.cho <jino.cho@samsung.com>
jino.cho [Thu, 14 Apr 2016 07:55:59 +0000 (16:55 +0900)]
artik5: config: enable usb dfu/thor gadget
This patch enables dfu/thor gadget to support Thor downloader
for the ARTIK5 device.
Change-Id: I780aa55b3fe499b4c0ccce84a9e517ec40b6800a
Signed-off-by: jino.cho <jino.cho@samsung.com>
jino.cho [Thu, 14 Apr 2016 07:33:56 +0000 (16:33 +0900)]
artik5: gadget: add usb initialization functions
This patch adds usb initialization functions for the artik5 board to support
thor downloader.
Change-Id: Ie0a96da2f8d2b852db4aadfae6c4c4f21b612a2b
Signed-off-by: jino.cho <jino.cho@samsung.com>
jino.cho [Thu, 14 Apr 2016 07:10:23 +0000 (16:10 +0900)]
artik: dfu: add DFU functions
This patch adds DFU functions and DFU informations for the ARTIK devices.
set_dfu_alt_info
- setting dfu information for the ARTIK devices.
get_dfu_alt_system
- getting system partition information.
get_dfu_alt_boot
- getting predefined boot partition information.
Change-Id: I4361f75ba6889b86d6c6bb4501c38545c742442a
Signed-off-by: jino.cho <jino.cho@samsung.com>
jino.cho [Thu, 14 Apr 2016 06:36:28 +0000 (15:36 +0900)]
artik5: fix the build error
This patch fixs the build error on ARTIK5.
Change-Id: I69728bc8ed5952bae44a4409c921ee5328f86a8b
Signed-off-by: jino.cho <jino.cho@samsung.com>
jino.cho [Thu, 14 Apr 2016 06:33:10 +0000 (15:33 +0900)]
artik: remove CONFIG_USB_OHCI to secure the image capacity
This commit remove CONFIG_USB_OHCI to secure the image capacity.
Change-Id: I851454580ba5ff62a89f529cbefbb9b35d9e83cb
Signed-off-by: jino.cho <jino.cho@samsung.com>
jino.cho [Thu, 14 Apr 2016 06:08:50 +0000 (15:08 +0900)]
thor: cmd: remove duplicated label 'bad_args'
This commit fixs build error.
Change-Id: If5c6ffd0ca0230316c50b56dbc37a29fd32198f7
Signed-off-by: jino.cho <jino.cho@samsung.com>
Chanho Park [Mon, 11 Apr 2016 03:59:26 +0000 (12:59 +0900)]
artik: configs: enable usb dfu/thor gadget
This patch enables dfu/thor usb gadget to support
tizen image download.
Change-Id: I66bab8d8bb5722ec6c46341f70010952b2d3a0c1
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Mon, 11 Apr 2016 01:10:39 +0000 (10:10 +0900)]
board: samsung: artik10: support dwc3 gadget initialization
This patch supports dwc3 usb gadge3 for artik10/smdk5422 board.
Change-Id: I17d5072f99c276aa20daee28a0ba9d78ea09d32f
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Thu, 10 Mar 2016 12:51:03 +0000 (21:51 +0900)]
usb: echi: use _min3 instead of min3
Change-Id: I0c84580022b8a8d4bd406f3a24cbc2062b90bd28
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Przemyslaw Marczak [Thu, 12 Jun 2014 08:20:59 +0000 (10:20 +0200)]
thor:cmd: get the default command arguments from environment
This change adds support to getting the default DFU cmd line
arguments from the environment.
DFU and THOR uses the same command line arguments,
so the DFU command environment setup can be used also with THOR.
Change-Id: I2e0984c909147c13191f6d6646d094c9f02c392a
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Chanho Park [Thu, 10 Mar 2016 08:09:08 +0000 (17:09 +0900)]
exynos: define XHCI/USB3 address for other soc
Change-Id: Id2eaa48b96d52edbf988ebfd969844618e090d28
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Thu, 10 Mar 2016 08:08:09 +0000 (17:08 +0900)]
usb: dwc3: uses #if defined instead of IS_ENABLED
This patch uses #if defined macro instead of IS_ENABLED
because it's not supported in this u-boot.
Change-Id: Ia351ebbb5213b94efaa421711555168ac462b860
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Thu, 10 Mar 2016 08:07:08 +0000 (17:07 +0900)]
usb: dwc3: correct source name
This patch removes dwc.o because it's not used anywhere.
Change-Id: Iedddeaa6202300c71a348566091936442a70887c
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Masahiro Yamada [Thu, 6 Nov 2014 18:03:29 +0000 (03:03 +0900)]
linux/kernel.h: import more macros
These macros seem to be useful for U-Boot too (or at least
harmless). Imported from Linux 3.18-rc2.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Masahiro Yamada [Thu, 6 Nov 2014 18:03:28 +0000 (03:03 +0900)]
include: move various macros to include/linux/kernel.h
U-Boot has imported various utility macros from Linux
scattering them to various places without consistency.
In include/common.h are min, max, min3, max3, ARRAY_SIZE, ALIGN,
container_of, DIV_ROUND_UP, etc.
In include/linux/compat.h are min_t, max_t, round_up, round_down,
etc.
We also have duplicated defines of min_t in some *.c files.
Moreover, we are suffering from too cluttered include/common.h.
This commit moves various macros that originate in
include/linux/kernel.h of Linux to their original position.
Note:
This commit simply moves the macros; the macros roundup,
min, max, min2, max3, ARRAY_SIZE are different
from those of Linux at this point.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Conflicts:
arch/arm/cpu/armv7/bcm281xx/clk-core.h
include/common.h
lib/vsprintf.c
Change-Id: I9823611a421022aa9440d15751253697fcbc92fd
Rajeshwari Birje [Thu, 26 Dec 2013 04:14:19 +0000 (09:44 +0530)]
EXYNOS5420: Add power register structure.
Add structure for power register for Exynos5420
Signed-off-by: Rajeshwari S Shinde <rajeshwari.s@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Conflicts:
arch/arm/include/asm/arch-exynos/power.h
Change-Id: Ic1c32edee03bb4bf6d0d000d98e54f1007089a04
Minkyu Kang [Mon, 15 Oct 2012 03:06:32 +0000 (03:06 +0000)]
ARCH: EXYNOS: add support to match product id
Based upon single SoC there can be multiple variants.
This patch add support to match the complete product ID.
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Conflicts:
arch/arm/include/asm/arch-exynos/cpu.h
Change-Id: I91ba4b23035a1fb8212d80afbaf3eb048476e255
Lukasz Majewski [Fri, 22 May 2015 16:14:23 +0000 (18:14 +0200)]
samsung: usb: phy: Support for DWC3 PHY
New files, namely samsung_usb_phy.c and samsung-usb-phy-uboot.h have
been added to u-boot to provide proper PHY handling at Exynos5 SoCs.
This code is used thereafter in the board_usb_init() call.
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Marek Vasut <marex@denx.de>
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Conflicts:
drivers/usb/dwc3/Makefile
Change-Id: I5bed7e2cb3fd8033b7907cbca64ef6dcd6117a69
Joonyoung Shim [Wed, 21 Jan 2015 04:51:32 +0000 (13:51 +0900)]
EXYNOS5: Add function to enable exynos5420 usbdev phy ctrl
Exynos5420 has different registers with other exynos5 SoCs to control
usb device phy, so need separated function to enable exynos5420 usb
device phy.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Suriyan Ramasami [Wed, 29 Oct 2014 16:22:42 +0000 (09:22 -0700)]
arm: odroid: enable/disable usb host phy for exynos4412
Enable/disable the usb host phy on the odroid U/X2 boards which are based
on the Exynos4412 SOC.
Signed-off-by: Suriyan Ramasami <suriyan.r@gmail.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Przemyslaw Marczak [Mon, 1 Sep 2014 11:50:44 +0000 (13:50 +0200)]
arch:exynos: boot mode: add get_boot_mode(), code cleanup
This patch introduces code clean-up for exynos boot mode check.
It includes:
- removal of typedef: boot_mode
- move the boot mode enum to arch-exynos/power.h
- add bootmode for sequence: eMMC 4.4 ch4 / SD ch2
- add new function: get_boot_mode() for OM[5:1] pin check
- update spl boot code
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Changes v5:
- exynos: boot mode: add missing bootmode (1st:EMMC 4.4 / 2nd:SD ch2)
Changes v6:
- none
changes v7:
- change boot mode name: BOOT_MODE_MMC to BOOT_MODE_SD
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Conflicts:
arch/arm/cpu/armv7/exynos/spl_boot.c
arch/arm/include/asm/arch-exynos/spl.h
Change-Id: Ia91a5e251c476ee97bdd4921f602a5d737b6db10
Vivek Gautam [Sat, 14 Sep 2013 08:32:47 +0000 (14:02 +0530)]
arm: exynos: Add methods to control power to USB 3.0 PHY
Adding methods to turn on/off power to USB3.0 type PHY
as and when required by the controller.
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Cc: Julius Werner <jwerner@chromium.org>
Cc: Simon Glass <sjg@chromium.org>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Dan Murphy <dmurphy@ti.com>
Cc: Marek Vasut <marex@denx.de>
Rajeshwari Shinde [Thu, 4 Jul 2013 06:59:14 +0000 (12:29 +0530)]
EXYNOS: Add API for power reset and exit wakeup
This patch adds APIs to get power reset status and exit the wakeup condition for
both exynos5 and exynos4
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Naveen Krishna Chatradhi [Fri, 5 Apr 2013 22:21:39 +0000 (15:21 -0700)]
power: exynos-tmu: use the mux_addr bit fields in tmu_control register
This patch implements the mux_addr bit fields defined in tmu_control
register (used for debugging purpose)
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Reviewed-by: Vadim Bendebury <vbendeb@google.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Naveen Krishna Chatradhi [Fri, 5 Apr 2013 22:21:38 +0000 (15:21 -0700)]
power: exynos-tmu: fix warnings and clean up code
This patch does the folowing
1. change the data types for unsigned int variable to unsigned
2. change the tmu_base type to struct exynos5_tmu_reg *
3. Add timer functionality for get_cur_temp()
4. error handling in the get_tmu_fdt_values()
5. Add check for curr_temp reading
6. some cosmotic changes.
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Reviewed-by: Vadim Bendebury <vbendeb@google.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Akshay Saraswat [Mon, 25 Feb 2013 01:13:06 +0000 (01:13 +0000)]
Exynos5: TMU: Add hardware tripping
This adds hardware tripping at 110 degrees celsius which must enable
forced system shutdown in case TMU fails to power off.
Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Akshay Saraswat [Mon, 25 Feb 2013 01:13:00 +0000 (01:13 +0000)]
Exynos5: TMU: Add driver for Thermal Management Unit
Adding Exynos Thermal Management Unit driver to monitor SOC
temperature and take actions corresponding to states of TMU.
Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Rajeshwari Shinde [Thu, 14 Feb 2013 19:46:11 +0000 (19:46 +0000)]
EXYNOS5: Add function to enable XXTI clock source
This patch adds funtion to enable XXTI clock source
required by MAX98095 codec.
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Rajeshwari Shinde [Tue, 12 Feb 2013 20:40:01 +0000 (20:40 +0000)]
EXYNOS5: Add function to setup set ps hold
This patch adds a function to set ps_hold data driving value high.
This enables the machine to stay powered on even after the initial
power-on condition goes away(e.g. power button).
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Donghwa Lee [Mon, 2 Jul 2012 01:15:56 +0000 (01:15 +0000)]
EXYNOS5: support display port phy control function
This patch support display port phy control function.
Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Vivek Gautam [Sat, 14 Sep 2013 08:32:46 +0000 (14:02 +0530)]
USB: XHCI: Add xHCI host controller support for Exynos5
This adds driver layer for xHCI controller in Samsung's
exynos5 soc. This interacts with xHCI host controller stack.
Signed-off-by: Vikas C Sajjan <vikas.sajjan@samsung.com>
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Cc: Julius Werner <jwerner@chromium.org>
Cc: Simon Glass <sjg@chromium.org>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Dan Murphy <dmurphy@ti.com>
Cc: Marek Vasut <marex@denx.de>
Conflicts:
arch/arm/include/asm/arch-exynos/cpu.h
Change-Id: I4f0cf794ff8a43ad89d687f398de3115d7b58aa9
Przemyslaw Marczak [Thu, 12 Jun 2014 08:20:59 +0000 (10:20 +0200)]
thor:cmd: get the default command arguments from environment
This change adds support to getting the default DFU cmd line
arguments from the environment.
DFU and THOR uses the same command line arguments,
so the DFU command environment setup can be used also with THOR.
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Conflicts:
common/cmd_thordown.c
[jino.cho: Fixed conflicts from original commit of tizen.org]
Signed-off-by: jino.cho <jino.cho@samsung.com>
Change-Id: I167927ff47f7c105fd1794da21c6742a10c7593a
Lukasz Majewski [Mon, 23 Jun 2014 07:39:16 +0000 (09:39 +0200)]
thor: defer parsing of device string to IO backend
Commit
d4f5ef59cc7 "dfu: defer parsing of device string to IO backend" changed
the function signature of dfu_init_env_entities(). Adjust cmd_thordown.c
to match that change.
Also, apply the same change as commit
d6d37d737b58e "dfu: free entities
when parsing fails" to cmd_thordown.c.
Fixes: d4f5ef59cc7 ("dfu: defer parsing of device string to IO backend")
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Conflicts:
common/cmd_thordown.c
[jino.cho: Fixed conflicts from original commit of tizen.org]
Signed-off-by: jino.cho <jino.cho@samsung.com>
Change-Id: I8478952aaa6968b2684d06e1a6ca7f082771db33
jino.cho [Tue, 29 Mar 2016 00:33:38 +0000 (09:33 +0900)]
usb: s3c-otg: Add Clock control for EXYNOS3250
In EXYNOS3250, reset value of the phy_fsel is 0x7(50MHz). So, We have to clean
the bits before setting to 0x5(24MHz).
Change-Id: I173ab48dcc8190ecaf959ea253f938946f31ee0b
Signed-off-by: jino.cho <jino.cho@samsung.com>
Lukasz Majewski [Wed, 5 Feb 2014 09:10:43 +0000 (10:10 +0100)]
usb:udc:samsung: Allow burst transfers for non EP0 endpints
This patch removed obscure restriction on the HW setting of DMA transfers.
Before this change each transaction sent up to 512 bytes (with packet count
equal to 1) for non EP0 transfer.
Now it is possible to setup DMA transaction up to DMA_BUFFER_SIZE.
Test condition
- test HW + measurement: Trats - Exynos4210 rev.1
- test HW Trats2 - Exynos4412 rev.1
400 MiB compressed rootfs image download with `thor 0 mmc 0`
Measurement:
Transmission speed: 20.74 MiB/s
Change-Id: I4b70ba0c607e125f851bfec9965c77e8e6cd000f
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Marek Vasut <marex@denx.de>
Lukasz Majewski [Wed, 5 Feb 2014 09:10:42 +0000 (10:10 +0100)]
usb:udc:samsung: Remove redundant cache operation from Samsung UDC driver
A set of cache operations (both invalidation and flush) were redundant
in the S3C HS OTG Samsung driver:
1. s3c_udc_ep0_zlp - to transmit EP0's ZLP packets one don't need to flush
the cache (since it is the zero length transmission)
2. s3c_udc_pre_setup and s3c_ep0_complete_out - cache invalidation is not
needed when the buffer for OUT EP0 transmission is setup, since no data
has yet arrived.
Cache cleanups presented above don't contribute much to transmission speed
up, hence shall be regarded as cosmetic changes.
3. setdma_rx - here the s3c UDC driver's internal buffers were invalidated.
This call is not needed anymore since we reuse the buffers passed from
gadgets. This is a key contribution to transmission speed improvement.
Test condition
- test HW + measurement: Trats - Exynos4210 rev.1
- test HW Trats2 - Exynos4412 rev.1
400 MiB compressed rootfs image download with `thor 0 mmc 0`
Measurements:
Base values (without improvement):
Transmission speed: 9.51 MiB/s
After the change:
Transmission speed: 10.15 MiB/s
Change-Id: Ie3222fb1a1170b47218442f5763a082aa2fac403
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Marek Vasut <marex@denx.de>
Lukasz Majewski [Tue, 8 Oct 2013 12:30:37 +0000 (14:30 +0200)]
usb:udc:s3c: Reduce dcache invalidate range for UDC receive buffer
The s3c udc driver sends data in a max packet size. Therefore the dcache
invalidate range shall be equal to max packet, not the entire
DMA_BUFFER_SIZE.
Change-Id: I60a08c3365cf5f43ad3dcef3baed940337d250ef
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Marek Vasut <marex@denx.de>
jino.cho [Tue, 22 Mar 2016 06:16:58 +0000 (15:16 +0900)]
packaging: Add generating params.bin
This patch generates params.bin file
Change-Id: I0377190ed4b85e4afe0197e0a817de14d07d09b3
Signed-off-by: jino.cho <jino.cho@samsung.com>
Stanislaw Wadas [Fri, 18 Mar 2016 10:51:05 +0000 (11:51 +0100)]
Fix .spec name for proper obs build
Change-Id: I96784cb62cb882e1b4fd704de6e3df3446908989
Signed-off-by: Stanislaw Wadas <s.wadas@samsung.com>
jino.cho [Wed, 16 Mar 2016 08:26:04 +0000 (17:26 +0900)]
packaging: Add ARTIK-5/10 spec files for GBS build
This patch adds the .spec files to make possible gbs build.
Change-Id: I8e48e93d730ce3e409725b9eead28008695fd616
Signed-off-by: jino.cho <jino.cho@samsung.com>
Chanho Park [Fri, 19 Feb 2016 08:26:54 +0000 (17:26 +0900)]
artik: configs: add factory_set_ethaddr environment
This patch adds factory_set_ethaddr env to help easy generation
of the mac address and store it into factory information.
Change-Id: I6d0e97add46c1f9a369629917acf5c7d5b22960e
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Fri, 19 Feb 2016 08:25:56 +0000 (17:25 +0900)]
common: introduce gen_eth_addr command
This patch adds gen_eth_addr command to generate a random
ethernet mac address and set the address into ethaddr env.
Change-Id: I5823d9ddc380569ee0f3853996f5d1cea641f880
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
sowon.na [Tue, 16 Feb 2016 12:59:31 +0000 (21:59 +0900)]
board:samsung:remove routine to fastboot/recovery
This patch removes special routine to fastboot or recovery mode while booting.
Before this patch, u-boot goes to fastboot mode with Pin 13
grounded on J27 or Pin 7 grounded on J26 of artik5 while booting.
We remove this routine for preventing unintended booting error.
Change-Id: I2459d518bbf23fe78ea885390f8140856d6f9fb4
Signed-off-by: sowon.na <sowon.na@samsung.com>
Jim Lin [Fri, 17 May 2013 09:41:03 +0000 (17:41 +0800)]
NET: Fix system hanging if NET device is not installed
If we try to boot from NET device, NetInitLoop in net.c will be invoked.
If NET device is not installed, eth_get_dev() function will return
eth_current value, which is NULL.
When NetInitLoop is called, "eth_get_dev->enetaddr" will access
restricted memory area and therefore cause hanging.
This issue is found on Tegra30 Cardhu platform after adding
CONFIG_CMD_NET and CONFIG_CMD_DHCP in config header file.
Change-Id: I8bf18901842043f33a06c96ab5201c406fe0f605
Signed-off-by: Jim Lin <jilin@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Jae-young Hwang <j-zero.hwang@samsung.com>
Jeroen Hofstee [Thu, 26 Jun 2014 18:18:31 +0000 (20:18 +0200)]
common: main.c: make show_boot_progress __weak
This not only looks a bit better it also prevents a
warning with W=1 (no previous prototype).
Change-Id: I76061ab498572895bf3b864add2c18c4bcd9585c
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Jae-young Hwang <j-zero.hwang@samsung.com>
Jeroen Hofstee [Mon, 23 Jun 2014 21:20:19 +0000 (23:20 +0200)]
common: board_f: cosmetic use __weak for leds
First of all this looks a lot better, but it also
prevents a gcc warning (W=1), that the weak function
has no previous prototype.
Change-Id: Icaabc39bf74587659b1070374b61e4022419a01a
cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Jae-young Hwang <j-zero.hwang@samsung.com>
Jeroen Hofstee [Sun, 22 Jun 2014 21:10:39 +0000 (23:10 +0200)]
ARM:asm:io.h use static inline
When compiling u-boot with W=1 the extern inline void for
read* is likely causing the most noise. gcc / clang will
warn there is never a actual declaration for these functions.
Instead of declaring these extern make them static inline so
it is actually declared.
Change-Id: Ic42b514a030de64b3f12a4ed427f3ffc71f60ef8
cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Signed-off-by: Jae-young Hwang <j-zero.hwang@samsung.com>
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
Change-Id: I8c22aebe7c2e39059b05b3a19ae4dc3f69e10d1a
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jae-young Hwang <j-zero.hwang@samsung.com>
Chanho Park [Tue, 8 Dec 2015 01:26:14 +0000 (10:26 +0900)]
artik5: configs: enable ax88796c spi ethernet
This patch enables ax88796c spi ethernet driver. It supports
to load a kernel image from tftp server.
Change-Id: Ie3b53ff66433a278474047a5e407cfd99a051015
Signed-off-by: Jaeyong Lee <jaeyong2.lee@samsung.com>
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Chanho Park [Tue, 8 Dec 2015 01:15:11 +0000 (10:15 +0900)]
board: artik5: initialize ax88796c spi ethernet
This patsh supports initialization of ax88796c spi ethernet
driver for artik5. It requires to control a cs gpio pin according
to cs activation/deactivation.
Change-Id: I6ac0dbcad20ae46ee1f217e47e31252d176a0b4b
Signed-off-by: Jaeyong Lee <jaeyong2.lee@samsung.com>
Signed-off-by: Chanho Park <chanho61.park@samsung.com>