drivers/intel/mipi_camera: Add macros to increase code readability
This will be used to pass information to driver through ACPI in devicetree. Example https://review.coreboot.org/c/coreboot/+/52013 register "clk_panel.clks[0].clknum" = "IMGCLKOUT_3" register "clk_panel.clks[0].freq" = "FREQ_19_2_MHZ" TEST=Add these macros in devicetree, build and check static.c for consistency Signed-off-by: Varshit B Pandya <varshit.b.pandya@intel.corp-partner.google.com> Change-Id: Ia4137e09c934bf06857ceedb933e616bed5070dd Reviewed-on: https://review.coreboot.org/c/coreboot/+/55097 Reviewed-by: Maulik V Vaghela <maulik.v.vaghela@intel.com> Reviewed-by: Subrata Banik <subrata.banik@intel.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Rizwan Qureshi <rizwan.qureshi@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
faebe8e46a
commit
4113bc07ed
|
@ -14,6 +14,14 @@
|
|||
#define MAX_GPIO_CONFIGS 4
|
||||
#define MAX_PWR_OPS 5
|
||||
#define MAX_GUARDED_RESOURCES 10
|
||||
#define IMGCLKOUT_0 0
|
||||
#define IMGCLKOUT_1 1
|
||||
#define IMGCLKOUT_2 2
|
||||
#define IMGCLKOUT_3 3
|
||||
#define IMGCLKOUT_4 4
|
||||
#define IMGCLKOUT_5 5
|
||||
#define FREQ_24_MHZ 0
|
||||
#define FREQ_19_2_MHZ 1
|
||||
|
||||
#define SEQ_OPS_CLK_ENABLE(ind, delay) \
|
||||
{ .type = IMGCLK, .index = (ind), .action = ENABLE, .delay_ms = (delay) }
|
||||
|
|
Loading…
Reference in New Issue