/* * cs42l42.h -- CS42L42 ALSA SoC audio driver DT bindings header * * Copyright 2016 Cirrus Logic, Inc. * * Author: James Schulman * Author: Brian Austin * Author: Michael White * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * */ #ifndef __DT_CS42L42_H #define __DT_CS42L42_H /* HPOUT Load Capacity */ #define CS42L42_HPOUT_LOAD_1NF 0 #define CS42L42_HPOUT_LOAD_10NF 1 /* HPOUT Clamp to GND Overide */ #define CS42L42_HPOUT_CLAMP_EN 0 #define CS42L42_HPOUT_CLAMP_DIS 1 /* Tip Sense Inversion */ #define CS42L42_TS_INV_DIS 0 #define CS42L42_TS_INV_EN 1 /* Tip Sense Debounce */ #define CS42L42_TS_DBNCE_0 0 #define CS42L42_TS_DBNCE_125 1 #define CS42L42_TS_DBNCE_250 2 #define CS42L42_TS_DBNCE_500 3 #define CS42L42_TS_DBNCE_750 4 #define CS42L42_TS_DBNCE_1000 5 #define CS42L42_TS_DBNCE_1250 6 #define CS42L42_TS_DBNCE_1500 7 /* Button Press Software Debounce Times */ #define CS42L42_BTN_DET_INIT_DBNCE_MIN 0 #define CS42L42_BTN_DET_INIT_DBNCE_DEFAULT 100 #define CS42L42_BTN_DET_INIT_DBNCE_MAX 200 #define CS42L42_BTN_DET_EVENT_DBNCE_MIN 0 #define CS42L42_BTN_DET_EVENT_DBNCE_DEFAULT 10 #define CS42L42_BTN_DET_EVENT_DBNCE_MAX 20 /* Button Detect Level Sensitivities */ #define CS42L42_NUM_BIASES 4 #define CS42L42_HS_DET_LEVEL_15 0x0F #define CS42L42_HS_DET_LEVEL_8 0x08 #define CS42L42_HS_DET_LEVEL_4 0x04 #define CS42L42_HS_DET_LEVEL_1 0x01 #define CS42L42_HS_DET_LEVEL_MIN 0 #define CS42L42_HS_DET_LEVEL_MAX 0x3F /* HS Bias Ramp Rate */ #define CS42L42_HSBIAS_RAMP_FAST_RISE_SLOW_FALL 0 #define CS42L42_HSBIAS_RAMP_FAST 1 #define CS42L42_HSBIAS_RAMP_SLOW 2 #define CS42L42_HSBIAS_RAMP_SLOWEST 3 #define CS42L42_HSBIAS_RAMP_TIME0 10 #define CS42L42_HSBIAS_RAMP_TIME1 40 #define CS42L42_HSBIAS_RAMP_TIME2 90 #define CS42L42_HSBIAS_RAMP_TIME3 170 #endif /* __DT_CS42L42_H */ gprs.h?h=nds-private-remove&id=c8f325a59cfc718d13a50fbc746ed9b415c25e92'>commitdiff
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-02-01 17:45:02 +0000
committerIngo Molnar <mingo@kernel.org>2017-02-01 21:17:49 +0100
commitc8f325a59cfc718d13a50fbc746ed9b415c25e92 (patch)
treed53fbdac9d0781e39a13b2ac6b2bd258cf3b4140 /include/net/phonet/gprs.h
parentbf29bddf0417a4783da3b24e8c9e017ac649326f (diff)
efi/fdt: Avoid FDT manipulation after ExitBootServices()
Some AArch64 UEFI implementations disable the MMU in ExitBootServices(), after which unaligned accesses to RAM are no longer supported. Commit: abfb7b686a3e ("efi/libstub/arm*: Pass latest memory map to the kernel") fixed an issue in the memory map handling of the stub FDT code, but inadvertently created an issue with such firmware, by moving some of the FDT manipulation to after the invocation of ExitBootServices(). Given that the stub's libfdt implementation uses the ordinary, accelerated string functions, which rely on hardware handling of unaligned accesses, manipulating the FDT with the MMU off may result in alignment faults. So fix the situation by moving the update_fdt_memmap() call into the callback function invoked by efi_exit_boot_services() right before it calls the ExitBootServices() UEFI service (which is arguably a better place for it anyway) Note that disabling the MMU in ExitBootServices() is not compliant with the UEFI spec, and carries great risk due to the fact that switching from cached to uncached memory accesses halfway through compiler generated code (i.e., involving a stack) can never be done in a way that is architecturally safe. Fixes: abfb7b686a3e ("efi/libstub/arm*: Pass latest memory map to the kernel") Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Riku Voipio <riku.voipio@linaro.org> Cc: <stable@vger.kernel.org> Cc: mark.rutland@arm.com Cc: linux-efi@vger.kernel.org Cc: matt@codeblueprint.co.uk Cc: leif.lindholm@linaro.org Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/1485971102-23330-2-git-send-email-ard.biesheuvel@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/net/phonet/gprs.h')