From 7d7c631066591e900cfbf96e2485fcfc514b02bd Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Sun, 13 Aug 2017 12:51:27 +0200 Subject: mb/lenovo/*/devicetree: Add support for WWAN detection Add support for WWAN detection on SNB/IVB boards that have schematics or are available for testing. Tested on Lenovo T430. Change-Id: Ie96b2593971d49703eb747ab19f512be890d9c12 Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/20984 Reviewed-by: Felix Held Tested-by: build bot (Jenkins) --- src/mainboard/lenovo/t430/devicetree.cb | 4 ++++ src/mainboard/lenovo/t520/variants/t520/devicetree.cb | 4 ++++ src/mainboard/lenovo/t530/variants/t530/devicetree.cb | 4 ++++ src/mainboard/lenovo/x1_carbon_gen1/devicetree.cb | 4 ++++ src/mainboard/lenovo/x220/devicetree.cb | 4 ++++ src/mainboard/lenovo/x230/devicetree.cb | 4 ++++ 6 files changed, 24 insertions(+) (limited to 'src/mainboard') diff --git a/src/mainboard/lenovo/t430/devicetree.cb b/src/mainboard/lenovo/t430/devicetree.cb index 666e3ec95f..d466b368ef 100644 --- a/src/mainboard/lenovo/t430/devicetree.cb +++ b/src/mainboard/lenovo/t430/devicetree.cb @@ -150,6 +150,10 @@ chip northbridge/intel/sandybridge register "has_bdc_detection" = "1" register "bdc_gpio_num" = "54" register "bdc_gpio_lvl" = "0" + + register "has_wwan_detection" = "1" + register "wwan_gpio_num" = "70" + register "wwan_gpio_lvl" = "0" end chip drivers/lenovo/hybrid_graphics device pnp ff.f on end # dummy diff --git a/src/mainboard/lenovo/t520/variants/t520/devicetree.cb b/src/mainboard/lenovo/t520/variants/t520/devicetree.cb index 6decf9bebb..97350f3c27 100644 --- a/src/mainboard/lenovo/t520/variants/t520/devicetree.cb +++ b/src/mainboard/lenovo/t520/variants/t520/devicetree.cb @@ -133,6 +133,10 @@ chip northbridge/intel/sandybridge register "has_bdc_detection" = "1" register "bdc_gpio_num" = "54" register "bdc_gpio_lvl" = "0" + + register "has_wwan_detection" = "1" + register "wwan_gpio_num" = "70" + register "wwan_gpio_lvl" = "0" end chip drivers/lenovo/hybrid_graphics device pnp ff.f on end # dummy diff --git a/src/mainboard/lenovo/t530/variants/t530/devicetree.cb b/src/mainboard/lenovo/t530/variants/t530/devicetree.cb index 3103762b0f..0da05e00f3 100644 --- a/src/mainboard/lenovo/t530/variants/t530/devicetree.cb +++ b/src/mainboard/lenovo/t530/variants/t530/devicetree.cb @@ -140,6 +140,10 @@ chip northbridge/intel/sandybridge register "has_bdc_detection" = "1" register "bdc_gpio_num" = "54" register "bdc_gpio_lvl" = "0" + + register "has_wwan_detection" = "1" + register "wwan_gpio_num" = "70" + register "wwan_gpio_lvl" = "0" end chip drivers/lenovo/hybrid_graphics device pnp ff.f on end # dummy diff --git a/src/mainboard/lenovo/x1_carbon_gen1/devicetree.cb b/src/mainboard/lenovo/x1_carbon_gen1/devicetree.cb index 49e5933f5f..cb88a7f728 100644 --- a/src/mainboard/lenovo/x1_carbon_gen1/devicetree.cb +++ b/src/mainboard/lenovo/x1_carbon_gen1/devicetree.cb @@ -159,6 +159,10 @@ chip northbridge/intel/sandybridge register "has_bdc_detection" = "1" register "bdc_gpio_num" = "54" register "bdc_gpio_lvl" = "0" + + register "has_wwan_detection" = "1" + register "wwan_gpio_num" = "70" + register "wwan_gpio_lvl" = "0" end end # LPC bridge device pci 1f.2 on diff --git a/src/mainboard/lenovo/x220/devicetree.cb b/src/mainboard/lenovo/x220/devicetree.cb index a96026601f..969ae3857b 100644 --- a/src/mainboard/lenovo/x220/devicetree.cb +++ b/src/mainboard/lenovo/x220/devicetree.cb @@ -170,6 +170,10 @@ chip northbridge/intel/sandybridge # BDC's connector pin14 is left floating # BDC's connector pin1 is routed to SB GPIO 54 register "has_bdc_detection" = "0" + + register "has_wwan_detection" = "1" + register "wwan_gpio_num" = "70" + register "wwan_gpio_lvl" = "0" end end # LPC bridge device pci 1f.2 on diff --git a/src/mainboard/lenovo/x230/devicetree.cb b/src/mainboard/lenovo/x230/devicetree.cb index 01693c0430..a31be72b16 100644 --- a/src/mainboard/lenovo/x230/devicetree.cb +++ b/src/mainboard/lenovo/x230/devicetree.cb @@ -172,6 +172,10 @@ chip northbridge/intel/sandybridge # BDC's connector pin14 is left floating # BDC's connector pin1 is routed to SB GPIO 54 register "has_bdc_detection" = "0" + + register "has_wwan_detection" = "1" + register "wwan_gpio_num" = "70" + register "wwan_gpio_lvl" = "0" end end # LPC bridge device pci 1f.2 on -- cgit v1.2.3