From 71e0c4a18061d68a9ed98e431c6151032ea88a12 Mon Sep 17 00:00:00 2001 From: ThomasKaiser Date: Sun, 20 Mar 2016 13:54:56 +0100 Subject: [PATCH] Adopted Armbian fixes to Beelink X2 fex file --- config/beelinkx2.fex | 207 ++++++++++++------------------------------- 1 file changed, 58 insertions(+), 149 deletions(-) diff --git a/config/beelinkx2.fex b/config/beelinkx2.fex index 84fef5cf5e..dd9a6a2ede 100644 --- a/config/beelinkx2.fex +++ b/config/beelinkx2.fex @@ -1,6 +1,6 @@ [product] version = "100" -machine = "eagle_p1" +machine = "beelink-x2" [platform] eraseflag = 1 @@ -87,7 +87,7 @@ used = 1 gpio0 = port:power0<1><1> [recovery_para] -used = 0 +used = 1 mode = 2 recovery_key = port:PL09<0> @@ -292,11 +292,13 @@ spi_regulator = "vcc-io" spi_dev_num = 0 [spi_board0] -modalias = "m25p32" +modalias = "spidev" max_speed_hz = 33000000 bus_num = 0 chip_select = 0 mode = 0 +full_duplex = 1 +manual_cs = 0 [gpio_para] gpio_used = 1 @@ -376,14 +378,13 @@ motor_ldo_voltage = 3300 [ths_para] ths_used = 1 -ths_trend = 0 ths_trip1_count = 6 -ths_trip1_0 = 50 -ths_trip1_1 = 60 -ths_trip1_2 = 70 -ths_trip1_3 = 85 +ths_trip1_0 = 70 +ths_trip1_1 = 80 +ths_trip1_2 = 85 +ths_trip1_3 = 90 ths_trip1_4 = 95 -ths_trip1_5 = 105 +ths_trip1_5 = 100 ths_trip1_6 = 0 ths_trip1_7 = 0 ths_trip1_0_min = 0 @@ -393,26 +394,22 @@ ths_trip1_1_max = 2 ths_trip1_2_min = 2 ths_trip1_2_max = 3 ths_trip1_3_min = 3 -ths_trip1_3_max = 5 -ths_trip1_4_min = 5 -ths_trip1_4_max = 7 -ths_trip1_5_min = 7 -ths_trip1_5_max = 7 +ths_trip1_3_max = 4 +ths_trip1_4_min = 4 +ths_trip1_4_max = 5 +ths_trip1_5_min = 5 +ths_trip1_5_max = 5 ths_trip1_6_min = 0 ths_trip1_6_max = 0 ths_trip2_count = 1 ths_trip2_0 = 105 [cooler_table] -cooler_count = 8 -cooler0 = "2016000 4 2016000 4" -cooler1 = "1800000 4 1800000 4" -cooler2 = "1608000 4 1608000 4" -cooler3 = "1200000 4 1200000 4" -cooler4 = "1200000 4 1200000 2" -cooler5 = "1200000 4 4294967295 0" -cooler6 = "1200000 2 4294967295 0 1" -cooler7 = "1200000 1 4294967295 0 1" +cooler_count = 4 +cooler0 = "1200000 4 4294967295 0" +cooler1 = "1008000 4 4294967295 0" +cooler2 = "816000 4 4294967295 0" +cooler3 = "648000 1 4294967295 0" [nand0_para] nand_support_2ch = 0 @@ -473,9 +470,9 @@ hdmi_mode_check = 1 disp_init_enable = 1 disp_mode = 0 screen0_output_type = 3 -screen0_output_mode = 10 +screen0_output_mode = 5 screen1_output_type = 3 -screen1_output_mode = 4 +screen1_output_mode = 5 fb0_format = 0 fb0_width = 0 fb0_height = 0 @@ -726,7 +723,7 @@ smc_sda = [usbc0] usb_used = 1 usb_port_type = 2 -usb_detect_type = 1 +usb_detect_type = 0 usb_id_gpio = port:PH11<0><1> usb_det_vbus_gpio = "axp_ctrl" usb_drv_vbus_gpio = port:power4<1><0><0> @@ -1145,130 +1142,42 @@ regulator21 = "axp81x_gpio0ldo none status-led1" regulator22 = "axp81x_gpio1ldo none status-led2" regulator23 = "axp81x_dc1sw 1 vcc-wifi-33 vcc-wifi-io" +;---------------------------------------------------------------------------------- +; dvfs voltage-frequency table configuration +; +; pmuic_type:0:none, 1:gpio, 2:i2c +; pmu_gpio0: gpio config. +; pmu_levelx: 0~9999: voltage(mV), 10000~90000:gpio0 state. voltage form high to low. +; +; extremity_freq(Hz): cpu extremity frequency when run benckmark or demo apk +; 1536MHz@1500mV with radiator, 1296MHz@1340mV without radiator +; max_freq: cpu maximum frequency, based on Hz, can not be more than 1200MHz +; min_freq: cpu minimum frequency, based on Hz, can not be less than 60MHz +; +; LV_count: count of LV_freq/LV_volt, must be < 16 +; +; LV1: core vdd is 1.50v if cpu frequency is (1296Mhz, 1536Mhz] +; LV2: core vdd is 1.34v if cpu frequency is (1200Mhz, 1296Mhz] +; LV3: core vdd is 1.32v if cpu frequency is (1008Mhz, 1200Mhz] +; LV4: core vdd is 1.20v if cpu frequency is (816Mhz, 1008Mhz] +; LV5: core vdd is 1.10v if cpu frequency is (648Mhz, 816Mhz] +; LV6: core vdd is 1.04v if cpu frequency is (0Mhz, 648Mhz] +; LV7: core vdd is 1.04v if cpu frequency is (0Mhz, 648Mhz] +; LV8: core vdd is 1.04v if cpu frequency is (0Mhz, 648Mhz] +; +;---------------------------------------------------------------------------------- [dvfs_table] -vf_table_count = 3 - -[vf_table0] -L_max_freq = 2016000000 -L_boot_freq = 1800000000 -L_min_freq = 480000000 -L_LV_count = 8 -L_LV1_freq = 2016000000 -L_LV1_volt = 1080 -L_LV2_freq = 1800000000 -L_LV2_volt = 1000 -L_LV3_freq = 1608000000 -L_LV3_volt = 920 -L_LV4_freq = 1200000000 -L_LV4_volt = 840 -L_LV5_freq = 0 -L_LV5_volt = 840 -L_LV6_freq = 0 -L_LV6_volt = 840 -L_LV7_freq = 0 -L_LV7_volt = 840 -L_LV8_freq = 0 -L_LV8_volt = 840 -B_max_freq = 2016000000 -B_boot_freq = 1800000000 -B_min_freq = 480000000 -B_LV_count = 8 -B_LV1_freq = 2016000000 -B_LV1_volt = 1080 -B_LV2_freq = 1800000000 -B_LV2_volt = 1000 -B_LV3_freq = 1608000000 -B_LV3_volt = 920 -B_LV4_freq = 1200000000 -B_LV4_volt = 840 -B_LV5_freq = 0 -B_LV5_volt = 840 -B_LV6_freq = 0 -B_LV6_volt = 840 -B_LV7_freq = 0 -B_LV7_volt = 840 -B_LV8_freq = 0 -B_LV8_volt = 840 - -[vf_table1] -L_max_freq = 1800000000 -L_min_freq = 480000000 -L_LV_count = 8 -L_LV1_freq = 1800000000 -L_LV1_volt = 1080 -L_LV2_freq = 1608000000 -L_LV2_volt = 1000 -L_LV3_freq = 1412000000 -L_LV3_volt = 920 -L_LV4_freq = 1008000000 -L_LV4_volt = 840 -L_LV5_freq = 0 -L_LV5_volt = 840 -L_LV6_freq = 0 -L_LV6_volt = 840 -L_LV7_freq = 0 -L_LV7_volt = 840 -L_LV8_freq = 0 -L_LV8_volt = 840 -B_max_freq = 1800000000 -B_min_freq = 480000000 -B_LV_count = 8 -B_LV1_freq = 1800000000 -B_LV1_volt = 1080 -B_LV2_freq = 1608000000 -B_LV2_volt = 1000 -B_LV3_freq = 1412000000 -B_LV3_volt = 920 -B_LV4_freq = 1008000000 -B_LV4_volt = 840 -B_LV5_freq = 0 -B_LV5_volt = 840 -B_LV6_freq = 0 -B_LV6_volt = 840 -B_LV7_freq = 0 -B_LV7_volt = 840 -B_LV8_freq = 0 -B_LV8_volt = 840 - -[vf_table2] -L_max_freq = -2086967296 -L_min_freq = 480000000 -L_LV_count = 8 -L_LV1_freq = -2086967296 -L_LV1_volt = 1080 -L_LV2_freq = 2016000000 -L_LV2_volt = 1000 -L_LV3_freq = 1800000000 -L_LV3_volt = 920 -L_LV4_freq = 1368000000 -L_LV4_volt = 840 -L_LV5_freq = 0 -L_LV5_volt = 840 -L_LV6_freq = 0 -L_LV6_volt = 840 -L_LV7_freq = 0 -L_LV7_volt = 840 -L_LV8_freq = 0 -L_LV8_volt = 840 -B_max_freq = -2086967296 -B_min_freq = 480000000 -B_LV_count = 8 -B_LV1_freq = -2086967296 -B_LV1_volt = 1080 -B_LV2_freq = 2016000000 -B_LV2_volt = 1000 -B_LV3_freq = 1800000000 -B_LV3_volt = 920 -B_LV4_freq = 1368000000 -B_LV4_volt = 840 -B_LV5_freq = 0 -B_LV5_volt = 840 -B_LV6_freq = 0 -B_LV6_volt = 840 -B_LV7_freq = 0 -B_LV7_volt = 840 -B_LV8_freq = 0 -B_LV8_volt = 840 +pmuic_type = 0 +pmu_gpio0 = port:PL06<1><1><2><1> +pmu_level0 = 11300 +pmu_level1 = 1100 +max_freq = 1200000000 +min_freq = 648000000 +LV_count = 2 +LV1_freq = 1200000000 +LV1_volt = 1300 +LV2_freq = 648000000 +LV2_volt = 1100 [gpu_dvfs_table] G_normal_level = 4