Serial port settings automatically

Hello,
I am working with colibri-imx7-emmc machine.
I build my own image tdx-reference-multimedia-image based on.
I am using 5.4.3 bsp version.
I need to set some serial ports settings. I could do this doing the following:

        stty -F /dev/ttymxc1 -isig -icanon -echo -echoe -echok -brkint -icrnl -imaxbel -opost
        stty -F /dev/ttymxc1 115200

And thats is working but I need to have this configuration automatically, in older kernel version I could this with /etc/inittab file but newer version I doesn’t have iniitab.
There is a way to make some recipe to apply serial ports settings in some init configuration file?
Thanks.
Emmanuel.

Hi,
I was able to achieve this with systemd service.
I followed these posts to make systemd service if someone has the same need.
https://stackoverflow.com/questions/45614578/enable-systemd-services-using-yocto
https://community.nxp.com/t5/i-MX-Processors/How-to-automatically-start-services-with-systemd-in-Yocto/m-p/746499
https://wiki.koansoftware.com/index.php/Add_a_systemd_service_file_into_a_Yocto_image

Regards,
Emmanuel