summaryrefslogtreecommitdiff
path: root/include/dt-bindings/clock/lpc18xx-cgu.h
blob: 6e57c6d2ca668d6110effd148968aace7505f671 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 * Copyright (c) 2015 Joachim Eastwood <manabian@gmail.com>
 *
 * This code is released using a dual license strategy: BSD/GPL
 * You can choose the licence that better fits your requirements.
 *
 * Released under the terms of 3-clause BSD License
 * Released under the terms of GNU General Public License Version 2.0
 *
 */

/* LPC18xx/43xx base clock ids */
#define BASE_SAFE_CLK		0
#define BASE_USB0_CLK		1
#define BASE_PERIPH_CLK		2
#define BASE_USB1_CLK		3
#define BASE_CPU_CLK		4
#define BASE_SPIFI_CLK		5
#define BASE_SPI_CLK		6
#define BASE_PHY_RX_CLK		7
#define BASE_PHY_TX_CLK		8
#define BASE_APB1_CLK		9
#define BASE_APB3_CLK		10
#define BASE_LCD_CLK		11
#define BASE_ADCHS_CLK		12
#define BASE_SDIO_CLK		13
#define BASE_SSP0_CLK		14
#define BASE_SSP1_CLK		15
#define BASE_UART0_CLK		16
#define BASE_UART1_CLK		17
#define BASE_UART2_CLK		18
#define BASE_UART3_CLK		19
#define BASE_OUT_CLK		20
#define BASE_RES1_CLK		21
#define BASE_RES2_CLK		22
#define BASE_RES3_CLK		23
#define BASE_RES4_CLK		24
#define BASE_AUDIO_CLK		25
#define BASE_CGU_OUT0_CLK	26
#define BASE_CGU_OUT1_CLK	27
#define BASE_CLK_MAX		(BASE_CGU_OUT1_CLK + 1)
ndling 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/crypto/b128ops.h')