Lines Matching +full:rom +full:- +full:val

1 // SPDX-License-Identifier: GPL-2.0-only
22 #include "cm-regbits-34xx.h"
23 #include "prm-regbits-34xx.h"
141 u32 val; in omap_ctrl_readb() local
144 val = omap_ctrl_readl(offset); in omap_ctrl_readb()
146 return (val >> (byte_offset * 8)) & 0xff; in omap_ctrl_readb()
151 u32 val; in omap_ctrl_readw() local
154 val = omap_ctrl_readl(offset); in omap_ctrl_readw()
156 return (val >> (byte_offset * 8)) & 0xffff; in omap_ctrl_readw()
166 void omap_ctrl_writeb(u8 val, u16 offset) in omap_ctrl_writeb() argument
174 tmp |= val << (byte_offset * 8); in omap_ctrl_writeb()
179 void omap_ctrl_writew(u16 val, u16 offset) in omap_ctrl_writew() argument
187 tmp |= val << (byte_offset * 8); in omap_ctrl_writew()
192 void omap_ctrl_writel(u32 val, u16 offset) in omap_ctrl_writel() argument
195 writel_relaxed(val, omap2_ctrl_base + offset); in omap_ctrl_writel()
201 * omap3_ctrl_write_boot_mode - set scratchpad boot mode for the next boot
202 * @bootmode: 8-bit value to pass to some boot code
205 * system restarts. Not sure what actually uses this - it may be the
206 * bootloader, rather than the boot ROM - contrary to the preserved
217 * with the boot ROM. A pointer to a data structure in omap3_ctrl_write_boot_mode()
222 * XXX This should use some omap_ctrl_writel()-type function in omap3_ctrl_write_boot_mode()
243 * physical restore address where the ROM code jumps while waking in omap3_save_scratchpad_contents()
476 * omap3_ctrl_save_padconf - save padconf registers to scratchpad RAM
480 * should also eventually be able to return -ETIMEDOUT, if the save
503 * omap3_ctrl_set_iva_bootmode_idle - sets the IVA2 bootmode to idle
506 * force disable IVA2 so that it does not prevent any low-power states.
515 * omap3_ctrl_setup_d2d_padconf - setup stacked modem pads for idle
530 mask = (1 << 4) | (1 << 3); /* pull-up, enabled */ in omap3_ctrl_setup_d2d_padconf()
541 * omap3_ctrl_init - does static initializations for control module
617 * am43xx_control_save_context - Save the wakeup domain registers
631 * am43xx_control_restore_context - Restore the wakeup domain registers
672 .offset = -OMAP2_CONTROL_GENERAL,
680 { .compatible = "ti,am3-scm", .data = &ctrl_data },
681 { .compatible = "ti,am4-scm", .data = &ctrl_data },
682 { .compatible = "ti,omap2-scm", .data = &omap2_ctrl_data },
683 { .compatible = "ti,omap3-scm", .data = &omap2_ctrl_data },
684 { .compatible = "ti,dm814-scm", .data = &ctrl_data },
685 { .compatible = "ti,dm816-scrm", .data = &ctrl_data },
686 { .compatible = "ti,omap4-scm-core", .data = &ctrl_data },
687 { .compatible = "ti,omap5-scm-core", .data = &ctrl_data },
688 { .compatible = "ti,omap5-scm-wkup-pad-conf", .data = &ctrl_aux_data },
689 { .compatible = "ti,dra7-scm-core", .data = &ctrl_data },
694 * omap2_control_base_init - initialize iomappings for the control driver
708 data = (struct control_init_data *)match->data; in omap2_control_base_init()
713 return -ENOMEM; in omap2_control_base_init()
716 if (data->index == TI_CLKM_CTRL) { in omap2_control_base_init()
718 omap2_ctrl_offset = data->offset; in omap2_control_base_init()
721 data->mem = mem; in omap2_control_base_init()
728 * omap_control_init - low level init for the control driver
743 data = match->data; in omap_control_init()
761 data->index, in omap_control_init()
768 ret = omap2_clk_provider_init(np, data->index, NULL, in omap_control_init()
769 data->mem); in omap_control_init()
775 /* Only AM43XX can lose ctrl registers context during rtc-ddr suspend */ in omap_control_init()