Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 2 | /* |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 3 | * Copyright (c) 2016-2018 Toradex, Inc. |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <common.h> |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 7 | #include <dm.h> |
Simon Glass | ed38aef | 2020-05-10 11:40:03 -0600 | [diff] [blame] | 8 | #include <env.h> |
Simon Glass | 9758973 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 9 | #include <init.h> |
Simon Glass | 0f2af88 | 2020-05-10 11:40:05 -0600 | [diff] [blame] | 10 | #include <log.h> |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 11 | #include <asm/arch-tegra/ap.h> |
| 12 | #include <asm/gpio.h> |
| 13 | #include <asm/io.h> |
| 14 | #include <asm/arch/gpio.h> |
| 15 | #include <asm/arch/pinmux.h> |
Simon Glass | 9d1f619 | 2019-08-02 09:44:25 -0600 | [diff] [blame] | 16 | #include <env_internal.h> |
Marcel Ziswiler | 61c99fe | 2022-05-21 12:42:46 +0200 | [diff] [blame] | 17 | #include <fdt_support.h> |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 18 | #include <pci_tegra.h> |
Simon Glass | dbd7954 | 2020-05-10 11:40:11 -0600 | [diff] [blame] | 19 | #include <linux/delay.h> |
Simon Glass | bdd5f81 | 2023-09-14 18:21:46 -0600 | [diff] [blame] | 20 | #include <linux/printk.h> |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 21 | #include <power/as3722.h> |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 22 | #include <power/pmic.h> |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 23 | |
| 24 | #include "../common/tdx-common.h" |
| 25 | #include "pinmux-config-apalis-tk1.h" |
| 26 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 27 | #define LAN_DEV_OFF_N TEGRA_GPIO(O, 6) |
| 28 | #define LAN_RESET_N TEGRA_GPIO(S, 2) |
Igor Opaniuk | feb8c0d | 2019-08-01 11:06:32 +0300 | [diff] [blame] | 29 | #define FAN_EN TEGRA_GPIO(DD, 2) |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 30 | #define LAN_WAKE_N TEGRA_GPIO(O, 5) |
| 31 | #ifdef CONFIG_APALIS_TK1_PCIE_EVALBOARD_INIT |
| 32 | #define PEX_PERST_N TEGRA_GPIO(DD, 1) /* Apalis GPIO7 */ |
| 33 | #define RESET_MOCI_CTRL TEGRA_GPIO(U, 4) |
| 34 | #endif /* CONFIG_APALIS_TK1_PCIE_EVALBOARD_INIT */ |
Marcel Ziswiler | 46eb729 | 2019-08-09 13:21:46 +0300 | [diff] [blame] | 35 | #define VCC_USBH TEGRA_GPIO(T, 6) |
| 36 | #define VCC_USBH_V1_0 TEGRA_GPIO(N, 5) |
| 37 | #define VCC_USBO1 TEGRA_GPIO(T, 5) |
| 38 | #define VCC_USBO1_V1_0 TEGRA_GPIO(N, 4) |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 39 | |
| 40 | int arch_misc_init(void) |
| 41 | { |
| 42 | if (readl(NV_PA_BASE_SRAM + NVBOOTINFOTABLE_BOOTTYPE) == |
Marcel Ziswiler | 55fb057 | 2021-08-11 15:12:56 +0200 | [diff] [blame] | 43 | NVBOOTTYPE_RECOVERY) { |
| 44 | printf("USB recovery mode, attempting to boot Toradex Easy " |
| 45 | "Installer\n"); |
| 46 | env_set("bootdelay", "-2"); |
| 47 | env_set("defargs", "pcie_aspm=off user_debug=30"); |
| 48 | env_set("fdt_high", ""); |
| 49 | env_set("initrd_high", ""); |
| 50 | |
| 51 | env_set("setup", "env set setupargs igb_mac=${ethaddr} " |
| 52 | "consoleblank=0 no_console_suspend=1 " |
| 53 | "console=${console},${baudrate}n8 ${memargs}"); |
| 54 | env_set("teziargs", "rootfstype=squashfs root=/dev/ram quiet " |
| 55 | "autoinstall"); |
| 56 | env_set("vidargs", "video=HDMI-A-1:640x480-16@60D"); |
| 57 | env_set("bootcmd", "run setup; env set bootargs ${defargs} " |
| 58 | "${setupargs} ${vidargs} ${teziargs}; bootm 0x80208000" |
| 59 | "#config@${soc}-${fdt_module}-${fdt_board}.dtb"); |
| 60 | } |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 61 | |
Marcel Ziswiler | 46eb729 | 2019-08-09 13:21:46 +0300 | [diff] [blame] | 62 | /* PCB Version Indication: V1.2 and later have GPIO_PV0 wired to GND */ |
| 63 | gpio_request(TEGRA_GPIO(V, 0), "PCB Version Indication"); |
| 64 | gpio_direction_input(TEGRA_GPIO(V, 0)); |
| 65 | if (gpio_get_value(TEGRA_GPIO(V, 0))) { |
| 66 | /* |
| 67 | * if using the default device tree for new V1.2 and later HW, |
| 68 | * use version for older V1.0 and V1.1 HW |
| 69 | */ |
| 70 | char *fdt_env = env_get("fdt_module"); |
| 71 | |
| 72 | if (fdt_env && !strcmp(FDT_MODULE, fdt_env)) { |
| 73 | env_set("fdt_module", FDT_MODULE_V1_0); |
| 74 | printf("patching fdt_module to " FDT_MODULE_V1_0 |
| 75 | " for older V1.0 and V1.1 HW\n"); |
Marcel Ziswiler | 46eb729 | 2019-08-09 13:21:46 +0300 | [diff] [blame] | 76 | } |
| 77 | |
| 78 | /* activate USB power enable GPIOs */ |
| 79 | gpio_request(VCC_USBH_V1_0, "VCC_USBH"); |
| 80 | gpio_direction_output(VCC_USBH_V1_0, 1); |
| 81 | gpio_request(VCC_USBO1_V1_0, "VCC_USBO1"); |
| 82 | gpio_direction_output(VCC_USBO1_V1_0, 1); |
| 83 | } else { |
| 84 | /* activate USB power enable GPIOs */ |
| 85 | gpio_request(VCC_USBH, "VCC_USBH"); |
| 86 | gpio_direction_output(VCC_USBH, 1); |
| 87 | gpio_request(VCC_USBO1, "VCC_USBO1"); |
| 88 | gpio_direction_output(VCC_USBO1, 1); |
| 89 | } |
| 90 | |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 91 | return 0; |
| 92 | } |
| 93 | |
| 94 | int checkboard(void) |
| 95 | { |
| 96 | puts("Model: Toradex Apalis TK1 2GB\n"); |
| 97 | |
Simon Glass | d44a110 | 2023-11-12 19:58:25 -0700 | [diff] [blame] | 98 | return tdx_checkboard(); |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 99 | } |
| 100 | |
| 101 | #if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) |
Masahiro Yamada | f7ed78b | 2020-06-26 15:13:33 +0900 | [diff] [blame] | 102 | int ft_board_setup(void *blob, struct bd_info *bd) |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 103 | { |
Marcel Ziswiler | 61c99fe | 2022-05-21 12:42:46 +0200 | [diff] [blame] | 104 | u8 enetaddr[6]; |
| 105 | |
| 106 | /* MAC addr */ |
| 107 | if (eth_env_get_enetaddr("ethaddr", enetaddr)) { |
| 108 | int err = fdt_find_and_setprop(blob, |
| 109 | "/pcie@1003000/pci@2,0/ethernet@0,0", |
| 110 | "local-mac-address", enetaddr, 6, 0); |
| 111 | |
| 112 | /* Older device trees might have used a different node name */ |
| 113 | if (err < 0) |
| 114 | err = fdt_find_and_setprop(blob, |
| 115 | "/pcie@1003000/pci@2,0/pcie@0", |
| 116 | "local-mac-address", enetaddr, 6, 0); |
| 117 | |
| 118 | if (err >= 0) |
| 119 | puts(" MAC address updated...\n"); |
| 120 | } |
| 121 | |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 122 | return ft_common_board_setup(blob, bd); |
| 123 | } |
| 124 | #endif |
| 125 | |
| 126 | /* |
| 127 | * Routine: pinmux_init |
| 128 | * Description: Do individual peripheral pinmux configs |
| 129 | */ |
| 130 | void pinmux_init(void) |
| 131 | { |
| 132 | pinmux_clear_tristate_input_clamping(); |
| 133 | |
| 134 | gpio_config_table(apalis_tk1_gpio_inits, |
| 135 | ARRAY_SIZE(apalis_tk1_gpio_inits)); |
| 136 | |
| 137 | pinmux_config_pingrp_table(apalis_tk1_pingrps, |
| 138 | ARRAY_SIZE(apalis_tk1_pingrps)); |
| 139 | |
| 140 | pinmux_config_drvgrp_table(apalis_tk1_drvgrps, |
| 141 | ARRAY_SIZE(apalis_tk1_drvgrps)); |
| 142 | } |
| 143 | |
| 144 | #ifdef CONFIG_PCI_TEGRA |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 145 | /* TODO: Convert to driver model */ |
| 146 | static int as3722_sd_enable(struct udevice *pmic, unsigned int sd) |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 147 | { |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 148 | int err; |
| 149 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 150 | if (sd > 6) |
| 151 | return -EINVAL; |
| 152 | |
| 153 | err = pmic_clrsetbits(pmic, AS3722_SD_CONTROL, 0, 1 << sd); |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 154 | if (err) { |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 155 | pr_err("failed to update SD control register: %d", err); |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 156 | return err; |
| 157 | } |
| 158 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 159 | return 0; |
| 160 | } |
| 161 | |
| 162 | /* TODO: Convert to driver model */ |
| 163 | static int as3722_ldo_enable(struct udevice *pmic, unsigned int ldo) |
| 164 | { |
| 165 | int err; |
| 166 | u8 ctrl_reg = AS3722_LDO_CONTROL0; |
| 167 | |
| 168 | if (ldo > 11) |
| 169 | return -EINVAL; |
| 170 | |
| 171 | if (ldo > 7) { |
| 172 | ctrl_reg = AS3722_LDO_CONTROL1; |
| 173 | ldo -= 8; |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 174 | } |
| 175 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 176 | err = pmic_clrsetbits(pmic, ctrl_reg, 0, 1 << ldo); |
| 177 | if (err) { |
| 178 | pr_err("failed to update LDO control register: %d", err); |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 179 | return err; |
| 180 | } |
| 181 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 182 | return 0; |
| 183 | } |
| 184 | |
| 185 | int tegra_pcie_board_init(void) |
| 186 | { |
| 187 | struct udevice *dev; |
| 188 | int ret; |
| 189 | |
| 190 | ret = uclass_get_device_by_driver(UCLASS_PMIC, |
Simon Glass | 65130cd | 2020-12-28 20:34:56 -0700 | [diff] [blame] | 191 | DM_DRIVER_GET(pmic_as3722), &dev); |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 192 | if (ret) { |
| 193 | pr_err("failed to find AS3722 PMIC: %d\n", ret); |
| 194 | return ret; |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 195 | } |
| 196 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 197 | ret = as3722_sd_enable(dev, 4); |
| 198 | if (ret < 0) { |
| 199 | pr_err("failed to enable SD4: %d\n", ret); |
| 200 | return ret; |
| 201 | } |
| 202 | |
| 203 | ret = as3722_sd_set_voltage(dev, 4, 0x24); |
| 204 | if (ret < 0) { |
| 205 | pr_err("failed to set SD4 voltage: %d\n", ret); |
| 206 | return ret; |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 207 | } |
| 208 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 209 | gpio_request(LAN_DEV_OFF_N, "LAN_DEV_OFF_N"); |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 210 | gpio_request(LAN_RESET_N, "LAN_RESET_N"); |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 211 | gpio_request(LAN_WAKE_N, "LAN_WAKE_N"); |
| 212 | |
| 213 | #ifdef CONFIG_APALIS_TK1_PCIE_EVALBOARD_INIT |
| 214 | gpio_request(PEX_PERST_N, "PEX_PERST_N"); |
| 215 | gpio_request(RESET_MOCI_CTRL, "RESET_MOCI_CTRL"); |
| 216 | #endif /* CONFIG_APALIS_TK1_PCIE_EVALBOARD_INIT */ |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 217 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 218 | return 0; |
| 219 | } |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 220 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 221 | void tegra_pcie_board_port_reset(struct tegra_pcie_port *port) |
| 222 | { |
| 223 | int index = tegra_pcie_port_index_of_port(port); |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 224 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 225 | if (index == 1) { /* I210 Gigabit Ethernet Controller (On-module) */ |
| 226 | struct udevice *dev; |
| 227 | int ret; |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 228 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 229 | ret = uclass_get_device_by_driver(UCLASS_PMIC, |
Simon Glass | 65130cd | 2020-12-28 20:34:56 -0700 | [diff] [blame] | 230 | DM_DRIVER_GET(pmic_as3722), |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 231 | &dev); |
| 232 | if (ret) { |
| 233 | debug("%s: Failed to find PMIC\n", __func__); |
| 234 | return; |
| 235 | } |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 236 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 237 | /* Reset I210 Gigabit Ethernet Controller */ |
| 238 | gpio_direction_output(LAN_RESET_N, 0); |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 239 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 240 | /* |
| 241 | * Make sure we don't get any back feeding from DEV_OFF_N resp. |
| 242 | * LAN_WAKE_N |
| 243 | */ |
| 244 | gpio_direction_output(LAN_DEV_OFF_N, 0); |
| 245 | gpio_direction_output(LAN_WAKE_N, 0); |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 246 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 247 | /* Make sure LDO9 and LDO10 are initially enabled @ 0V */ |
| 248 | ret = as3722_ldo_enable(dev, 9); |
| 249 | if (ret < 0) { |
| 250 | pr_err("failed to enable LDO9: %d\n", ret); |
| 251 | return; |
| 252 | } |
| 253 | ret = as3722_ldo_enable(dev, 10); |
| 254 | if (ret < 0) { |
| 255 | pr_err("failed to enable LDO10: %d\n", ret); |
| 256 | return; |
| 257 | } |
| 258 | ret = as3722_ldo_set_voltage(dev, 9, 0x80); |
| 259 | if (ret < 0) { |
| 260 | pr_err("failed to set LDO9 voltage: %d\n", ret); |
| 261 | return; |
| 262 | } |
| 263 | ret = as3722_ldo_set_voltage(dev, 10, 0x80); |
| 264 | if (ret < 0) { |
| 265 | pr_err("failed to set LDO10 voltage: %d\n", ret); |
| 266 | return; |
| 267 | } |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 268 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 269 | /* Make sure controller gets enabled by disabling DEV_OFF_N */ |
| 270 | gpio_set_value(LAN_DEV_OFF_N, 1); |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 271 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 272 | /* |
| 273 | * Enable LDO9 and LDO10 for +V3.3_ETH on patched prototype |
| 274 | * V1.0A and sample V1.0B and newer modules |
| 275 | */ |
| 276 | ret = as3722_ldo_set_voltage(dev, 9, 0xff); |
| 277 | if (ret < 0) { |
| 278 | pr_err("failed to set LDO9 voltage: %d\n", ret); |
| 279 | return; |
| 280 | } |
| 281 | ret = as3722_ldo_set_voltage(dev, 10, 0xff); |
| 282 | if (ret < 0) { |
| 283 | pr_err("failed to set LDO10 voltage: %d\n", ret); |
| 284 | return; |
| 285 | } |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 286 | |
Marcel Ziswiler | 07ce1a6 | 2018-05-08 17:34:11 +0200 | [diff] [blame] | 287 | /* |
| 288 | * Must be asserted for 100 ms after power and clocks are stable |
| 289 | */ |
| 290 | mdelay(100); |
| 291 | |
| 292 | gpio_set_value(LAN_RESET_N, 1); |
| 293 | } else if (index == 0) { /* Apalis PCIe */ |
| 294 | #ifdef CONFIG_APALIS_TK1_PCIE_EVALBOARD_INIT |
| 295 | /* |
| 296 | * Reset PLX PEX 8605 PCIe Switch plus PCIe devices on Apalis |
| 297 | * Evaluation Board |
| 298 | */ |
| 299 | gpio_direction_output(PEX_PERST_N, 0); |
| 300 | gpio_direction_output(RESET_MOCI_CTRL, 0); |
| 301 | |
| 302 | /* |
| 303 | * Must be asserted for 100 ms after power and clocks are stable |
| 304 | */ |
| 305 | mdelay(100); |
| 306 | |
| 307 | gpio_set_value(PEX_PERST_N, 1); |
| 308 | /* |
| 309 | * Err_5: PEX_REFCLK_OUTpx/nx Clock Outputs is not Guaranteed |
| 310 | * Until 900 us After PEX_PERST# De-assertion |
| 311 | */ |
| 312 | mdelay(1); |
| 313 | gpio_set_value(RESET_MOCI_CTRL, 1); |
| 314 | #endif /* CONFIG_APALIS_TK1_PCIE_EVALBOARD_INIT */ |
| 315 | } |
Marcel Ziswiler | d2b64bd | 2017-04-01 15:43:16 -0700 | [diff] [blame] | 316 | } |
| 317 | #endif /* CONFIG_PCI_TEGRA */ |
Gerard Salvatella | 108d739 | 2018-11-19 15:54:10 +0100 | [diff] [blame] | 318 | |
| 319 | /* |
Igor Opaniuk | feb8c0d | 2019-08-01 11:06:32 +0300 | [diff] [blame] | 320 | * Enable/start PWM CPU fan |
| 321 | */ |
| 322 | void start_cpu_fan(void) |
| 323 | { |
| 324 | gpio_request(FAN_EN, "FAN_EN"); |
| 325 | gpio_direction_output(FAN_EN, 1); |
| 326 | } |
| 327 | |
| 328 | /* |
Gerard Salvatella | 108d739 | 2018-11-19 15:54:10 +0100 | [diff] [blame] | 329 | * Backlight off before OS handover |
| 330 | */ |
| 331 | void board_preboot_os(void) |
| 332 | { |
| 333 | gpio_request(TEGRA_GPIO(BB, 5), "BL_ON"); |
| 334 | gpio_direction_output(TEGRA_GPIO(BB, 5), 0); |
| 335 | } |