summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-05-21Odroid-XU3: Remove the duplicated definitionsubmit/tizen/20150522.085304submit/tizen/20150522.080348submit/tizen/20150522.044923accepted/tizen/wearable/20150526.000906accepted/tizen/mobile/20150526.000914accepted/tizen/common/20150522.093834Inha Song1-3/+0
This patch remove the duplicated definition in odroid-xu3 config header. These definitions are also defined in the same file. Change-Id: I4d2c54d5309189225c9ba1c8e191d31142ec6bde Signed-off-by: Inha Song <ideal.song@samsung.com>
2015-05-21Odroid-XU3: Change root partition name to rootfsInha Song1-1/+1
This patch root partition name to rootfs from platform. The root partition name is changed to rootfs from platform since Tizen 3.0. Change-Id: I111fd510e097b9354a7d5214b551ceb809069e24 Signed-off-by: Inha Song <ideal.song@samsung.com>
2015-05-19packaging: Add change spec for odroid-xu3 u-boot buildInha Song2-0/+121
This patch Add spec file for odroid-xu3 u-boot build by GBS. Signed-off-by: Inha Song <ideal.song@samsung.com>
2015-05-19tool: mkimage_signed: Add odroid-xu3_defconfig supportInha Song1-0/+2
This patch add odroid-xu3_defconfig for Odroid XU3 board. Signed-off-by: Inha Song <ideal.song@samsung.com>
2015-05-19usb: f_mass_storage: fix decrease the delays that for assure corret ↵Inha Song1-1/+1
transmission completion This patch fix decrease the delays for assure corret transmision completion in UMS to work CTRL+C with UMS on XU3. Signed-off-by: Inha Song <ideal.song@samsung.com>
2015-05-19exynos: common: increase malloc len to 128MiBPrzemyslaw Marczak1-1/+1
This change is required for thor command. When malloc pool is increased, then thor doesn't fail when allocates the data buffer few times. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-19exynos4: dtsi: add include of gpio bindingsPrzemyslaw Marczak1-0/+1
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-19Odroid-XU3: adjust to support Tizen requirementsJoonyoung Shim3-2/+175
This patch includes changes required to boot Tizen, by varoius authors: arm: exynos5420: Adding support for board_usb_{init|cleanup}() functions Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> samsung: common: board: call dwc3_uboot_exit() for boards with DWC3 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> config: Odroid-XU3: Support DFU download Signed-off-by: Inha Song <ideal.song@samsung.com> smdk5420: Add dfu_alt_info settings interface for support DFU download Signed-off-by: Inha Song <ideal.song@samsung.com> Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> config: Odroid-XU3: Enable dwc3 usb gadget Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> config: Odroid-XU3: Add default dfu device environment Signed-off-by: Inha Song <ideal.song@samsung.com> usb: config: odroid XU3: Enable UMS (Mass Storage) gadget Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Odroid-XU3: Enable check board signature when download bootloader Signed-off-by: Inha Song <ideal.song@samsung.com> odroid-xu3: config: add platform autoboot command Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Odroid-XU3: Set rootfs device number to 0 Signed-off-by: Inha Song <ideal.song@samsung.com>
2015-05-18samsung: usb: phy: Support for DWC3 PHYLukasz Majewski3-0/+95
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>
2015-05-18arm: exynos: USB3 PHY base definition for Exynos5 SoCsLukasz Majewski1-1/+1
After that change it would be possible to call samsung_get_base_usb3_phy() function to get proper base address Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
2015-05-18ARMv7: S5P: change output blank for clean outputInha Song1-1/+1
This patch change output blank for more clean output. Change-Id: Ibd9cde9da04608f9c8815d6eba7822da05e31e21 Signed-off-by: Inha Song <ideal.song@samsung.com>
2015-05-18Exynos5422: Change cpu_id to 0x5422 from 0x5800Inha Song1-6/+8
This patch change s5p_cpu_id to 0x5422 from 0x5800. Exynos 5800 processor is a variation product of Exynos 5422 processor. So, Exynos 5800 also have 0x422 cpu_id. Change-Id: Icdcde1c1b5357613bf5efd4cea762290fde4fadb Signed-off-by: Inha Song <ideal.song@samsung.com>
2015-05-18samsung: board: dram_init: return error if no memPrzemyslaw Marczak1-0/+3
Change-Id: Ic1bcce5bc90a38b751f32bef23cae79e24d5a443 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18packaging: u-boot.spec: add tizen_defconfig supportPrzemyslaw Marczak1-7/+12
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Signed-off-by: Chanho Park <chanho61.park@samsung.com> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
2015-05-18tool:mkimage_signed: add tizen_defconfig supportPrzemyslaw Marczak1-4/+4
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18tools:mkimage_multidtb: cat multi-plat bin with multiple dtbsPrzemyslaw Marczak1-0/+104
This script concatenates proper dtb files into one multi.dtb with 4B padding after the u-boot-multi.bin. Output: u-boot-mmc.bin: | u-boot-multi.bin | dtb 1 (4B padding) | dtb 2 (4b padding) | dtb x ... Change-Id: I9b308fc58707917b89c3f59e65b414d02f5e8efb Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18tizen: add tizen_defconfigPrzemyslaw Marczak5-0/+232
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Inha Song <ideal.song@samsung.com> Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18tizen: add Exynos4 common filePrzemyslaw Marczak4-0/+1447
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Inha Song <ideal.song@samsung.com> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
2015-05-18thor:cmd: get the default command arguments from environmentPrzemyslaw Marczak1-7/+30
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>
2015-05-18dfu:cmd: get the default command arguments from environmentPrzemyslaw Marczak1-10/+35
This change adds support to store the default DFU cmd line arguments in the environment. This is useful for users who usually use the same arguments for dfu command and do the upgrade frequently. DFU command use cases: - dfu <usb ctrl> <if> <dev> [<list>] - use command line args - dfu [<list>] - take the default command line args from env And for both - optional list the initialized DFU entities. To use the default dfu device configuration user should define: - $dfu_usb_con - e.g. "0" - $dfu_interface - e.g. "mmc" - $dfu_device - e.g. "0" Change-Id: I1c87677c0384a5f5a808ab9b7845d6da6f9ec980 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18dfu:mmc: support to get partition information by nameJoonyoung Shim1-0/+23
The partitions can have partition name like label. If partition name is exist, first get partition information by name than by partition number, so we can ignore hardcoding dependency of partition number. Change-Id: Ibfb2521438ce366959814c2a87085e9f384de588 Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
2015-05-18samsung: misc_init_r: insert call to platform_setup()Przemyslaw Marczak1-0/+3
This change adds call of platform_setup() to check or set active platform configuration. Change-Id: I355736bf40f8fa3697ce0b4546f7702d2e54a0f9 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18samsung: misc: add new feature for configure partitions layout at boot.Przemyslaw Marczak2-2/+194
This feature requires some platform configuration data in the environment, which is: -${platname}_setup_N_name - name of this setup -${platname}_setup_N_partitions - GPT partitions or NULL if MBR -${platname}_setup_N_alt_system - dfu_alt_info with system entities -${platname}_setup_N_bootpart - boot partition number for this setup -${platname}_setup_N_rootpart - root partition number for this setup And for at least one setup it requires: -${platname}_setup_cnt - number of ${platname} configs -${platname}_setup_chosen - chosen plaform config -${platname}_setup_active - active platform config (autoset) Two environment variables are used to switch/check active setup: -${platname}_setup_chosen - can be changed manually -${platname}_setup_active - should be the same as chosen If chosen setup is not set, then will be automatically set on boot by setting proper env: - $partitions := ${platname}_setup_N_partitions - $dfu_alt_system_${platname} := ${platname}_setup_N_alt_system - $mmcbootpart := ${platname}_setup_N_bootpart - $mmcrootpart := ${platname}_setup_N_rootpart - ${platname}_setup_active := ${platname}_setup_chosen If ${partitions} are: - set, then gpt write is called - unset, e.g. when using MBR - then partition table is unchanged Config: - CONFIG_PLATFORM_SETUP Change-Id: Ib9f90415b92ec1d67a9bf6b84e7ab5d5deea8a7d Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18tizen: add new gpt version and add gpt version headersInha Song5-0/+339
This patch adds new gpt version and moves gpt data into separated headers. In order to be able to gpt version switch, make gpt_vxx.h files that has the partition information. - include/samsung/gpt_v08.h - include/samsung/gpt_v13.h Change-Id: I33870a54703a07468f17b0f0d7cf43e563409e65 Signed-off-by: Inha Song <ideal.song@samsung.com> tizen: config: enable platform command and platform setup This patch enables "platform" command and adds multiple platform setups to tizen environment. At this stage - there are available three setups: - trats2 pit v8 - trats2 pit v13 - chosen - odroidu3 Tizen v2.x - chosen - odroidu3 Tizen v3.0 - chosen The chosen setup - is the default for each platform, and is set as an active after first boot. This should be changed manually if another setup is required. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> samsung: gpt: fix CSA partition name Signed-off-by: Chanho Park <chanho61.park@samsung.com>
2015-05-18samsung: common: add get_plat_name()/get_board_model()Przemyslaw Marczak4-11/+12
This patch introduce some cleanup in set_board_info(), related to the listed code changes: Change 1: The name of function get_board_type() was unclear, so now it is changed to get_board_model(). Change 2: The previous version of get_board_name() was returning the platform name - now it returns full boardname. Change 3: Add new function get_plat_name() - returns platform name. This is useful for platform common usage like environment settings. Change 4: Update odroid.c by change get_board_type() to get_board_model(). Change 5: samsung: misc: set env ${platname} in set_board_info() Change-Id: Iba16e917f9c88458e1af21892d84ded121aa12cf Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18samsung: define autoboot command in external headerPrzemyslaw Marczak1-0/+80
Change-Id: Ifb3f73392246b0585b486ffd9fd4ef43870d6d01 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18samsung:board: check board type before init exynos fbPrzemyslaw Marczak1-1/+7
For CONFIG_OF_MULTI some boards doesn't use frame buffer, so the board type is now checked before the fb configuration. Change-Id: Ide9ba4893b89ccc84ea84482324dd39ed8fbd48c Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18samsung:board: don't call set_board_type() for CONFIG_OF_MULTIPrzemyslaw Marczak1-0/+2
For this config the set_board_type() is called much more earlier - in the function setup_fdt(), so the second call in the board file is unneeded. Change-Id: I71037c593d00f7bde95a0880787e64d0d09ff173 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18thor: check board type before display for CONFIG_OF_MULTI.Przemyslaw Marczak3-2/+24
For multi platform binary, it is required to check the board type because not every board supports display. Change-Id: Ia4153d58f48846a0bec6e9dc90ea17d87d5da096 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18exynos_fb.c: lcd_ctrl_init(): check board before init lcdPrzemyslaw Marczak1-0/+5
Change-Id: Ie8219913e8501fc2180d5d96f19844d3e08a6326 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18exynos4-dt.h: enable generic file system commandsPrzemyslaw Marczak1-0/+3
Change-Id: Ibfd834403381d18f27825a19807517ad06097146 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18samsung:board: run lcd menu only on trats2 for CONFIG_OF_MULTIPrzemyslaw Marczak1-0/+4
Change-Id: I02baeb60125f695e30c138b7311910731f5d9f40 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18samsung:misc: add call to get_board_name() for CONFIG_OF_MULTIPrzemyslaw Marczak2-0/+6
Change-Id: I236f5d23122f02ef759d7e79354a9af788627968 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18samsung:board: dram_init(): alloc memory to store fdt dram infoPrzemyslaw Marczak2-15/+28
For CONFIG_OF_MULTI the dram_init() function gets memory information from the device tree blob by the call to fdtdec_decode_memory(). The same is done second time in dram_init_banksize() - this was the simplest because board info structure is not initialized at dram_init() stage. This change uses malloc and gd->priv pointer to store the memory banks parameters and next uses it in dram_init_banksize(). Thanks to this change, the boot time decreases, because, the function fdtdec_decode_memory() is called only once. Change-Id: I8f357c6a641d4440f32d2fe24d7e1e2dc5bc4a3d Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18u-boot:global data: add new field 'void *priv' for CONFIG_OF_MULTIPrzemyslaw Marczak1-0/+3
This field is required for storing detected platform info before the relocation or "bd_t" initialization. Change-Id: Idbe987252079e5bf863adbec4fd5fc5edc2d8829 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18samsung:board: init dram info based on memory node in fdtPrzemyslaw Marczak1-1/+28
Change-Id: I3677f0ab0b4aed264de8af37e87b081f66a36b97 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18fdtdec: add function: fdtdec_decode_memory()Przemyslaw Marczak2-0/+135
This function can be used for decode memory node from device tree file. Currently supports decoding of a single memory node with a multiple ranges specified by the reg property with size of address and size cells specified in a root node. Function parameters: - blob: ptr to device tree - start: ptr to banks start address array - size: ptr to banks size array - max_banks: max number of banks to fill Two of args: start or size can be NULL e.g. if only each bank size is needed. Sample use case: memory { device_type = "memory"; reg = <0x40000000 ... 0x10000000 ... 0x50000000 ... 0x10000000 ... ... ... ... ...>; }; Change-Id: I2f3defb89cf62d81377fb7882dbbae79b4472af2 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18fdt_support: remove type static in fdt_read_prop()Przemyslaw Marczak2-1/+3
Change-Id: Iaff9eff27dba6fc6f13d031a96f310361648acfd Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18arch:arm:dts: odroid/trats2: add memory device typePrzemyslaw Marczak2-0/+20
Change-Id: I80c42c8c390ccba1e748671b7f85d5b71371bbe9 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18common:board_f:setup_fdt: set fdt addr by get_board_fdt() for CONFIG_OF_MULTIPrzemyslaw Marczak1-0/+6
Change-Id: I47039ce703c6bd8be18dc932ca67936f1ca5946b Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18samsung: misc: menu: new option: battery charge levelPrzemyslaw Marczak2-0/+4
This change adds new option to lcd menu which allows check battery state. In case if battery level is greater than boot level threshold (20%), battery screen is not displayed. So this menu option is useful in such situations. Change-Id: I13e7e57516766fea787855b914d2884343cc33a5 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18trats2: enable command battery of interactive chargerPrzemyslaw Marczak1-0/+1
This change adds two features on trats2 device: - show battery charge level by displaying battery screen - manually start interactive charger if needed Usage: command: "battery" options: "state" or "charge" Change-Id: Ie000edfc2fb6f2938ddf1e17611fdc5045169830 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18trats2: add support to interactive chargerPrzemyslaw Marczak3-18/+310
This commit adds support to interactive charger api which means an implementation of listed functions: - charger_enable() - enable the charger.Charger can be enabled automatically if the device power on state is triggered by USB cable connection. - charger_type() - this function returns device type connected to usb port of device. For charger api matters only positive value. - battery_present() - check if battery is connected (DETBAT pin) - battery_state() - check battery charge level. Returns percent value. - low_power_mode() - switch SOC into low power mode which covers: - disable cores: 1, 2, 3, - disable SOC unused power domains, - decrease CPU clock to 200 MHz After low_power_mode() function call, device should be restarted, which is implemented in interactive charger. Change-Id: I7e664fab29c45c2d29dc57a2faa887d88530d8f3 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18samsung: misc: new command: battery and config CONFIG_CMD_BATTERYPrzemyslaw Marczak1-0/+28
This feature allows to enable interactive charger by command line or use interactive charger for display battery charge level. Usage: - battery [<state>] [<charge>] Option "state" will display battery screen for 2 seconds. Option "charge" will start interactive charger mode. Interactive charger mode can be stopped by: - pressing CTRL+C keys combination, or device reset by: - pressing PWR key for 5 seconds (only if SOC > 20% - one grey bar), - pressing PWR key for 10 seconds, which is PMIC reset. Change-Id: I622830198f6cba4f0fa30798b02aa003c55332bb Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18samsung: misc: new feature: common interactive chargerPrzemyslaw Marczak2-6/+291
This change adds common interactive charger feature with display support. New config: CONFIG_INTERACTIVE_CHARGER New functions: - battery() - which takes one of commands parameter: BOOT_CHECK: check battery present, low power mode; check battery charge level, draw battery screen STATE: display battery screen with current state of charge this is for command line use CHARGE: start interactive charger for every battery charge level this is also for command line use - interactive_charger() - loop function for charge the battery and do: - update of battery screen, - update charge animation, - check for exit condition (if charge level >= 20%) - clear screen after 10 seconds animation - draw battery on clean screen if any key pressed There are few constants defined for this feature: - CHARGE_TRESHOLD_BOOT: 20 (20 percent of charge) - CHARGE_DISPLAY_TIMEOUT_SEC: 10 (time for animation display) - CONNECT_CHARGER_TIMEOUT_SEC: 5 (time for connect charger animation) - CHARGE_PWR_KEY_RESET_TIMEOUT: 3 (time for PWR key press to reset device) Battery charge level cases: - 0-20 % - don't allow to boot and then: - enable charger if connected and start charge animation or if no charger: - display 5 sec charger animation and turn off the device - > 20 % - don't display battery screen and boot device Charge mode can be break by keys VOLUP + VOLDOWN. If charge level > 20% then device can be enabled by pressing PWR key for a time defined in CHARGE_PWR_KEY_RESET_TIMEOUT. Change-Id: I15066a4b86c89f1f0124b072a0aeb7246b29b279 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18lib: tizen: add battery interactive charger screensPrzemyslaw Marczak9-0/+15724
New images: - battery frame: 200x380px, 16bpp, batery level area in frame: 170x300px - battery bar: 160x50px, 16bpp, grey and red, (for 5 bars in battery frame with 8px interelement gap) - charge screen; charge screen clean images: 128x120px, 16bpp - charge screen indicator; vertical and horizontal indicator clean images: 8x8px, 16bpp Library functions: For battery screen: - draw_battery_screen() - draw empty battery frame - draw_battery_state() - fill battery frame with charge bars to a given percent For charge animation: - draw_charge_screen() - draw a small phone connected to a cable (under the battery) - clean_charge_screen() - cleans above screen - draw_charge_animation() - display an animation with a point running on a cable (on a charge screen) For low battery state and no charger connected: - draw_connect_charger_animation() - draw and clean charge screen respectively Library is ready to use gzipped images but this commit adds only bmp images. Change-Id: I25a527b07b809b9105b6d4d8c29aa01e47224134 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18trats2: add implementation of board_poweroff() and CONFIG_CMD_POWEROFFPrzemyslaw Marczak2-0/+18
This change adds implementation of function board_poweroff() which turns off the device off by setting PSHOLD gpio to low state which is a power off signal for main PMIC. Change-Id: Iae97fb81d7e7e243079ac18d03f4fd917c50b62e Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18arch:arch:exynos: add exynos ps hold control output settingPrzemyslaw Marczak1-0/+1
Change-Id: I4ee074278c55198030aa5092f36e61e3c6efc487 Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18arch:arm:exynos: power.h define exynos4x12 power subsystem structurePrzemyslaw Marczak1-0/+224
Change-Id: Icf6cb80529f3fb5511e440f572e0870359e6e37c Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
2015-05-18common: add command power off - to switch off the device by commandPrzemyslaw Marczak2-0/+43
This change introduces new config: - CONFIG_CMD_POWEROFF - which enables common/cmd_poweroff.c This requires implementation of function board_poweroff() which is yet declared in include/common.h Implementation of board_poweroff() should: 1.a. turn off the device or 1.b. print info to user about turn off ability 2. never back to caller Usage is simple: "power off" Change-Id: Ia5fe73250e2ac29d0868b80bcd867bae2aa8d5be Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>