diff options
author | Ed Tanous <ed.tanous@intel.com> | 2019-06-20 19:46:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-20 19:46:38 +0300 |
commit | 43a183cc0926da36e3a218efa02ab4838ace316f (patch) | |
tree | 9ea192b408585fc2a19b54d196c3d56eaddc4acb /meta-yadro/meta-vesnin/recipes-kernel/linux/linux-aspeed/0002-vesnin-remap-aspeed-uart.patch | |
parent | 5575b1d27fc222f973d96dc06af0f21ba7656f28 (diff) | |
parent | 2c7e8f4ce61f2e0407c37e98e22bbb13e562b414 (diff) | |
download | openbmc-43a183cc0926da36e3a218efa02ab4838ace316f.tar.xz |
Merge pull request #12 from Intel-BMC/update
Update
Diffstat (limited to 'meta-yadro/meta-vesnin/recipes-kernel/linux/linux-aspeed/0002-vesnin-remap-aspeed-uart.patch')
-rw-r--r-- | meta-yadro/meta-vesnin/recipes-kernel/linux/linux-aspeed/0002-vesnin-remap-aspeed-uart.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-yadro/meta-vesnin/recipes-kernel/linux/linux-aspeed/0002-vesnin-remap-aspeed-uart.patch b/meta-yadro/meta-vesnin/recipes-kernel/linux/linux-aspeed/0002-vesnin-remap-aspeed-uart.patch new file mode 100644 index 000000000..fb286691d --- /dev/null +++ b/meta-yadro/meta-vesnin/recipes-kernel/linux/linux-aspeed/0002-vesnin-remap-aspeed-uart.patch @@ -0,0 +1,41 @@ +From 85027d94696464269ae77702ead788a14fc8305f Mon Sep 17 00:00:00 2001 +From: Alexander Filippov <a.filippov@yadro.com> +Date: Wed, 28 Mar 2018 17:46:28 +0300 +Subject: [PATCH] vesnin: remap aspeed-uart + +Remaps UART2 <-> UART3 + +Signed-off-by: Alexander Filippov <a.filippov@yadro.com> +--- + drivers/misc/aspeed-lpc-ctrl.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/drivers/misc/aspeed-lpc-ctrl.c b/drivers/misc/aspeed-lpc-ctrl.c +index 332210e06e98..ce5138474130 100644 +--- a/drivers/misc/aspeed-lpc-ctrl.c ++++ b/drivers/misc/aspeed-lpc-ctrl.c +@@ -27,6 +27,7 @@ + + #define HICR7 0x8 + #define HICR8 0xc ++#define HICRA 0x1c + + struct aspeed_lpc_ctrl { + struct miscdevice miscdev; +@@ -274,6 +275,13 @@ static int aspeed_lpc_ctrl_probe(struct platform_device *pdev) + goto err; + } + ++ /* Switch UART2 to IO3 and UART3 to IO2 */ ++ rc = regmap_write(lpc_ctrl->regmap, HICRA, 0x00C80108); ++ if (rc) { ++ dev_err(dev, "Unable to switch UART 2<->3\n"); ++ goto err; ++ } ++ + return 0; + + err: +-- +2.20.1 + |