platform/kernel/linux-rpi.git
4 years agoBluetooth: Add RSSI Monitor feature
Sudha Bheemanna [Wed, 24 Aug 2016 11:51:15 +0000 (17:21 +0530)]
Bluetooth: Add RSSI Monitor feature

Added feature support for monitoring the RSSI value.
Commands and events for enabling, disabling and setting
rssi threshold values are added.

Change-Id: I850643a9228afc017e54217a11826b9c6a68a96b
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoBluetooth: Functions to modify WhiteList
Sudha Bheemanna [Wed, 24 Aug 2016 09:32:56 +0000 (15:02 +0530)]
Bluetooth: Functions to modify WhiteList

This patch provides MGMT commands to manage the white
list which includes, adding, removing and clearing the
devices from white list.

Change-Id: If71107129d3a090ae81448a8122b76accd4f5522
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoBluetooth: Add Advertising Packet Configuration
Sudha Bheemanna [Wed, 24 Aug 2016 06:47:16 +0000 (12:17 +0530)]
Bluetooth: Add Advertising Packet Configuration

This patch provides new MGMT commands to configure
the advertising data and scan response data packets for
LE peripheral devices.

Change-Id: I914d13795f4fb58e5f2e1cadb55086f4bcbc82df
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoBluetooth: Add MGMT tizen_handlers and TIZEN_OP_BASE_CODE.
h.sandeep [Thu, 1 Sep 2016 06:30:57 +0000 (12:00 +0530)]
Bluetooth: Add MGMT tizen_handlers and TIZEN_OP_BASE_CODE.

Added the basic skeleton code for tizen_mgmt_handlers and
mgmt_tizen.h header file.

Change-Id: I8f3100aa79e6673840ba561f0a9c50238ca0880b
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoBluetooth: Add "TIZEN_BT" flag
Sudha Bheemanna [Tue, 23 Aug 2016 11:37:10 +0000 (17:07 +0530)]
Bluetooth: Add "TIZEN_BT" flag

Added the tizen specific flag for use in adding tizen patches.

Change-Id: Ia391644fddbe600c8d845e0bf0808f587aa73e0c
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agopackaging: change dependent openssl version to 1.1
Seung-Woo Kim [Thu, 20 Jun 2019 00:28:54 +0000 (09:28 +0900)]
packaging: change dependent openssl version to 1.1

OpenSSL 1.0.2 will be deprecated from tizen, so migration to newer
version is required. Change dependent openssl version to 1.1.

Change-Id: Icba12412b200cd1d5a8407dc4440b23d49bdde65
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agorpi3: boot: Update the boot firmwares with the latest version
Junghoon Kim [Tue, 11 Jun 2019 08:20:08 +0000 (17:20 +0900)]
rpi3: boot: Update the boot firmwares with the latest version

Update the boot firmwares with the latest version from the vendor git
repo.

The commit base is e289f6a59ff2 ("kernel: Bump to 4.19.46").

Change-Id: If425a4d64a145a79ce505b13bb1a5a23495654fb
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agoARM: configs: tizen_bcm2709_defconfig: Sync with savedefconfig
Junghoon Kim [Tue, 11 Jun 2019 04:10:53 +0000 (13:10 +0900)]
ARM: configs: tizen_bcm2709_defconfig: Sync with savedefconfig

Sync the tizen_bcm2709_defconfig with savedefconfig.

Change-Id: I8dbc7b6a42a43530de8818620816659387ecf11a
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agoARM64: configs: tizen_bcmrpi3_defconfig: Sync with savedefconfig
Junghoon Kim [Tue, 11 Jun 2019 01:47:56 +0000 (10:47 +0900)]
ARM64: configs: tizen_bcmrpi3_defconfig: Sync with savedefconfig

Sync the tizen_bcmrpi3_defconfig with savedefconfig.

Change-Id: I12389974ccade867052f68f1b839d85e7214981c
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agopackaging: Change the kernel version of the spec file
Junghoon Kim [Tue, 11 Jun 2019 01:34:10 +0000 (10:34 +0900)]
packaging: Change the kernel version of the spec file

This patch changes the kernel version of the spec file to 4.19.49.

Change-Id: Idc451fa46d64c0a968b4f146b8ff127245c3564e
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agoinclude/linux/notifier.h: SRCU: fix ctags
Sam Protsenko [Fri, 2 Nov 2018 22:47:53 +0000 (15:47 -0700)]
include/linux/notifier.h: SRCU: fix ctags

ctags indexing ("make tags" command) throws this warning:

    ctags: Warning: include/linux/notifier.h:125:
    null expansion of name pattern "\1"

This is the result of DEFINE_PER_CPU() macro expansion.  Fix that by
getting rid of line break.

