1
0
Fork 0
Commit Graph

13 Commits (zero-sugar)

Author SHA1 Message Date
Keun-young Park 40e0de680b Revert "[iot] Decrease panbell DDR frequency to 1600 MTS"
- temp fix for boot hangup with camera

This reverts commit a8109598e7dca72d415ad5d26ac5868b88da9dfc.

Bug: 115532706
Test: test boot up
Change-Id: I7bb1bc14eb81ae0965fc03abdf5cb65444720d13
2018-11-12 09:18:37 +08:00
Ji Luo d4a0dbd9a4 [iot] Support authenticated unlock
Add fastboot commands "fastboot oem at-get-vboot-unlock-challenge"
and "fastboot oem at-unlock-vboot" to support the authenticated
unlock feature for Android Things devices. Use software random
numbers generator to generate the 16 bytes random challenge, it
should be replaced with hardware encrypted random generator when
the TEE part is ready.

Test: Generate unlock challenge by:
        ./avbtool make_atx_unlock_credential
        --output=atx_unlock_credential.bin
        --intermediate_key_certificate=atx_pik_certificate.bin
        --unlock_key_certificate=atx_puk_certificate.bin
        --challenge=my_generated_challenge.bin
        --unlock_key=testkey_atx_puk.pem
      validated the unlock credential successfully on imx7d_pico
      and AIY.

Change-Id: I4b8cee87c9e96924169479b65020a081136681f6
Signed-off-by: Ji Luo <ji.luo@nxp.com>
2018-11-12 09:18:37 +08:00
Ji Luo 2e419edbe5 [iot] Load Trusty to different address for AIY 1G/3G ddr board
Trusty image should be loaded to different address for AIY 1G/3G ddr
board which have different ddr size. Use board id to distinguish
different baseboard, load trusty image to 0x7e00_0000 for AIY 1G ddr
board and 0xfe00_0000 for AIY 3G ddr board.

Test: build and boot Trusty ok for AIY 1G/3G ddr board.

Change-Id: I62d8a19b13fe19f38075512a6faa4bbb36f74791
Signed-off-by: Ji Luo <ji.luo@nxp.com>
2018-11-12 09:18:36 +08:00
faqiang.zhu 434e104b7d Set different bootargs for imx8m_phanbell based on ram capacity
for 1GB ram: cma=296M galcore.contiguousSize=8388608
for 3GB ram: cma=384M
Test: Boot successfully on AIY-1G & AIY-3G

Change-Id: If082d5b751b5a5e06efe301c0b8e49ec4ac3dfb7
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
Reviewed-on: http://androidsource.ap.freescale.net/project/5262
Reviewed-by: Wang Haoran <elven.wang@nxp.com>
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
2018-11-12 09:18:34 +08:00
faqiang.zhu 3e5fa4bcfd Set VDD_ARM to 0.85v and turn off VDD_GPU and VDD_VPU
Set BUCK2 output for VDD_ARM to 0.85v
Set BUCK3 output for VDD_GPU off
Set BUCK4 output for VDD_VPU off

Change-Id: I26b47b72ae6b8e714d12345b20324490f0947f56
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
Reviewed-on: http://androidsource.ap.freescale.net/project/5177
Reviewed-by: zhang bo <bo.zhang@nxp.com>
2018-11-12 09:18:34 +08:00
Luo Ji f6409f6942 MA-12552 Adjust SPL malloc pool and stack address
This commit is basically cherry-picked from:
  commit ced8dc6ce8
  Author: Ye Li <ye.li@nxp.com>
  Date:   Mon Aug 20 23:35:20 2018 -0700

      MLK-19263-2 imx8mq_evk: Adjust SPL malloc pool and stack address

      Currently the SRAM is allocated to malloc pool due to large malloc
      needed by USB SDP. The stack is moved to OCRAM. This causes a
      problem when enabling HAB. The HAB authentication needs large
      memory on stack, so after ATF image loaded, the stack overwrites
      the ATF image in OCRAM and causes authentication failed.

      This patch moves the malloc pool to DDR and set back stack to
      SRAM. So SDP still can run with enough memory on DDR. And the
      stack overwrite issue can be fixed by enough memory 24KB left on
      SRAM.

      This change also need to use a early malloc pool by defining the
      CONFIG_MALLOC_F_ADDR. And in SPL codes, we have to adjust DDR init
      before board_init_r.

      Signed-off-by: Ye Li <ye.li@nxp.com>

