2 * (C) Copyright 2004-2008
3 * Texas Instruments, <www.ti.com>
4 * Richard Woodruff <r-woodruff2@ti.com>
6 * SPDX-License-Identifier: GPL-2.0+
17 struct emu_hal_params {
22 /* Board SDRC timing values */
23 struct board_sdrc_timings {
32 void per_clocks_enable(void);
33 void ehci_clocks_enable(void);
35 void memif_init(void);
37 void do_sdrc_init(u32, u32);
39 void get_board_mem_timings(struct board_sdrc_timings *timings);
40 void identify_nand_chip(int *mfr, int *id);
41 void emif4_init(void);
43 void enable_gpmc_cs_config(const u32 *gpmc_config, struct gpmc_cs *cs, u32 base,
46 void watchdog_init(void);
47 void set_muxconf_regs(void);
49 u32 get_cpu_family(void);
50 u32 get_cpu_rev(void);
52 u32 get_sysboot_value(void);
53 u32 is_gpmc_muxed(void);
54 u32 get_gpmc0_type(void);
55 u32 get_gpmc0_width(void);
56 u32 is_running_in_sdram(void);
57 u32 is_running_in_sram(void);
58 u32 is_running_in_flash(void);
59 u32 get_device_type(void);
60 void secureworld_exit(void);
61 void try_unlock_memory(void);
62 u32 get_boot_type(void);
63 void invalidate_dcache(u32);
64 void sr32(void *, u32, u32, u32);
65 u32 wait_on_value(u32, u32, void *, u32);
66 void sdelay(unsigned long);
67 void make_cs1_contiguous(void);
68 void omap_nand_switch_ecc(uint32_t, uint32_t);
69 void power_init_r(void);
70 void dieid_num_r(void);
71 void do_omap3_emu_romcode_call(u32 service_id, u32 parameters);
72 void omap3_gp_romcode_call(u32 service_id, u32 parameter);