Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 18146

Remapping UART pins ?

$
0
0

Hi all,

 

I wonder if someone tried to remap one of the UART to use another pins.

It would be useful if you want to redirect the internal UART used for Bluetooth to two pins on the external connector.

 

(linux/arch/x86/platform/intel-mid/device_libs/platform_hsu.c)

 

static struct

hsu_port_pin_cfg hsu_port_pin_cfgs[][hsu_pid_max][hsu_port_max] = {

    [hsu_tng] = {

        [hsu_pid_def] = {

            [hsu_port0] = {

                .id = 0,

                .name = HSU_BT_PORT,

                .rx_gpio = 126,

                .rx_alt = 1,

                .tx_gpio = 127,

                .tx_alt = 1,

                .cts_gpio = 124,

                .cts_alt = 1,

                .rts_gpio = 125,

                .rts_alt = 1,

            },

            [hsu_port1] = {

                .id = 1,

                .name = HSU_GPS_PORT,

                .wake_gpio = 130,

                .rx_gpio = 130,

                .rx_alt = 1,

                .tx_gpio = 131,

                .tx_alt = 1,

                .cts_gpio = 128,

                .cts_alt = 1,

                .rts_gpio = 129,

                .rts_alt = 1,

            },

            [hsu_port2] = {

                .id = 2,

                .name = HSU_DEBUG_PORT,

                .wake_gpio = 134,

                .rx_gpio = 134,

                .rx_alt = 1,

                .cts_gpio = 132,

                .cts_alt = 1,

                .rts_gpio = 133,

                .rts_alt = 1,

            },

        },

    },

 

};


Viewing all articles
Browse latest Browse all 18146

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>