]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/kmp204x.h
Merge branch 'master' of git://git.denx.de/u-boot-video
[karo-tx-uboot.git] / include / configs / kmp204x.h
1 /*
2  * (C) Copyright 2013 Keymile AG
3  * Valentin Longchamp <valentin.longchamp@keymile.com>
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 #ifndef __CONFIG_H
9 #define __CONFIG_H
10
11 /* KMLION1 */
12 #if defined(CONFIG_KMLION1)
13 #define CONFIG_HOSTNAME         kmlion1
14 #define CONFIG_KM_BOARD_NAME    "kmlion1"
15
16 #else
17 #error ("Board not supported")
18 #endif
19
20 #define CONFIG_KMP204X
21
22 #include "km/kmp204x-common.h"
23
24 #if defined(CONFIG_KMLION1)
25 /* App1 Local bus */
26 #define CONFIG_SYS_LBAPP1_BASE          0xD0000000
27 #define CONFIG_SYS_LBAPP1_BASE_PHYS     0xFD0000000ull
28
29 #define CONFIG_SYS_LBAPP1_BR_PRELIM (BR_PHYS_ADDR(CONFIG_SYS_LBAPP1_BASE_PHYS) \
30                                 | BR_PS_8       /* Port Size 8 bits */ \
31                                 | BR_DECC_OFF   /* no error corr */ \
32                                 | BR_MS_GPCM    /* MSEL = GPCM */ \
33                                 | BR_V)         /* valid */
34
35 #define CONFIG_SYS_LBAPP1_OR_PRELIM (OR_AM_256MB        /* length 256MB */ \
36                                 | OR_GPCM_ACS_DIV2 /* LCS 1/2 clk after */ \
37                                 | OR_GPCM_CSNT /* LCS 1/4 clk before */ \
38                                 | OR_GPCM_SCY_2 /* 2 clk wait cycles */ \
39                                 | OR_GPCM_TRLX /* relaxed tmgs */ \
40                                 | OR_GPCM_EAD) /* extra bus clk cycles */
41 /* Local bus app1 Base Address */
42 #define CONFIG_SYS_BR2_PRELIM  CONFIG_SYS_LBAPP1_BR_PRELIM
43 /* Local bus app1 Options */
44 #define CONFIG_SYS_OR2_PRELIM  CONFIG_SYS_LBAPP1_OR_PRELIM
45
46 /* App2 Local bus */
47 #define CONFIG_SYS_LBAPP2_BASE          0xE0000000
48 #define CONFIG_SYS_LBAPP2_BASE_PHYS     0xFE0000000ull
49
50 #define CONFIG_SYS_LBAPP2_BR_PRELIM (BR_PHYS_ADDR(CONFIG_SYS_LBAPP2_BASE_PHYS) \
51                                 | BR_PS_8       /* Port Size 8 bits */ \
52                                 | BR_DECC_OFF   /* no error corr */ \
53                                 | BR_MS_GPCM    /* MSEL = GPCM */ \
54                                 | BR_V)         /* valid */
55
56 #define CONFIG_SYS_LBAPP2_OR_PRELIM (OR_AM_256MB        /* length 256MB */ \
57                                 | OR_GPCM_ACS_DIV2 /* LCS 1/2 clk after */ \
58                                 | OR_GPCM_CSNT /* LCS 1/4 clk before */ \
59                                 | OR_GPCM_SCY_2 /* 2 clk wait cycles */ \
60                                 | OR_GPCM_TRLX /* relaxed tmgs */ \
61                                 | OR_GPCM_EAD) /* extra bus clk cycles */
62 /* Local bus app2 Base Address */
63 #define CONFIG_SYS_BR3_PRELIM  CONFIG_SYS_LBAPP2_BR_PRELIM
64 /* Local bus app2 Options */
65 #define CONFIG_SYS_OR3_PRELIM  CONFIG_SYS_LBAPP2_OR_PRELIM
66 #endif
67
68 #endif  /* __CONFIG_H */