Change-Id: I37e0d196296b6b25662dda3dbbbc265bdf6d983f
Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-08-30 14:49:50 +08:00
Luo Ji d3de5fe317 MA-12551 [iot] Change configs to enable uuu on AIY
Sync configs with BSP team to enable uuu for imx8m AIY board,
create new file imx8mq_phanbell_androidthings_uuu_defconfig
for uuu image build.

Test: uuu works on imx8m AIY board.

Change-Id: Ied7cbb6d45d084837495cec5eeb5b4947a0630c4
Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-08-30 14:49:33 +08:00
Zhang Bo b89bd131b2 [iot] Change VDD_DRAM to 0.9V which is valid in datasheet
Change VDD_DRAM to 0.9V

Change-Id: Ia2d0672b2f31f18add6626ac2e23e66b8c421a75
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
Reviewed-on: http://androidsource.ap.freescale.net/project/5139
Reviewed-by: Wang Haoran <elven.wang@nxp.com>
2018-08-21 09:44:01 +08:00
Zhang Bo b1fd5ce7f4 [iot] Change VDD_3V3 to 3.1V and VDD_1V8 to 1.695V
Change the VDD_3V3 and VDD_1V8 to lower one to save power.

Change-Id: I61f1f4ed8c6e036173d9adc5358db01bd9c835a2
Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
Reviewed-on: http://androidsource.ap.freescale.net/project/5144
Reviewed-by: Wang Haoran <elven.wang@nxp.com>
2018-08-21 09:44:00 +08:00
Luo Ji 1905f574e3 [iot] Decrease panbell DDR frequency to 1600 MTS
Decrease the phanbell DDR(1G + 3G) frequency to 1600
MTS, this may save some power.

Test: Boot ok on both 1G and 3G DDR board, the dram_core_clk
      decrease from 800000000 to 400000000.

Change-Id: I73b78865e7691001a868061826f0211cb9927cee
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Reviewed-on: http://androidsource.ap.freescale.net/project/5100
Reviewed-by: Wang Haoran <elven.wang@nxp.com>
2018-08-20 21:31:58 +08:00
Luo Ji bfd330bceb [iot] Support 1G DDR AIY board
Add 1G DDR support, distinguish different boards by the
Board ID, They are:
  SAI5_MCLK: Board_id[6]
  SAI5_RXFS: Board_id[5]
  SAI5_RXC:  Board_id[4]
  SAI5_RXD3: Board_id[3]
  SAI5_RXD2: Board_id[2]
  SAI5_RXD1: Board_id[1]
  SAI5_RXD0: Board_id[0]
Current Board ID for imx8m boards are:
  AIY  Micron  1G:   0x5c
  AIY  Hynix   1G:   0x56
  AIY  Mirconb 3G:   0x40
  Wibo         3G:   0x00
  imx8m_ref    3G:   0x00

Test: Boot ok on all imx8m boards.

Change-Id: I3d65931483f369c545632b660f04fc9da120547d
Signed-off-by: Luo Ji <ji.luo@nxp.com>
Reviewed-on: http://androidsource.ap.freescale.net/project/5093
Reviewed-by: guoyin.chen <guoyin.chen@nxp.com>
Reviewed-by: Wang Haoran <elven.wang@nxp.com>
2018-08-20 21:31:58 +08:00
Luo Ji 4d69389794 MA-12124 [Android] Fix build warnings for u-boot
Fix build warnings in u-boot.

Change-Id: I1944657d2d89a03c0d2303a22a09538dfaa5fd2c
Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-08-20 21:25:48 +08:00
Ye Li 399ed6fe78 MLK-18591-14 android: iot: Add imx8m-phanbell support
Porting the imx8m-phanbell android things board support from v2017.03

Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
2018-06-13 03:06:48 -07:00