Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb99b6c3 authored by ivanmeler's avatar ivanmeler
Browse files

Import N950FXXSGDUG7 kernel source + dreamlte dt

parent e40c80d9
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -283,6 +283,13 @@
				700 42875 4217 4187 90
				1000 42375 4167 4137 89>;

		battery,health_condition = <
			/* CYCLE ASOC */
			1200 75	/* GOOD */
			1500 65 /* NORMAL */
			1700 55 /* AGED */
			>;

		battery,max_input_voltage = <12000>; /* mV */
		battery,max_input_current = <3000>;  /* mA */

@@ -322,6 +329,11 @@
		fuelgauge,qrtable30 = <0x0D00>;
		fuelgauge,fg_resistor = <2>;
		fuelgauge,capacity = <0x0C45>;
		fuelgauge,rcomp0 = <0x001A>;
		fuelgauge,tempco = <0x0B10>;
		fuelgauge,dPacc = <0x3200>;
		fuelgauge,dQacc = <0x05CB>;
		fuelgauge,fullcapnom = <0x172E>;
		/*fuelgauge,auto_discharge_en;*/
		fuelgauge,discharge_temp_threshold = <600>;
		fuelgauge,discharge_volt_threshold = <4200>;
+8 −0
Original line number Diff line number Diff line
@@ -206,6 +206,7 @@
		battery,sleep_mode_limit_current = <500>;
		battery,wc_full_input_limit_current = <100>;
		battery,wc_cv_current = <820>;
		battery,wc_cv_tx_current = <650>;
		battery,wc_cv_pack_current = <630>;

		battery,mix_high_temp = <420>;
@@ -277,6 +278,13 @@
				700 42875 4217 4187 90
				1000 42375 4167 4137 89>;

		battery,health_condition = <
			/* CYCLE ASOC */
			1200 75	/* GOOD */
			1500 65 /* NORMAL */
			1700 55 /* AGED */
			>;

		battery,max_input_voltage = <12000>; /* mV */
		battery,max_input_current = <3000>;  /* mA */

+1 −1
Original line number Diff line number Diff line
@@ -1293,7 +1293,7 @@
				0 2 2 0 /* IN1 */
				2 2 0 0 /* IN2 */
			>;
			cirrus,out-mono = <0 0 0 1 0 0>;
			cirrus,out-mono = <0 0 1 1 0 0>;
			cirrus,auxpdm-falling-edge;

			cirrus,gpio-defaults = <
+1 −1
Original line number Diff line number Diff line
@@ -1213,7 +1213,7 @@
				0 2 2 0 /* IN1 */
				2 2 0 0 /* IN2 */
			>;
			cirrus,out-mono = <0 0 0 1 0 0>;
			cirrus,out-mono = <0 0 1 1 0 0>;
			cirrus,auxpdm-falling-edge;

			cirrus,gpio-defaults = <
+9 −9
Original line number Diff line number Diff line
@@ -1164,7 +1164,9 @@ int kbase_gpu_mmap(struct kbase_context *kctx, struct kbase_va_region *reg, u64
				if (err)
					goto bad_insert;

				kbase_mem_phy_alloc_gpu_mapped(alloc->imported.alias.aliased[i].alloc);
				/* Note: mapping count is tracked at alias
				 * creation time
				 */
			} else {
				err = kbase_mmu_insert_single_page(kctx,
					reg->start_pfn + i * stride,
@@ -1204,7 +1206,6 @@ bad_insert:
					reg->start_pfn + (i * stride),
					reg->gpu_alloc->imported.alias.aliased[i].length,
					kctx->as_nr);
				kbase_mem_phy_alloc_gpu_unmapped(reg->gpu_alloc->imported.alias.aliased[i].alloc);
			}
	}

@@ -1226,14 +1227,11 @@ int kbase_gpu_munmap(struct kbase_context *kctx, struct kbase_va_region *reg)
		return 0;

	if (reg->gpu_alloc && reg->gpu_alloc->type == KBASE_MEM_TYPE_ALIAS) {
		size_t i;

		err = kbase_mmu_teardown_pages(kctx->kbdev, &kctx->mmu,
				reg->start_pfn, reg->nr_pages, kctx->as_nr);
		KBASE_DEBUG_ASSERT(reg->gpu_alloc->imported.alias.aliased);
		for (i = 0; i < reg->gpu_alloc->imported.alias.nents; i++)
			if (reg->gpu_alloc->imported.alias.aliased[i].alloc)
				kbase_mem_phy_alloc_gpu_unmapped(reg->gpu_alloc->imported.alias.aliased[i].alloc);
		/* We mark the source allocs as unmapped from the GPU when
		 * putting reg's allocs
		 */
	} else if (reg->gpu_alloc) {
		err = kbase_mmu_teardown_pages(kctx->kbdev, &kctx->mmu,
			reg->start_pfn, kbase_reg_current_backed_size(reg),
@@ -2368,8 +2366,10 @@ void kbase_mem_kref_free(struct kref *kref)
		aliased = alloc->imported.alias.aliased;
		if (aliased) {
			for (i = 0; i < alloc->imported.alias.nents; i++)
				if (aliased[i].alloc)
				if (aliased[i].alloc) {
					kbase_mem_phy_alloc_gpu_unmapped(aliased[i].alloc);
					kbase_mem_phy_alloc_put(aliased[i].alloc);
				}
			vfree(aliased);
		}
		break;
Loading