Similar fix was already done in commit 25528213fe9f ("tags: Fix
DEFINE_PER_CPU expansions"), but this one probably wasn't noticed.

Link: http://lkml.kernel.org/r/20181030202808.28027-1-semen.protsenko@linaro.org
Fixes: 9c80172b902d ("kernel/SRCU: provide a static initializer")
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[sw0312.kim: cherry-pick mainline commit 94e297c50b52 to remove warning from "make tags" command]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ie71be48606c666e11d3675f9c525c3417343e846

4 years agoARM: tizen_bcm2709_defconfig: enable ZC3XX camera module
Seung-Woo Kim [Thu, 23 May 2019 01:55:50 +0000 (10:55 +0900)]
ARM: tizen_bcm2709_defconfig: enable ZC3XX camera module

Currently, in test environment, usb camera 046d:08af is used and
it requires CONFIG_USB_GSPCA_ZC3XX. Enable ZC3XX camera module.

Change-Id: I2999e9b2288e0bd0bc74cab14a06bb785e8ea410
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: config: tizen_bcmrpi3: enable ZC3XX camera module
Seung-Woo Kim [Thu, 23 May 2019 02:01:50 +0000 (11:01 +0900)]
ARM64: config: tizen_bcmrpi3: enable ZC3XX camera module

Currently, in test environment, usb camera 046d:08af is used and
it requires CONFIG_USB_GSPCA_ZC3XX. Enable ZC3XX camera module.

Change-Id: I840a774c718bc5ffd0898fd29140c3f52ed7757c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoscripts: mkbootimg_rpi3.sh: Support 32bit boot image.
Hoegeun Kwon [Thu, 16 May 2019 05:32:14 +0000 (14:32 +0900)]
scripts: mkbootimg_rpi3.sh: Support 32bit boot image.

Support 32bit boot image, and add rule that check the bit between 32
and 64bit as '.config' file.

Change-Id: I247583233eb617c3f7f1695d8c5060d27934bcdd
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: tizen_bcm2709_defconfig: Disable unused modules and helper
Hoegeun Kwon [Wed, 15 May 2019 10:11:16 +0000 (19:11 +0900)]
ARM: tizen_bcm2709_defconfig: Disable unused modules and helper

Disable unused modules and helper related display.

Change-Id: I130a9d803384b338350eab9b6e7cbc42111de5b9
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: tizen_bcm2709_defconfig: Disable FB_BCM2708
Hoegeun Kwon [Wed, 15 May 2019 10:10:45 +0000 (19:10 +0900)]
ARM: tizen_bcm2709_defconfig: Disable FB_BCM2708

There is a crash between bcm2708_fb and drm_fb driver during kernel
booting, and logo image is broken. Disable CONFIG_FB_BCM2708 because
it uses the default fb and vc4-drm driver.

Change-Id: Ic5c533dbb884c5b2c3e87d9a131f3ce499d86279
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoASoC: ac108: Fixes kernel bug message when starting to capture
Jaechul Lee [Thu, 9 May 2019 00:26:53 +0000 (09:26 +0900)]
ASoC: ac108: Fixes kernel bug message when starting to capture

The code in the trigger function is moved to prepare function that is
called right before trigger function. clock operation would be ran by
parepare function without disabling preemption.

BUG: scheduling while atomic: arecord/1244/0x00000004
Preemption disabled at:
[<ffffff80087c4a08>] snd_pcm_stream_lock+0x30/0x68

Call trace:
[<ffffff800808b250>] dump_backtrace+0x0/0x270
[<ffffff800808b4e4>] show_stack+0x24/0x30
[<ffffff8008ae87c4>] dump_stack+0xac/0xe8
[<ffffff80080cc814>] __schedule_bug+0x7c/0xd8
[<ffffff8008afb558>] __schedule+0x718/0x880
[<ffffff8008afb6fc>] schedule+0x3c/0xa0
[<ffffff8008aff028>] schedule_timeout+0x190/0x408
[<ffffff8008afc4b8>] wait_for_common+0xa8/0x150
[<ffffff8008afc5c4>] wait_for_completion_timeout+0x2c/0x38
[<ffffff80086e5a0c>] bcm2835_i2c_xfer+0x16c/0x400
[<ffffff80086deedc>] __i2c_transfer+0x12c/0x570
[<ffffff80086df38c>] i2c_transfer+0x6c/0xc0
[<ffffff80086df430>] i2c_master_send+0x50/0x68
[<ffffff8008584454>] regmap_i2c_write+0x34/0x70
[<ffffff800857fe34>] _regmap_raw_write+0x7cc/0x7e0
[<ffffff800857feb8>] _regmap_bus_raw_write+0x70/0x88
[<ffffff800857ea48>] _regmap_write+0x70/0x160
[<ffffff800857ec10>] _regmap_update_bits+0xd8/0xf8
[<ffffff80085800b0>] regmap_update_bits_base+0x68/0x98
[<ffffff8008805838>] ac10x_update_bits+0x48/0x88
[<ffffff8008805c00>] ac108_trigger+0x118/0x130

Change-Id: I73ef21247e1dfbd0acd3272b6a73311377eb000d
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
4 years agorpi3: Update the boot firmwares with the latest version
Junghoon Kim [Wed, 8 May 2019 04:33:34 +0000 (13:33 +0900)]
rpi3: Update the boot firmwares with the latest version

This patch updates the boot firmwares with the latest version from the
vendor git repo.

The git base is the commit 3dde44c13f17 ("firmware: arm_loader: Further
conditionals for passing in a frame buffer").

Change-Id: Ia487afd7c2aa448f27e5f386be1b4584ee657144
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agopackaging: Define necessary packages for building 4.19 kernel
Junghoon Kim [Wed, 8 May 2019 01:55:14 +0000 (10:55 +0900)]
packaging: Define necessary packages for building 4.19 kernel

This patch defines necessary packages for building 4.19 kernel including
bison, flex, and libopenssl-devel.

Change-Id: Iccd5bfdbd313599a9fb1dd86c0db264a1114bb41
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agopackaging: Change the kernel version of the spec files
Junghoon Kim [Tue, 7 May 2019 10:52:49 +0000 (19:52 +0900)]
packaging: Change the kernel version of the spec files

This patch changes the kernel version of the spec files to 4.19.40.

Change-Id: I85d3ae4fd90431431aedb5968a53f6c08ea6f3f9
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agomisc: tizen-inform-reboot: Use ksys_open() and ksys_close() wrappers
Junghoon Kim [Mon, 29 Apr 2019 22:43:58 +0000 (07:43 +0900)]
misc: tizen-inform-reboot: Use ksys_open() and ksys_close() wrappers

Using ksys_open() and ksys_close() wrappers allow us to avoid the
in-kernel calls to the sys_open() and sys_close() syscalls.

Change-Id: Iea33654daef917f88cede31675c66e8b5becad77
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agoARM64: dts: bcm2710-rpi-3-b: Changes GPIO26 to GPIO25 for play/pause
Jaechul Lee [Mon, 29 Apr 2019 02:13:30 +0000 (11:13 +0900)]
ARM64: dts: bcm2710-rpi-3-b: Changes GPIO26 to GPIO25 for play/pause

GPIO26 is already used by PIO TCT and key names are changed clearly.

Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
Change-Id: Idd74bc7e4f5c26b9d4aee89d62b8f3810ee7736f

4 years agoARM: config: tizen_bcm2709: update defconfig file
Jaehoon Chung [Wed, 24 Apr 2019 05:34:11 +0000 (14:34 +0900)]
ARM: config: tizen_bcm2709: update defconfig file

Update defconfig file.
- Disable unnecessary module build configurations.
- Change some configuration to builtin from module

Change-Id: I0979a9cb3238b23101ad46e602fa5eb8101100bd
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agoARM: tizen_bcm2709_defconfig: Removes unnecessary modules
Jaechul Lee [Wed, 24 Apr 2019 05:15:39 +0000 (14:15 +0900)]
ARM: tizen_bcm2709_defconfig: Removes unnecessary modules

removed unnecessary modules

Change-Id: I0c34919620e9673b00a2e73071ba0da670878ab0
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
4 years agoASoC: ac108: Adds default 4channels mic volume
Jaechul Lee [Thu, 18 Apr 2019 06:02:37 +0000 (15:02 +0900)]
ASoC: ac108: Adds default 4channels mic volume

It needs to be set default volume to max value.

Change-Id: Icdcf255e3a57bb5dffb225116723a3d9a4cf11fe
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
4 years agoARM64: dts: bcm2710-rpi-3-b: Adds respeaker 4mic nodes
Jaechul Lee [Tue, 2 Apr 2019 01:30:46 +0000 (10:30 +0900)]
ARM64: dts: bcm2710-rpi-3-b: Adds respeaker 4mic nodes

adds respeaker 4mic nodes.

Change-Id: I8145a93dfebe716be61cb4cad30b7174a1e4bea1
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
4 years agoARM64: config: tizen_bcmrpi3: Adds configures related to speaker profile
Jaechul Lee [Mon, 15 Apr 2019 23:39:51 +0000 (08:39 +0900)]
ARM64: config: tizen_bcmrpi3: Adds configures related to speaker profile

adds configures related to speaker profile

Change-Id: I365dd181a08fa59ed4986862f20f1817ea3c4c56
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
4 years agoASoC: ac108: Adds ac108 codec and machine code
Jaechul Lee [Mon, 1 Apr 2019 02:08:55 +0000 (11:08 +0900)]
ASoC: ac108: Adds ac108 codec and machine code

adds respeaker machine code and ac101/ac108 codec code.

ReSpeaker driver
https://github.com/respeaker/seeed-voicecard

Change-Id: Idc034aafd39157ccfe19b2dae6c80ba6afd8e60c
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
4 years agoARM: tizen_bcm2709_defconfig: Add CONFIG_KEYBOARD_GPIO
Seung-Woo Kim [Thu, 18 Apr 2019 05:44:05 +0000 (14:44 +0900)]
ARM: tizen_bcm2709_defconfig: Add CONFIG_KEYBOARD_GPIO

Tizen Speaker Profile uses 5 keys for pause/play/volume.
gpio-keys module generates input-events when keys are pressed by
users.

Change-Id: I3a84eac948f6baf75a5f93ac16f61a4f419e4299
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: tizen_bcm2709_defconfig: Enable modules for usb hcd test
Seung-Woo Kim [Thu, 18 Apr 2019 05:40:13 +0000 (14:40 +0900)]
ARM: tizen_bcm2709_defconfig: Enable modules for usb hcd test

To support tct-usb-host-native-utc, this patch enables relevant
features as a module.

Change-Id: I921e22a9ce8a002f82b33dbb435894f5fb96b609
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: dts: bcm2710-rpi-3-b: Adds buttons for speaker profile
Jaechul Lee [Sun, 31 Mar 2019 23:22:08 +0000 (08:22 +0900)]
ARM64: dts: bcm2710-rpi-3-b: Adds buttons for speaker profile

Tizen Speaker Profile uses a keypad that consists of 5 buttons for
up/down/left/right/center. The buttons are connected to GPIO pins as
follows.

GPIO16 : KEY_VOLUMEUP
GPIO13 : KEY_VOLUMEDOWN
GPIO6 : KEY_FASTFORWARD
GPIO12 : KEY_REWIND
GPIO26 : KEY_PLAYPAUSE

gpio=6,12,13,16,26=ip,pu at config.txt means that 6,12,13,16,26 pins are used as
input and pullup mode.

Change-Id: I8b7fe4fa360c2d17042e31270702d7abe49a5977
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
4 years agoARM64: config: tizen_bcmrpi3: Adds CONFIG_KEYBOARD_GPIO
Jaechul Lee [Tue, 9 Apr 2019 01:05:00 +0000 (10:05 +0900)]
ARM64: config: tizen_bcmrpi3: Adds CONFIG_KEYBOARD_GPIO

Tizen Speaker Profile uses 5 keys for pause/play/volume.
gpio-keys module generates input-events when keys are pressed by users.

Change-Id: Iae3fad6e51c67eb25cac0b75579bdcfef34b3b4b
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
4 years agoARM64: config: tizen_bcmrpi3: Enable modules for usb hcd test
Dongwoo Lee [Tue, 16 Apr 2019 02:26:00 +0000 (11:26 +0900)]
ARM64: config: tizen_bcmrpi3: Enable modules for usb hcd test

To support tct-usb-host-native-utc, this patch enables relevant
features as a module.

Change-Id: I5eb0220ca6c4d263ed65da003bd1cfc060ccc61d
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
4 years agoARM: tizen_bcm2709_defconfig: enable TUN for openvpn
Seung-Woo Kim [Tue, 16 Apr 2019 04:23:33 +0000 (13:23 +0900)]
ARM: tizen_bcm2709_defconfig: enable TUN for openvpn

Tizen uses openvpn and it reuiqres TUN/TAP support. Enable TUN
config option.

Change-Id: I1855989ac264091d8cf70e7efe5baacdb09e33d6
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: config: tizen_bcmrpi3_defconfig: enable TUN for openvpn
Seung-Woo Kim [Tue, 16 Apr 2019 04:22:17 +0000 (13:22 +0900)]
ARM64: config: tizen_bcmrpi3_defconfig: enable TUN for openvpn

Tizen uses openvpn and it reuiqres TUN/TAP support. Enable TUN
config option.

Change-Id: I10c6596ba0e16b2433d30c63a533caad55c74493
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agodrm/vc4: Fix with pm_runtime synchronization on DSI
Hoegeun Kwon [Fri, 22 Mar 2019 07:00:27 +0000 (16:00 +0900)]
drm/vc4: Fix with pm_runtime synchronization on DSI

There is a problem when often dpms goes from off to on. pm idle is not
in sync and the problem occurs. Modify pm_runtime_put from
asynchronous to synchronous.

Change-Id: I7b39e01d452623190d9ead28477e4b0e6122d71b
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoscripts: mkbootimg_rpi3.sh: Add the root permission of make modules
Hoegeun Kwon [Mon, 4 Mar 2019 11:15:34 +0000 (20:15 +0900)]
scripts: mkbootimg_rpi3.sh: Add the root permission of make modules

There is a problem with permission denied when creating
modules_install. So we need to add root permissions.

Change-Id: I999fcaa6ddcadc556e7a80d2cc1c1143fab60d51
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: tizen_bcm2709_defconfig: enable UNWINDER_ARM
Seung-Woo Kim [Wed, 6 Mar 2019 02:22:45 +0000 (11:22 +0900)]
ARM: tizen_bcm2709_defconfig: enable UNWINDER_ARM

After the commit f9b58e8c7d03 ("ARM: 8800/1: use choice for
kernel unwinders"), it is required to enable one of FRAME_POINTER
and ARM_UNWIND and FRAME_POINTER is not supported llvm/clang build
on armv7. Enable UNWINDER_ARM instead of UNWINDER_FRAME_POINTER
to dislabe FRAME_POINTER.

Change-Id: I04a1080959b57197fa2902484a0fb300139f4e6a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: 8788/1: ftrace: remove old mcount support
Stefan Agner [Tue, 11 Sep 2018 03:31:49 +0000 (04:31 +0100)]
ARM: 8788/1: ftrace: remove old mcount support

Commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6")
raised the minimum GCC version to 4.6. Old mcount is only required for
GCC versions older than 4.4.0. Hence old mcount support can be dropped
too.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
[sw0312.kim: cherry-pick maline commit d3c61619568c to support llvm/clang build
 - FRAME_POINTER is required for old gcc version, and it is not really necessary for llvm/clang ]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I42e61d4e9f146eeaa728b3febbf0f9782b879ee0

4 years agoLOCAL / mm, page_alloc: Add print page allocation failure reason
Hoegeun Kwon [Thu, 7 Mar 2019 02:18:21 +0000 (11:18 +0900)]
LOCAL / mm, page_alloc: Add print page allocation failure reason

There is an unclear problem when page alloc failed. So clearly print
the cause of the failure.

Change-Id: Ie59e1d4e34deabb8733268edfb433754f43766a8
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: tizen_bcm2709_defconfig: disable unnecessary sensor modules
Seung-Woo Kim [Thu, 7 Mar 2019 01:07:16 +0000 (10:07 +0900)]
ARM: tizen_bcm2709_defconfig: disable unnecessary sensor modules

The mpu6050 and bmp280 sensors are not required. Disable the
unnecessary sensor modules having llvm/clang build warnings.

Change-Id: Iffaa54f4f8675bacc58d15fa5bf2d0f526b0ad8d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agosound: bcm: allo: Fix duplicate-decl-specifier build warnings
Seung-Woo Kim [Thu, 7 Mar 2019 02:02:10 +0000 (11:02 +0900)]
sound: bcm: allo: Fix duplicate-decl-specifier build warnings

SOC_ENUM_### macros has const specifier, but there are declaration
with const again. Fix the duplicate-decl-specifier build warnings.

Change-Id: If2fe42936cb4766d73067433dd6d1029dfe4ff61
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agomedia: dib7000p: Remove dead code
Sean Young [Tue, 4 Dec 2018 09:59:10 +0000 (04:59 -0500)]
media: dib7000p: Remove dead code

Clang warns that 'interleaving' is assigned to itself in this function.

drivers/media/dvb-frontends/dib7000p.c:1874:15: warning: explicitly
assigning value of variable of type 'int' to itself [-Wself-assign]
        interleaving = interleaving;
        ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
1 warning generated.

Just remove the self-assign and leave existing code in place for now.

Reported-by: Nick Desaulniers <ndesaulniers@google.com>
Suggested-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
[sw0312.kim: cherry-pick mainline commit d95947c05eaf to remove llvm/clang build warning]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I3e34832e3b095fdedbf1ee7557be66370726bf85

4 years agousb: dwc_otg: check value of uWord type after convert
Seung-Woo Kim [Wed, 6 Mar 2019 09:31:39 +0000 (18:31 +0900)]
usb: dwc_otg: check value of uWord type after convert

uWord type is array, so checking variable with the type is not
proper. Check value after convert.

Change-Id: I5eca569feb949037bda212346c481fde82525d3d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agousb: dwc_otg: fiq_fsm: fix ignored-attributes build warnings
Seung-Woo Kim [Wed, 6 Mar 2019 08:35:32 +0000 (17:35 +0900)]
usb: dwc_otg: fiq_fsm: fix ignored-attributes build warnings

The attribute is required to be set on struct definition. Fix
ignored-attributes build warnings by moving attribute flag.

Change-Id: I8f138932bcd95abec952601371c8acbda890b876
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agomisc: bcm2835_smi: use proper enum in dma_map_single
Seung-Woo Kim [Wed, 6 Mar 2019 08:53:48 +0000 (17:53 +0900)]
misc: bcm2835_smi: use proper enum in dma_map_single

With llvm/clang, there are implicit conversion build warnings.
Use proper enum in dma_map_single/dma_unmap_single.

Change-Id: Id241d8f2d5fec16946bb34184af7b6053b6f9ca6
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agonet: lan78xx: Avoid unnecessary self assignment
Nathan Chancellor [Thu, 20 Sep 2018 22:48:30 +0000 (15:48 -0700)]
net: lan78xx: Avoid unnecessary self assignment

Clang warns when a variable is assigned to itself.

drivers/net/usb/lan78xx.c:940:11: warning: explicitly assigning value of
variable of type 'u32' (aka 'unsigned int') to itself [-Wself-assign]
                        offset = offset;
                        ~~~~~~ ^ ~~~~~~
1 warning generated.

Reorder the if statement to acheive the same result and avoid a self
assignment warning.

Link: https://github.com/ClangBuiltLinux/linux/issues/129
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[sw0312.kim: cherry-pick mainline commit 94e7c844990f to remove build warning with llvm/clang]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I18dc3e4145348830101d9474c38700565faf4761

4 years agofirmware: raspberrypi: Define timeout for transactions
Stefan Wahren [Sat, 6 Oct 2018 11:31:56 +0000 (13:31 +0200)]
firmware: raspberrypi: Define timeout for transactions

We should never assume to get a reply from the firmware otherwise
the call could block forever and the user don't get informed. So
define a timeout of 1 sec and print a stacktrace once in the unlikely
case the timeout expired.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
[jhoon20.kim: cherry picked from commit 0829187b17d8 for debugging booting issues]
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
Change-Id: I2bb14167174662a84c6b2a8caaffc70485693816

4 years agogpu/drm: Fix lock held when returning to user space.
Tetsuo Handa [Thu, 10 Jan 2019 10:19:31 +0000 (19:19 +0900)]
gpu/drm: Fix lock held when returning to user space.

We need to call drm_modeset_acquire_fini() when drm_atomic_state_alloc()
failed or call drm_modeset_acquire_init() after drm_atomic_state_alloc()
succeeded.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reported-by: syzbot <syzbot+6ea337c427f5083ebdf2@syzkaller.appspotmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1547115571-21219-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp
[hoegeun.kwon: this patch from the mainline 4089e272ac61 and it has been
 modified to be able to backport linux-v4.14.]
Change-Id: Iaa0d6e104054abc11181c43bdb6283a8bd30eb19
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM64: config: tizen_bcmrpi3_defconfig: enable UINPUT config
Jaehoon Chung [Wed, 20 Feb 2019 08:40:55 +0000 (17:40 +0900)]
ARM64: config: tizen_bcmrpi3_defconfig: enable UINPUT config

Enable UINPUT config for using /dev/uinput.

Change-Id: I43660efa174718cd58a02bbbd0b05abc7012e81a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agodrm/vc4: Fix reduce interrupt timeout 'workaround'
Hoegeun Kwon [Thu, 14 Feb 2019 02:22:19 +0000 (11:22 +0900)]
drm/vc4: Fix reduce interrupt timeout 'workaround'

Since flag 'ignore_lcd=0' is set in config.txt, dsi interrupt is
disabled so that interrupt does not occur even when dsi_write is
operated. The waiting time causes a boot delay. So it reduces the
timeout to 100msecs until it is resolved. As a result, the boot delay
has been reduced from 22,000 to 2,200 msecs.

Change-Id: I2c27397102f38128ffd3599405d57198fd0f16f6
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agodrm/panel: Add error handling for write of dsi
Hoegeun Kwon [Mon, 18 Feb 2019 05:40:49 +0000 (14:40 +0900)]
drm/panel: Add error handling for write of dsi

There is a problem that dsi write timeout even when dsi interrupt is
activated by adding 'ignore_lcd=1' flag to config.txt. Add error
handling to write once more when timeout occurs.

Change-Id: If1deb9753a02a3082e7a1ba59ee20531828447d9
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM64: defconfig: enable USB_RTL8152 configuration
Jaehoon Chung [Mon, 11 Feb 2019 07:02:53 +0000 (16:02 +0900)]
ARM64: defconfig: enable USB_RTL8152 configuration

To use the realtek usb ethernet, enable USB_RTL8152 config as module.
After enabled this config, it can be used ethernet with realtek
usb-to-ethernet cable.

Change-Id: Id7c90028e38904bab08d26fa60cb1e69882c1e81
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agoARM64: config: tizen_bcmrpi3: reboot on panic & hungtask oops
Seung-Woo Kim [Thu, 10 Jan 2019 02:54:14 +0000 (11:54 +0900)]
ARM64: config: tizen_bcmrpi3: reboot on panic & hungtask oops

In current raspbian kernel, hungtask issue on system booting with
rpi_firmware_transaction(). To avoid this, apply reboot on panic,
oops and hungtask oops and also change timeout for hungtask as 60
seconds.

Change-Id: I5ed12ced9bf561ad5d6993648b63a88a2925a8bb
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: config: tizen_bcmrpi3: enable BCM2835_THERMAL
Seung-Woo Kim [Wed, 9 Jan 2019 01:59:46 +0000 (10:59 +0900)]
ARM64: config: tizen_bcmrpi3: enable BCM2835_THERMAL

Enable BCM2835_THERMAL to support tmu for ap which gives
functionality to read /sys/class/thermal/thermal_zone0/temp.

Change-Id: Iabc776a40c5b294b8228fddf4f00853de8df366c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: dts: bcm283x: Fix the priority of pixelvalve0 to the lowest value
Hoegeun Kwon [Wed, 5 Dec 2018 10:23:05 +0000 (19:23 +0900)]
ARM: dts: bcm283x: Fix the priority of pixelvalve0 to the lowest value

There is a problem that the vblank test can not be verified when the
hdmi display is connected. Because the vblank test can only test crtc
top index 0, 1.

The Tizen mainly uses dsi and hdmi, so lower the priority of pixelvalve0
used with dpi.

Change-Id: Id2b3024f5960d3526e7a815e47f6d802a13d38d3
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: dts: bcm2710-rpi-3-b-plus: Add DT support for DRM relevant devices
Hoegeun Kwon [Fri, 19 Oct 2018 06:23:42 +0000 (15:23 +0900)]
ARM: dts: bcm2710-rpi-3-b-plus: Add DT support for DRM relevant devices

Add dts to support the official RPI touchscreen LCD.

Change-Id: I05eff2d5548f84d1e3df62a080bfd2694bbc59ae
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM: dts: bcm2710-rpi-3-b-plus: Enable dt nodes for audio, i2c1, spi0
Seung-Woo Kim [Fri, 19 Oct 2018 01:46:53 +0000 (10:46 +0900)]
ARM: dts: bcm2710-rpi-3-b-plus: Enable dt nodes for audio, i2c1, spi0

In Tizen dt-overlay is not used, so some device nodes should be
enabled to use. Enable dt nodes for audio, i2c1 and spi0 like
rpi3 b model.

Change-Id: I07504d1ece3c0aeb797ddfc372c956226d316814
Reference: 7fbb122e5232 ("ARM: dts: bcm2710-rpi-3-b: enable spi0 device node")
Reference: 34a29d8d477a ("ARM64: dts: bcm2710-rpi-3-b: enable i2c1")
Reference: 2ad26af6908c ("ARM: dts: bcm2710-rpi-3-b : Change audio node status as "okay"")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: dts: bcm2710-rpi-3-b-plus: Add reserved memory for secure os
Seung-Woo Kim [Fri, 19 Oct 2018 01:44:27 +0000 (10:44 +0900)]
ARM: dts: bcm2710-rpi-3-b-plus: Add reserved memory for secure os

Add reserved memory for secure os for 64bit like rpi3 b model.

Change-Id: I7c51b689734b3ba80f4efdf96def776581d05ad1
Reference: f86c6d68c5fb ("ARM64: dts: bcm2710-rpi-3-b : add memory reserve")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: dts: Add support for drm vc4 on RPI3 b plus
Hoegeun Kwon [Thu, 18 Oct 2018 07:49:04 +0000 (16:49 +0900)]
ARM: dts: Add support for drm vc4 on RPI3 b plus

Fixed the DT status to operate drm vc4.

Change-Id: I0ae3472e3336e0d6dfc107b936490a6af6eb23d6
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
4 years agoARM64: config: tizen_bcmrpi3: enable ATH9K_HTC configuration
Jaehoon Chung [Wed, 19 Sep 2018 07:29:52 +0000 (16:29 +0900)]
ARM64: config: tizen_bcmrpi3: enable ATH9K_HTC configuration

Enable ATH9K_HTC configuration to use TP-LINK WiFi usb dongle.

Change-Id: If412827703ff6cf63c0d6e8cdae5dbe92eaaf4a4
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agoARM: tizen_bcm2709_defconfig: sync rtl8192cu vendor config
Seung-Woo Kim [Wed, 10 Oct 2018 06:40:39 +0000 (15:40 +0900)]
ARM: tizen_bcm2709_defconfig: sync rtl8192cu vendor config

Kconfig is fixed to explictly show rtl8192cu mainline driver and
vendor driver. Sync rtl8192cu vendor config.

Change-Id: I1f7df8c3bd7c40164adb8575762e91763927885f
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: config: tizen_bcmrpi3_defconfig: enable Atheros, Realtek USB driver
Jaehoon Chung [Tue, 18 Sep 2018 10:03:22 +0000 (19:03 +0900)]
ARM64: config: tizen_bcmrpi3_defconfig: enable Atheros, Realtek USB driver

Enable Atheros, Realtek USB driver to test WiFi Mesh.

Change-Id: I1f5a1553e52ab9754fbe8b1c431450018f8890c6
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agonet: rtl8192cu: change config name as vendor driver
Jaehoon Chung [Tue, 18 Sep 2018 09:43:43 +0000 (18:43 +0900)]
net: rtl8192cu: change config name as vendor driver

There is already rtl8192cu mainline driver.
To distinguish with vendor driver, changed config name to
RTL8192CU_VENDOR.

Change-Id: I2663bc12f787cc4f417a13c9b4de42b4b63a8efb
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agorpi3: config_64bit: remove unnecessary dt name assign
Seung-Woo Kim [Thu, 30 Aug 2018 04:55:53 +0000 (13:55 +0900)]
rpi3: config_64bit: remove unnecessary dt name assign

In Tizen 64bit, u-boot will load and pass dtb to kernel, so there
is no neeed to set from config.txt. Also, even if kernel is loaded,
without from config.txt, bootcode.bin will set proper dtb name.
Remove unnecessary dt name assign from 64bit config.txt.

Change-Id: I60f089fd3737a2b7ec5cda8054faffe45825400b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agostaging: bcm2835-camera: fix overflow warnings
Seung-Woo Kim [Mon, 20 Aug 2018 04:07:05 +0000 (13:07 +0900)]
staging: bcm2835-camera: fix overflow warnings

Fix overflow in implicit constant conversion warnings.

Change-Id: I3e419cb927241c9400147b36a2e36f2173c96025
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: tizen_bcm2709_defconfig: enable IP_NF_RAW
Seung-Woo Kim [Wed, 4 Jul 2018 03:17:12 +0000 (12:17 +0900)]
ARM: tizen_bcm2709_defconfig: enable IP_NF_RAW

Enable IP_NF_RAW for raw iptable. It is used by nether service of
Tizen to filter network packet as nether policy.

Change-Id: I711f9da304c943f115625714d834213b6c67b3f2
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: tizen_bcmrpi3_defconfig: enable IP_NF_RAW
Seung-Woo Kim [Wed, 4 Jul 2018 03:17:12 +0000 (12:17 +0900)]
ARM64: tizen_bcmrpi3_defconfig: enable IP_NF_RAW

Enable IP_NF_RAW for raw iptable. It is used by nether service of
Tizen to filter network packet as nether policy.

Change-Id: Ib7421edaeceff199e28f27f38f1bac36c01bf720
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: tizen_bcmrpi3_defconfig: enable usb acm driver config
Anupam Roy [Fri, 1 Jun 2018 10:54:33 +0000 (16:24 +0530)]
ARM64: tizen_bcmrpi3_defconfig: enable usb acm driver config

This patch enables usb cdc-acm driver config to support
/dev/ttyACM# nodes for ACM class devices.

Change-Id: Ic6b79b90a201cade8451d5698ae8b2c26442b0eb
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agomisc: tizen-inform-reboot: Add support for download mode
Dongwoo Lee [Thu, 5 Apr 2018 01:57:43 +0000 (10:57 +0900)]
misc: tizen-inform-reboot: Add support for download mode

To pass download mode information to bootloader, this patch adds
the new parameter 'download' to reboot command.

Change-Id: I4673a0badf42429987f91edd960b871410bfb794
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
4 years agoARM: tizen_bcm2709_defconfig: enable MPTCP
Seung-Woo Kim [Tue, 3 Jul 2018 06:21:40 +0000 (15:21 +0900)]
ARM: tizen_bcm2709_defconfig: enable MPTCP

MPTCP will allow using TCP with multi-path

Change-Id: Ibf484f7a3dd8002ee7f8ddf91d498c381512a25e
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
[sw0312.kim: cherry-pick from arch/arm64/configs/tizen_bcmrp3_defconfig to arm/configs/tizen_bcm2709_defconfig]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: tizen_bcmrpi3_defconfig: enable MPTCP
Jiung [Tue, 24 Apr 2018 09:41:16 +0000 (18:41 +0900)]
ARM64: tizen_bcmrpi3_defconfig: enable MPTCP

MPTCP will allow using TCP with multi-path

Change-Id: I776f40a39fd512597810c2747d2cfd907641d85e
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
4 years agoARM: tizen_bcm2709_defconfig: enable NETFILTER_XT_TARGET_LOG
Seung-Woo Kim [Tue, 17 Apr 2018 07:58:26 +0000 (16:58 +0900)]
ARM: tizen_bcm2709_defconfig: enable NETFILTER_XT_TARGET_LOG

Enable NETFILTER_XT_TARGET_LOG for analysis of iptables log.
It is a iptables feature for security report on Tizen 5.0,
required from stc-manager.

Change-Id: I4cd8c29584c1f71a5be5c8423bfafb1168bb7288
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: tizen_bcmrpi3_defconfig: enable NETFILTER_XT_TARGET_LOG
Seung-Woo Kim [Tue, 17 Apr 2018 07:44:27 +0000 (16:44 +0900)]
ARM64: tizen_bcmrpi3_defconfig: enable NETFILTER_XT_TARGET_LOG

Enable NETFILTER_XT_TARGET_LOG for analysis of iptables log.
It is a iptables feature for security report on Tizen 5.0,
required from stc-manager.

Change-Id: Ia31c1e9463f28b74a67bad7272e0fea08c88c28c
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: tizen_bcmrpi3_defconfig: enable CONFIG_CONNECTOR and CONFIG_PROC_EVENTS
Seung-Woo Kim [Tue, 17 Apr 2018 07:42:17 +0000 (16:42 +0900)]
ARM64: tizen_bcmrpi3_defconfig: enable CONFIG_CONNECTOR and CONFIG_PROC_EVENTS

These options enable Netlink Connector feature of kernel to monitor
process lifecycle like Fork and Exit status of all processes
asynchronously.

In Tzen, it will be used by stc-manager(smart traffic control) to
monitor process lifecycle.

Change-Id: I265504609e6b2ce963875e66884d064affc48d9d
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoscripts: mkbootimg_rpi3.sh: Fix to set volume name of boot.img
Seung-Woo Kim [Wed, 4 Apr 2018 01:28:27 +0000 (10:28 +0900)]
scripts: mkbootimg_rpi3.sh: Fix to set volume name of boot.img

There is no fixed volume name of boot.img made by script. Like
release image, fix to set volume name.

Change-Id: If8372a3ea48d4d655d7132e6ee6bc965e2d3174d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoscripts: build-rpi3-arm64.sh, mkbootimg_rpi3.sh: Add modules
Seung-Woo Kim [Mon, 26 Mar 2018 03:35:11 +0000 (12:35 +0900)]
scripts: build-rpi3-arm64.sh, mkbootimg_rpi3.sh: Add modules

Add modules support on build scrip and image script.

Change-Id: I007d7ca940152506c856523e35adf4519248d2b5
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoscripts: mkbootimg_rpi3.sh: Install each rpi firmware and config.txt
Seung-Woo Kim [Mon, 26 Mar 2018 01:43:15 +0000 (10:43 +0900)]
scripts: mkbootimg_rpi3.sh: Install each rpi firmware and config.txt

After renaming config.txt for 64bit, mkbootimg_rpi3.sh is broken.
Fix to install each rpi firmware and config.txt considering changed
file name.

Change-Id: I907c1b6a8dc499da1e2f0364f9404a82a244e194
Fixes: 0979ebb94710 ("rpi3: config: rename config.txt to identify 64bit")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoscripts: mkbootimg_rpi3.sh: Change image size fitted to partition
Seung-Woo Kim [Mon, 26 Mar 2018 01:37:39 +0000 (10:37 +0900)]
scripts: mkbootimg_rpi3.sh: Change image size fitted to partition

From partitioning script of rpi3, boot partition is 64MiB. Change
image size fitted to the partition.

The partitioning script is on below link:
https://review.tizen.org/git/?p=platform/kernel/u-boot.git;a=blob_plain;f=scripts/tizen/sd_fusing_rpi3.sh;hb=refs/heads/tizen

Change-Id: Ia95c392235fe712bc1345078c64d07f6567fcbcb
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agopackaging: Add arm 32bit build
Seung-Woo Kim [Tue, 20 Mar 2018 02:11:31 +0000 (11:11 +0900)]
packaging: Add arm 32bit build

Add arm 32bit build.

Note: packaging is done with config.txt for 32bit.

Change-Id: Icf7e76523db3bb83fbd3d0bb6153157a64e62d93
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoarm: tizen_bcm2709_defconfig: enable sync file validation framework
Inki Dae [Wed, 21 Mar 2018 23:01:47 +0000 (08:01 +0900)]
arm: tizen_bcm2709_defconfig: enable sync file validation framework

Vulcan DDK will use this interface to create a fence and
increase timeline value of the fence.

Change-Id: I13c3f2442d26841e715dd01583d23f02b670679e
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agoarm64: tizen_bcmrpi3_defconfig: enable sync file validation framework
Inki Dae [Mon, 19 Mar 2018 06:54:24 +0000 (15:54 +0900)]
arm64: tizen_bcmrpi3_defconfig: enable sync file validation framework

Vulcan DDK will use this interface to create a fence and
increase timeline value of the fence.

Change-Id: Ib72ae7f591d4795eb9b0bdd51f742ae45ac954c2
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agorpi3: config: add config.txt for 32bit
Seung-Woo Kim [Mon, 19 Mar 2018 02:20:12 +0000 (11:20 +0900)]
rpi3: config: add config.txt for 32bit

Add config.txt for 32bit.

Note: It is for rpi3 32bit and rpi2, and in 32bit, there is no
atf implementation, so booting is done with u-boot.bin instead of
u-boot-spl.bin.

Change-Id: I556bb729f8be4a892f824d650b7935cd18efed20
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agorpi3: config: rename config.txt to identify 64bit
Seung-Woo Kim [Mon, 19 Mar 2018 01:45:41 +0000 (10:45 +0900)]
rpi3: config: rename config.txt to identify 64bit

Rename config.txt to config_64bit.txt to identify 64bit.

Note: The rpm packaging should be done as config.txt because the
name is used from bootcode.bin.

Change-Id: I41ca9c90673d2ee747b326627bced12e2284f1b8
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: configs: add tizen_bcm2709_defconfig
Seung-Woo Kim [Wed, 21 Feb 2018 06:27:31 +0000 (15:27 +0900)]
ARM: configs: add tizen_bcm2709_defconfig

Add tizen_bcm2709_defconfig to support rpi2 and rpi3 32bit for
tizen.

Note: the defconfig is based on bcm2709_defconfig with tizen
features and less module options to fit 20MB modules size.

Change-Id: I19cd4961dbc2ce6fd60961aeac0cd56ed20b1527
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM: dts: bcm2809-rpi-2-b: enable display, touch, audio, spi and i2c
Seung-Woo Kim [Wed, 17 Jan 2018 09:35:52 +0000 (18:35 +0900)]
ARM: dts: bcm2809-rpi-2-b: enable display, touch, audio, spi and i2c

On RPI dt, several devices are enabled with overlay dt. Enable dsi,
hdmi, touchscreen, audio, spi and i2c devices without overlay from
rpi2 dt for Tizen kernel like rpi3.

Change-Id: I3e6f5dcd000a6c01d9a0c740a87ef28a41f3eb22
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: tizen_bcmrpi3_defconfig: enable MMC_BCM2835_MMC config
Jaehoon Chung [Wed, 21 Feb 2018 06:00:33 +0000 (15:00 +0900)]
ARM64: tizen_bcmrpi3_defconfig: enable MMC_BCM2835_MMC config

Enable older bcm2835 driver instead of latest bcm2835 driver.
Before enable MMC_BCM2835_MMC config, Wifi doesn't work.
(Because SDIO interface didn't initialized.)

Change-Id: I53b5f276e4f57612a0e8af03544d2ae82c75b1ef
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agousb: dwc_otg: remove wrong memory accesses found by kasan
Seung-Woo Kim [Wed, 17 Jan 2018 01:29:01 +0000 (10:29 +0900)]
usb: dwc_otg: remove wrong memory accesses found by kasan

dwc_otg_hcd_is_bandwidth_allocated() requres ep_hcpriv pointer,
but passed parameter is double pointer and it cuases bad memory
access. Remove the wrong memory accesses.

Change-Id: I8292613f16fbf91ed9736b2a97e4afdb3bbbccec
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: tizen_bcmrpi3_defconfig: Sync with .config with v4.14.y
Jaehoon Chung [Fri, 5 Jan 2018 02:01:43 +0000 (11:01 +0900)]
ARM64: tizen_bcmrpi3_defconfig: Sync with .config with v4.14.y

After updating to v4.14.y rebase, sync with .config.

Change-Id: I107539bb11b9e717e68023973a2bb2613aafc007
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: tizen_bcmrpi3_defconfig: enable bcm2835-v4l2
Hackseung Lee [Wed, 6 Dec 2017 08:28:08 +0000 (17:28 +0900)]
ARM64: tizen_bcmrpi3_defconfig: enable bcm2835-v4l2

Enable bcm2835-v4l2 driver as dynamic kernel module.

Change-Id: I0a4cd562311fe6c41935b5376ce7fc94fab7b4b1
Signed-off-by: Hackseung Lee <lhs@dignsys.com>
[sw0312.kim: apply config with bcm2835-v4l2 mmal message struct backported version]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoARM64: tizen_bcmrpi3_defconfig: enable crypt-related configs
Junghoon Kim [Mon, 20 Nov 2017 05:56:07 +0000 (14:56 +0900)]
ARM64: tizen_bcmrpi3_defconfig: enable crypt-related configs

Enable crypt-related configs in order to support file system encryption.

Change-Id: Ib5d887db29d8431996f8acaa563ae67f159e0e4b
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agoARM64: dts: bcm2710-rpi-3-b : add memory reserve
egukim [Tue, 4 Jul 2017 04:53:36 +0000 (13:53 +0900)]
ARM64: dts: bcm2710-rpi-3-b : add memory reserve

add memory reserve for rpi3(64bit) secure OS

Change-Id: I346a2d7c1afc0441ab4655592f3d81836a106f94
Signed-off-by: eunggu kim <egukim@dignsys.com>
4 years agoARM64: dts: bcm2710: add psci device node
egukim [Mon, 3 Jul 2017 05:06:47 +0000 (14:06 +0900)]
ARM64: dts: bcm2710: add psci device node

This patch changes the enable-method from 'spin-table' to
'PSCI (Power State Coordination Interface)' in order to control
the cpu state such as cpu up/down.

Change-Id: I92eaa95cbccbd86f6067bc9977acc45813703cad
Signed-off-by: eunggu kim <egukim@dignsys.com>
4 years agoARM64: tizen_bcmrpi3_defconfig: Enable TEE Driver
egukim [Mon, 3 Jul 2017 05:00:28 +0000 (14:00 +0900)]
ARM64: tizen_bcmrpi3_defconfig: Enable TEE Driver

Set config CONFIG_TEE, CONFIG_OPTEE for enable optee kernel driver

Change-Id: Ib35167d8337126886b2bef03acf3aef6163d61ae
Signed-off-by: Eunggu kim <egukim@dignsys.com>
4 years agoARM64: dts: rpi3: Add optee node
egukim [Mon, 3 Jul 2017 04:55:37 +0000 (13:55 +0900)]
ARM64: dts: rpi3: Add optee node

Add device node for optee kernel driver. This based on
https://github.com/linaro-swg/linux/commit/a3d16523b5c3bd3c21e2009f2af0901b0d6d09dd

Change-Id: I9cc6d97354897b4656b02744076efd91889d7630
Signed-off-by: Joakim Bech <joakim.bech@linaro.org>
[egukim: modified commit from linaro-swg/linux of github]
Signed-off-by: Eunggu kim <egukim@dignsys.com>
4 years agomisc: tizen-inform-reboot: resolve sync failure about reboot parameter
Junghoon Kim [Tue, 17 Oct 2017 05:43:04 +0000 (14:43 +0900)]
misc: tizen-inform-reboot: resolve sync failure about reboot parameter

Currently, writing reboot paramter into INFORM partition fails
infrequently.

Resolve this issue by calling sync_filesystem function so that it writes
out and waits upon all dirty data associated with this superblock.

Change-Id: Ic62df0c3c4e565ca7211eb85661ead6979f0ad8d
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agomisc: make sure Tizen notifier is executed before reset
Łukasz Stelmach [Fri, 29 Sep 2017 13:24:05 +0000 (15:24 +0200)]
misc: make sure Tizen notifier is executed before reset

In case of RaspberryPi the CPU is reset by watchdog triggered from
the bcm2835_restart_notifier_call function. Tizen notifier needs higher
priority to be called before the watchdog.

Change-Id: Ia7f6d895f6f40d1a9b4e57ad41b5bdb55c94f4f2
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
4 years agoARM64: tizen_bcmrpi3_defconfig: add i2c-stub to module
kibak.yoon [Fri, 13 Oct 2017 05:20:48 +0000 (14:20 +0900)]
ARM64: tizen_bcmrpi3_defconfig: add i2c-stub to module

We need a test method for the i2c driver and framework on RPI3.
And using a fake device is more convenient than a physical hardware device.
Therefore it would be good to enable i2c-stub for testing i2c feature on RPI3.
This will be used for testing purposes only.

Change-Id: I279bccabf709631130eae7b257bec6275b6acba0
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
4 years agoARM64: tizen_bcmrpi3_defconfig: support Western european languages
Inki Dae [Wed, 27 Sep 2017 08:41:16 +0000 (17:41 +0900)]
ARM64: tizen_bcmrpi3_defconfig: support Western european languages

Add Western european language support.

This language support is required for mounting vfat filesystem with default
language set on USB storage.

Change-Id: Ibf479d540a0df8502cae5af0dc242b1cdce3d6c8
Signed-off-by: Inki Dae <inki.dae@samsung.com>
4 years agoARM64: tizen_bcmrpi3_defconfig: enable TIZEN_INFORM_REBOOT with inform path
Junghoon Kim [Tue, 22 Aug 2017 04:46:05 +0000 (13:46 +0900)]
ARM64: tizen_bcmrpi3_defconfig: enable TIZEN_INFORM_REBOOT with inform path

Reboot parameter passing is required for determining booting mode for
rpi3.

Activate Tizen reboot parameter passing feature with inform file path.

Change-Id: I67a7c24548dda8e8dd860fa25b2f558dadb83cf5
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>