summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* linux-fslc-imx: Update with some bugfixes patchesbackport-2142-to-scarthgapDaiane Angolini2025-02-281-1/+4
| | | | | | | | | | | | | | | Relevant changes: - 5ff4cf4d61e11 Merge pull request #713 from angolini/fix_imx93 - e587f8fe42f16 firmware: se_fw: remove info_list from ro section - a0609cb5220a7 Merge pull request #712 from angolini/push_one - 0f638960dcffd media: Kconfig: fix double VIDEO_DEV - 226bfffe04bcb Merge pull request #709 from fs-csenatore/6.6-2.2.x-imx - 198242c057e00 drivers:clk:imx:clk-imx8mp-audiomix: remove duplicated CLK_GATE_PARENT definition - 427223e3206dd Merge pull request #707 from iceaway/revert_u-serial_patch - 4f5936d7391f8 Revert "usb: gadget: u_serial: Disable ep before setting port to null to fix the crash caused by port being null" Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io> (cherry picked from commit d43e64fbe34a71e64541af795d2aa3d8b5143eac)
* Merge pull request #2140 from iQiliO/fix-gstreamer-imx-build-errorOtavio Salvador2025-02-271-1/+1
|\ | | | | libimxvpuapi2: Upgrade to version 2.3.1 to fix build of gstreamer-imx
| * libimxvpuapi2: Upgrade to version 2.3.1Carlos Rafael Giani2025-02-271-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * vpu: Add more options, flags, and frameskipping support to encoder API * vpu: Deprecate min_intra_refresh_mb_count and replace it with flag This is more practical, since the macroblock count if anyway usually set to resemble the GOP length, so this might as well be automatically calculated. * vpu: encoder: Add GOP size checks * vpu: encoder: Add imx_vpu_api_enc_get_encoded_frame_ext() This is a preparation for reworked intra refresh support. In intra refresh encoding, only the first frame is an I/IDR frame; all followup frames are P frames. The start of an intra refresh interval qualifies as a sync point. But since only P frames are present, callers callers can't rely on the frame type to detect sync points. To fix this, the imx_vpu_api_enc_get_encoded_frame_ext() is added to the API to be able to communicate to callers that a sync point was produced. * imx8m-hantro: Rewrite encoder to directly use the Hantro H1 API This allows for more fine grained control of the H1 encoder. Most notably, intra refresh works properly, and skipped frames are correctly handled. * imx8m-hantro: encoder: Add closed GOP interval support * imx8m-hantro: encoder: Rework intra refresh Use codec specific features for intra refresh. For h.264, use the Hantro GDR (Gradual Decoder Refresh) feature, since it also takes care of filling SEI message and SPS/PPS NALUs appropriately. For VP8, implement a manual method. (Intra refresh is not officially supported in VP8 though. See the note about VP8 intra refresh in the comment blocks in this commit.) * imx6-coda: return IMX_VPU_API_ENC_RETURN_CODE_INVALID_CALL from imx_vpu_api_enc_get_skipped_frame_info() This keeps the imx6 backend consistent with the API. Previously, that backend's implementation of that function was not returning anything at all. * imx8m-hantro: implement imx_vpu_api_enc_get_skipped_frame_info() stubs for all encoders Implement this function for all encoders to fix a linker error in gstreamer-imx. These encoders never return IMX_VPU_API_ENC_OUTPUT_CODE_FRAME_SKIPPED, so we always return IMX_VPU_API_ENC_RETURN_CODE_INVALID_CALL from imx_vpu_api_enc_get_skipped_frame_info(). * imx8m-hantro: dummy_encoder: add imx_vpu_api_enc_get_encoded_frame_ext() Linking gstreamer-imx will fail if imx_vpu_api_enc_get_encoded_frame_ext) is not available. Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org> (cherry picked from commit 71bef353dc461541f2a554e8cbed42d026718488)
* Merge pull request #2137 from hiagofranco/forward-port-symlinksOtavio Salvador2025-02-181-3/+6
|\ | | | | Forward ports to Scarthgap
| * firmware-nxp-wifi: remove COMPATIBLE_MACHINEHiago De Franco2025-02-181-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current COMPATIBLE_MACHINE is set to build every i.MX SoC with both BSP variants. However the firmware-nxp-wifi deploys firmware related to the NXP Wi-Fi Modules (e.g. Maya IW416), which can be used with other SoCs as well, as example the Toradex Verdin-AM62 wich uses the TI SoC and the NXP Wi-Fi Module. With the current COMPATIBLE_MACHINE it is not possible to build this recipe and deploy the NXP firmware with different SoCs, therefore remove it. Signed-off-by: Hiago De Franco <hiago.franco@toradex.com> (cherry picked from commit 8e7ebc096b009b40f9dc71546af25fbeee380770)
| * firmware-nxp-wifi: create symbolic links to firmware/mrvl folderHiago De Franco2025-02-181-1/+6
|/ | | | | | | | | | | | | | | The upstream kernel Wi-Fi driver expects the sdiouart8997_combo_v4 and sdiouartiw416_combo_v0 binaries to be located under firmware/mrvl [1], different from the out-of-tree driver, which places them under firmware/nxp. Create symbolic links to deploy these binaries in the correct location for the upstream driver. Due to this change, bump the recipe version to 1.1. [1] https://github.com/torvalds/linux/blob/master/drivers/net/wireless/marvell/mwifiex/sdio.h#L31 Signed-off-by: Hiago De Franco <hiago.franco@toradex.com> (cherry picked from commit deebc27a3abb88964a05aea794ffd9e86e0fd0bb)
* Merge pull request #2132 from SteinHeselmans/scarthgapOtavio Salvador2025-02-181-1/+1
|\ | | | | qe-ucode: replace NXP-Binary-EULA with LICENSE to calculate checksum (cherry-picked from master)
| * qe-ucode: replace NXP-Binary-EULA with LICENSE to calculate checksumMeng Li2025-02-181-1/+1
|/ | | | | | | | | According to the commit c89d7843943f("Move License File from NXP-Binary-EULA to LICENSE") of repo https://github.com/nxp-qoriq/qoriq-qe-ucode. NXP-Binary-EULA is renamed to LICENSE, so replace NXP-Binary-EULA with LICENSE in recipe file. Signed-off-by: Meng Li <Meng.Li@windriver.com>
* Merge pull request #2130 from Freescale/backport-2129-to-scarthgapOtavio Salvador2025-02-171-2/+2
|\ | | | | [Backport scarthgap] u-boot-imx: Bump to 6.6.52-2.2.0
| * u-boot-imx: Bump to 6.6.52-2.2.0Daiane Angolini2025-02-171-2/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Relevant changes: - 6c4545203d1 LF-13928 update key for capsule - a6fbbc4830b LF-13892 imx8mp_evk: Fix kernel boot failure with DDR ECC enabled - b2f3a82bb62 LFU-815 imx91: Update iMX9101 PN support to latest config - dd06e11a237 LFU-813-3 imx95_15x15_evk: Turn on PCA9632 LED for LVDS backlight - 3215ce8075b LFU-813-2 imx95_19x19_evk: Enable backlight for LVDS - 063caa4957a LFU-813-1 gpio: adp5585: Reset alternate function pins to GPIO - ca6436fb7e4 LFU-812 arm: dts: imx95: Assign PLL VCO as the parent of PLL - 0688aa50da0 MA-23021 secretkeeper: return earlier if not initialized - 0ee139a17eb MA-23003-2 android: populate the SecretKeeper identity - e3b6dacd0ef MA-23003-1 trusty: add SecretKeeper client - f63ddd9cb11 LFU-808-3 power: regulator: correct the LDO_SNVS name - 5726a995b80 LFU-808-2 arm: dts: change LDO_SNVS voltage range - 69d949bcd3e LFU-808-1 power: regulator: change LDO_SNVS voltage range - b6d4dc9f627 LF-13712 video: nxp: imx_lcdifv3: Fix incorrect DISP_PARA register configuration - 5f50707d7bb LFU-788 imx95_evk: Modify the size of memory visible to the kernel - 86be8aa9268 LFU-807 imx: set enable_virt_at_load as false - 94619f027ce LFU-805-7 verdin-imx95: Enable aqr-stby regulator - 87f2e20bcb6 LFU-805-6 imx95_evk: Enable netc stby regulators - 331d8ae9a43 LFU-805-5 arm: dts: imx95-19x19-verdin: Update enet1 and enet2 ports - adf6ecb292f LFU-805-4 arm: dts: imx95-19x19-evk: Enable enet2 10Gbps port - d04db3691af LFU-805-3 net: fsl_enetc: Add iMX95 enetc4 10Gbps port support - 435f01c56e7 LFU-805-2 net: fsl_enetc_mdio: Add phy-supply property support - b42dd7d9bf5 LFU-805-1 net: phy: aquantia: Increase timeout for out of reset - 8461bbe8afa LFU-806 arm: dts: imx91: Update MEDIA_AXI clock to 333Mhz - 18fbed49e2a LFU-804 mmc: fsl_esdhc_imx: Add workaround for errata ERR052357 - 4e4af7348e4 LFU-803-2 imx93_qsb: Switch to Tianma LCD panel - fbc21190687 LFU-803-1 arm: dts: imx93_qsb: Add Tianma LCD panel DTS - caa18774855 LFU-802 imx95: verdin: correct xen bootargs - ba33b30784d LF-10293 imx8dxl_ddr3l_evk: Update default mtest range - 713768fb3fb LFU-801 mtd: spi: mt35xu01g: Disable erase chip command - 726021e921f LFU-796 imx91: Update iMX91 NIC clock to 250Mhz for low drive mode - b3931582f67 LFU-800 ls1012afrdm: Fix wrong pointer cast used - d601605d90a LFU-799 imx93_qsb: Fix build warning - f296640286b LFU-790 imx8mp_evk: Modify the size of memory visible to the kernel - ef5968f9050 MA-22915 Move ele buffer address to avoid Kernel image be overwrite - 357a0faeb4f LFU-789 mtd: spi-nor: Fix chip erase timeout issue - b9742cd668a LFU-793 imx95: Remove regions that AP does not have access from the memory map. - e172c32c4c9 LFU-792 firmware: scmi: Fix SCMI_SENSOR_CONFIG_SET return parameter - ae178324467 LFU-786-3: arm: dts: ls1088a-rdb: add bootph-all property - 2b22a9f8595 LFU-786-2: board: freescale: ls1088a: check rtc chip and adjust the rtc node - 69b7bfc391d LFU-786-1: configs: enable rtc pcf2131 - 161cb647c41 LFU-791 imx93_evk: enable XRST_STBY_EN function - 33f5fc8ab17 LFU-784: imx8: fdt: fix fdt edma nodes check - d1c05b18dd9 LFU-795 net: fec_mxc: correct fec clk Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io> (cherry picked from commit d8ce1e264c33c80e7d977d20453fe647b8a6d960)
* Merge pull request #2125 from Freescale/backport-2124-to-scarthgapOtavio Salvador2025-02-121-1/+1
|\ | | | | [Backport scarthgap] imx-imx-boot-bootpart.wks.in: Set fixed size for /boot partition
| * imx-imx-boot-bootpart.wks.in: Set fixed size for /boot partitionJonathan GUILLOT2025-02-121-1/+1
|/ | | | | | | | | | | | | | | | | Using --size in the imx-imx-boot-bootpart.wks.in to set size of /boot partition does not result in a 256MiB partition as expected but in a ~332MiB one. Indeed, --size ensures --extra-space (default 10MiB) is added to actual data size and furthermore applies --overhead-factor (default 1.3) to the wanted size. This is exactly the case here as 256 * 1.3 = 332.8. Use --fixed-size instead to force the /boot partition to be exactly 256MiB just as it is indicated in the comments of this file. Consequently, the `do_image_wic` task will also fail if data copied in this partition are too large at creation. Signed-off-by: Jonathan GUILLOT <jonathan@joggee.fr> (cherry picked from commit 0ee7c736c7e07ce353e7f25ff514e9c459448103)
* Merge pull request #2122 from Freescale/backport-2121-to-scarthgapOtavio Salvador2025-02-111-3/+3
|\ | | | | [Backport scarthgap] imx-secure-enclave: Bump to lf-6.6.52_2.2.0
| * imx-secure-enclave: Bump to lf-6.6.52_2.2.0Daiane Angolini2025-02-111-3/+3
|/ | | | | Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io> (cherry picked from commit 2847cd04c8b55fc9628589e0156c9eaabba41c2d)
* Merge pull request #2119 from Freescale/backport-2116-to-scarthgapOtavio Salvador2025-02-101-2/+5
|\ | | | | [Backport scarthgap] linux-fslc: 6.12.6 -> 6.12.13
| * linux-fslc: Add changelog linkBenjamin Szőke2025-02-101-0/+3
| | | | | | | | (cherry picked from commit 3c88728d5b65f4f07cff65ed5da2ea31ca9f3fdd)
| * linux-fslc: 6.12.6 -> 6.12.13Benjamin Szőke2025-02-101-2/+2
|/ | | | (cherry picked from commit 45b6540415fdab5ffe10543f85e0c2693395bc32)
* Merge pull request #2112 from Freescale/backport-2111-to-scarthgapOtavio Salvador2025-02-051-4/+1
|\ | | | | [Backport scarthgap] imx-gpu-viv: Add missing PROVIDES virtual/libgles3
| * imx-gpu-viv: Add missing PROVIDES virtual/libgles3Tom Hochstein2025-02-051-4/+1
|/ | | | | | | The recipe is missing PROVIDES virtual/libgles3 for i.MX 6 and 7 GPU. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit ed203f9d540860901caeb7d48c38c0dd0edb84d7)
* Merge pull request #2108 from Freescale/backport-2107-to-scarthgapOtavio Salvador2025-02-031-1/+13
|\ | | | | [Backport scarthgap] linux-fslc-imx: Forward port patches into 6.6-2.2.x
| * linux-fslc-imx: Forward port patches into 6.6-2.2.xErnest Van Hoecke2025-02-031-1/+13
|/ | | | | | | | Port some patches from 6.6-2.1.x to 6.6-2.2.x and update the recipe documentation to include them. Signed-off-by: Ernest Van Hoecke <ernest.vanhoecke@toradex.com> (cherry picked from commit b50af8befaa566c4d866b795e425dd1dbd8db0d2)
* Merge pull request #2105 from Freescale/backport-2104-to-scarthgapOtavio Salvador2025-01-311-0/+1
|\ | | | | [Backport scarthgap] Set default UBOOT_ENTRYPOINT for mx93-generic-bsp
| * Set default UBOOT_ENTRYPOINT for mx93-generic-bspJonathan GUILLOT2025-01-311-0/+1
|/ | | | | | | | | It allows a correct kernel load address when using FIT image with i.MX93. The value 0x80400000 has been retrieved from imx93_11x11_evk_defconfig in uboot-imx. Signed-off-by: Jonathan GUILLOT <jonathan@joggee.fr> (cherry picked from commit 128523217561d9090902f6bcd90566c6fa103ad7)
* Merge pull request #2102 from Freescale/backport-2101-to-scarthgapOtavio Salvador2025-01-301-5/+6
|\ | | | | [Backport scarthgap] linux-fslc-imx: Update 6.6-2.2.x to stable v6.6.74
| * linux-fslc-imx: Update 6.6-2.2.x to stable v6.6.74Ernest Van Hoecke2025-01-301-5/+6
|/ | | | | | | Move to stable kernel version 6.6.74 and fix the NXP tag. Signed-off-by: Ernest Van Hoecke <ernest.vanhoecke@toradex.com> (cherry picked from commit d31e3c3234430fd457910554fbe1f6c490677ff6)
* Merge pull request #2098 from Freescale/backport-2097-to-scarthgapOtavio Salvador2025-01-301-1/+1
|\ | | | | [Backport scarthgap] firmware-upower: SRC_URI uses PN not BPN
| * firmware-upower: SRC_URI uses PN not BPNSamuli Piippo2025-01-301-1/+1
|/ | | | | | | Fix src-uri-bad QA error. Signed-off-by: Samuli Piippo <samuli.piippo@qt.io> (cherry picked from commit 980419236f0bfb0bc1861f9c8ba9f740a83c1fa2)
* Merge pull request #2095 from Freescale/backport-2094-to-scarthgapOtavio Salvador2025-01-304-35/+5
|\ | | | | [Backport scarthgap] Fix dtb changes for 6.6.52_2.0.0
| * conf/machine: Update dtb list for 6.6.52_2.0.0Tom Hochstein2025-01-302-0/+2
| | | | | | | | | | | | | | Fixes: #2093 Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit a8b9c17eba8ccb972227f794f59868efb5c47374)
| * Revert "conf/machine: Update dtb list for 6.6.52_2.0.0"Tom Hochstein2025-01-306-37/+5
|/ | | | | | | | | | Revert commit that pulled in changes from a later branch. Fixes: #2093 This reverts commit c1857d834eb1037dd5db3642cf2c1a2e5d482851. (cherry picked from commit 0302b9ffc77c94bf5fe1323706344c8c9b5c3cd1)
* Merge pull request #2091 from Freescale/backport-2079-to-scarthgapOtavio Salvador2025-01-291-1/+1
|\ | | | | [Backport scarthgap] firmware-ele-imx: Use generic-bsp compatible
| * firmware-ele-imx: Use generic-bsp compatibleAlexander Stein2025-01-291-1/+1
| | | | | | | | | | Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> (cherry picked from commit a790076164115e65686c3eff973217874a39b2ec)
* | Merge pull request #2076 from Freescale/backport-2068-to-scarthgapOtavio Salvador2025-01-2915-90/+75
|\ \ | |/ |/| [Backport scarthgap] Add imxviv and imxmali overrides & upgrade to LF6.6.52_2.2.0
| * libsdl2: Upgrade Graphics BSP to LF6.6.52_2.2.0backport-2068-to-scarthgapValentin Jec2025-01-211-0/+3
| | | | | | | | | | | | | | Add libdecor to PACKAGECONFIG for imx platforms Signed-off-by: Valentin Jec <valentin.jec@nxp.com> (cherry picked from commit edcb89a9955b4f7211b7e8d2fac1680a4d337bfe)
| * mali-imx: Upgrade Graphics BSP to LF6.6.52_2.2.0Valentin Jec2025-01-211-3/+3
| | | | | | | | | | | | | | Bump version r50.0 -> r50.2 Signed-off-by: Valentin Jec <valentin.jec@nxp.com> (cherry picked from commit e28b8ed58d0c505ed2b5a7d4d901dfa1b4ab1e26)
| * weston: Upgrade Graphics BSP to LF6.6.52_2.2.0Valentin Jec2025-01-212-2/+2
| | | | | | | | | | | | | | Update checksum to latest Signed-off-by: Valentin Jec <valentin.jec@nxp.com> (cherry picked from commit b1036242432afd652964e1f49565e52a24e9510e)
| * xwayland*: Upgrade Graphics BSP to LF6.6.52_2.2.0Valentin Jec2025-01-213-7/+5
| | | | | | | | | | | | | | Bump xwayland version 23.1.1.imx -> 23.2.5.imx Signed-off-by: Valentin Jec <valentin.jec@nxp.com> (cherry picked from commit 49ab2beac7813e6e853da19cd386524ade05f440)
| * imx-gpu-viv*: Upgrade Graphics BSP to LF6.6.52_2.2.0Valentin Jec2025-01-213-7/+7
| | | | | | | | | | | | | | | | | | Bump imx-gpu-viv version 6.4.11.p2.8 -> 6.4.11.p2.10 Bump LIBVULKAN_API_VERSION 1.3.239 -> 1.3.204 Signed-off-by: Valentin Jec <valentin.jec@nxp.com> (cherry picked from commit 619fecdd461d05de71330d0bcd8571ef441b426b)
| * imx-g2d*: Upgrade Graphics BSP to LF6.6.52_2.2.0Valentin Jec2025-01-212-7/+7
| | | | | | | | | | | | | | | | | | Bump imx-dpu-g2d version 2.2.0 -> 2.2.2 Bump imx-gpu-g2d version 6.4.11.p2.8 -> 6.4.11.p2.10 Signed-off-by: Valentin Jec <valentin.jec@nxp.com> (cherry picked from commit 0b15cdb139c08825de7a2559292b653f55828e62)
| * imx-gst1.0-plugin: Simplify imx-opencl-converter dependencyTom Hochstein2025-01-211-3/+3
| | | | | | | | | | | | | | | | Since imx-opencl-converter is supported going forward, the logic is simpler if that is the default and only the exceptions must be noted. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit bb7ca61eb399fc9ecc5189ddef162970297ece35)
| * vulkan-loader: Use imxviv and imxmali overridesTom Hochstein2025-01-211-3/+2
| | | | | | | | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit e29f4d51150e8f0906eecc177dd66d62b3c70d59)
| * imx-gpu-apitrace: Use imxviv overrideTom Hochstein2025-01-211-4/+2
| | | | | | | | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit a20bb97155edc41401f09d6b25955f727eb751ef)
| * imx-gpu-apitrace: Simplify package config logicTom Hochstein2025-01-211-10/+6
| | | | | | | | | | | | | | There's no need for the SOC-specific overrides. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit fcf874bb22eb4a815b3c75fbff46ae30b6de45b3)
| * imx-dpu-g2d: Use imxviv and imxmali overridesTom Hochstein2025-01-211-4/+4
| | | | | | | | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit b92810f60fe54e188a2653d3091bc7c81a979ae2)
| * imx-base.inc: Add imxviv and imxmali overridesTom Hochstein2025-01-211-36/+32
| | | | | | | | | | | | | | | | | | The recipe overrides for Mali are set currently by mx95 override. Add imxmali and imxviv overrides for a simpler, scalable model. Use the new model to set the preferred providers for the graphics libraries. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 7afa05781cb210bcf56b2228f2609c103badb822)
| * imx-base.inc: Drop redundant mesa settingTom Hochstein2025-01-211-6/+1
| | | | | | | | | | | | | | | | | | The default graphics provider is already set to mesa in poky/meta/conf/distro/include/default-providers.inc, which is included by bitbake.conf. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit c459a9974bce18aeaa159d9b4f65bcb7757a6e84)
* | Merge pull request #2088 from Freescale/backport-2081-to-scarthgapOtavio Salvador2025-01-292-0/+8
|\ \ | | | | | | [Backport scarthgap] Basic i.MX91 platform support
| * | use-imx-security-controller-firmware: Add i.MX 91 configurationAlexander Stein2025-01-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Add the SECO FW file name for i.MX 91. It is based on imx-6.6.52_2.2.0 NXP BSP release. Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> (cherry picked from commit f79a6de90e7d492622a3870cef529337e54f6b9e)
| * | imx-base: Add i.MX 91 configurationAlexander Stein2025-01-291-0/+7
|/ / | | | | | | | | | | | | It is based on imx-6.6.52_2.2.0 NXP BSP release. Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> (cherry picked from commit 96b9e1da101979dc90c97eadfbbe40ba304cd15f)
* | Merge pull request #2083 from MaxKrummenacher/scarthgapOtavio Salvador2025-01-274-150/+88
|\ \ | |/ |/| isp-imx update: Backport to Scarthgap