All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mario Six <mario.six@gdsys.cc>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 39/60] sbc8349: Remove SDRAM functionality
Date: Mon, 21 Jan 2019 09:18:02 +0100	[thread overview]
Message-ID: <20190121081823.6429-39-mario.six@gdsys.cc> (raw)
In-Reply-To: <20190121081823.6429-1-mario.six@gdsys.cc>

The MPC8349EMDS configuration was the basis for the sbc8349, so it also
contains its SDRAM option.

Since
* the SDRAM has to be soldered onto the board,
* the sbc8349 never used the support, and
* the support never worked (see previous patch fixing it),

we can assume that the support on the sbc8349 is an artifact created by
copying the MPC8349EMDS config wholesome.

Hence, instead of creating a separate sbc8349 config that supports
SDRAM, we can remove the SDRAM option for this board.

Should it be needed in the future, it can be copied from the new
MPC8349EMDS_SDRAM board.

Signed-off-by: Mario Six <mario.six@gdsys.cc>

---

v2 -> v3:
No changes

v1 -> v2:
No changes

---
 include/configs/sbc8349.h | 67 ---------------------------------------
 1 file changed, 67 deletions(-)

diff --git a/include/configs/sbc8349.h b/include/configs/sbc8349.h
index 09cdb7c1a8a..42a1e1682d2 100644
--- a/include/configs/sbc8349.h
+++ b/include/configs/sbc8349.h
@@ -142,73 +142,6 @@
 
 #undef CONFIG_SYS_LB_SDRAM	/* if board has SDRAM on local bus */
 
-#ifdef CONFIG_SYS_LB_SDRAM
-/* Local bus BR2, OR2 definition for SDRAM if soldered on the board*/
-/*
- * Base Register 2 and Option Register 2 configure SDRAM.
- * The SDRAM base address, CONFIG_SYS_LBC_SDRAM_BASE, is 0xf0000000.
- *
- * For BR2, need:
- *    Base address of 0xf0000000 = BR[0:16] = 1111 0000 0000 0000 0
- *    port-size = 32-bits = BR2[19:20] = 11
- *    no parity checking = BR2[21:22] = 00
- *    SDRAM for MSEL = BR2[24:26] = 011
- *    Valid = BR[31] = 1
- *
- * 0    4    8    12   16   20   24   28
- * 1111 0000 0000 0000 0001 1000 0110 0001 = F0001861
- */
-
-#define CONFIG_SYS_BR2_PRELIM		(CONFIG_SYS_LBC_SDRAM_BASE \
-					| BR_PS_32 \
-					| BR_MS_SDRAM \
-					| BR_V)
-					/* 0xF0001861 */
-/*
- * The SDRAM size in MB, CONFIG_SYS_LBC_SDRAM_SIZE, is 64.
- *
- * For OR2, need:
- *    64MB mask for AM, OR2[0:7] = 1111 1100
- *                 XAM, OR2[17:18] = 11
- *    9 columns OR2[19-21] = 010
- *    13 rows   OR2[23-25] = 100
- *    EAD set for extra time OR[31] = 1
- *
- * 0    4    8    12   16   20   24   28
- * 1111 1100 0000 0000 0110 1001 0000 0001 = FC006901
- */
-
-#define CONFIG_SYS_OR2_PRELIM	(OR_AM_64MB \
-			| OR_SDRAM_XAM \
-			| ((9 - OR_SDRAM_MIN_COLS) << OR_SDRAM_COLS_SHIFT) \
-			| ((13 - OR_SDRAM_MIN_ROWS) << OR_SDRAM_ROWS_SHIFT) \
-			| OR_SDRAM_EAD)
-			/* 0xFC006901 */
-
-				/* LB sdram refresh timer, about 6us */
-#define CONFIG_SYS_LBC_LSRT	0x32000000
-				/* LB refresh timer prescal, 266MHz/32 */
-#define CONFIG_SYS_LBC_MRTPR	0x20000000
-
-#define CONFIG_SYS_LBC_LSDMR_COMMON	(LSDMR_RFEN \
-					| LSDMR_BSMA1516 \
-					| LSDMR_RFCR8 \
-					| LSDMR_PRETOACT6 \
-					| LSDMR_ACTTORW3 \
-					| LSDMR_BL8 \
-					| LSDMR_WRC3 \
-					| LSDMR_CL3)
-
-/*
- * SDRAM Controller configuration sequence.
- */
-#define CONFIG_SYS_LBC_LSDMR_1	(CONFIG_SYS_LBC_LSDMR_COMMON | LSDMR_OP_PCHALL)
-#define CONFIG_SYS_LBC_LSDMR_2	(CONFIG_SYS_LBC_LSDMR_COMMON | LSDMR_OP_ARFRSH)
-#define CONFIG_SYS_LBC_LSDMR_3	(CONFIG_SYS_LBC_LSDMR_COMMON | LSDMR_OP_ARFRSH)
-#define CONFIG_SYS_LBC_LSDMR_4	(CONFIG_SYS_LBC_LSDMR_COMMON | LSDMR_OP_MRW)
-#define CONFIG_SYS_LBC_LSDMR_5	(CONFIG_SYS_LBC_LSDMR_COMMON | LSDMR_OP_NORMAL)
-#endif
-
 /*
  * Serial Port
  */
-- 
2.20.1

  parent reply	other threads:[~2019-01-21  8:18 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-21  8:17 [U-Boot] [PATCH v3 01/60] mpc83xx: Introduce ARCH_MPC830* Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 02/60] mpc83xx: Introduce ARCH_MPC831* Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 03/60] mpc83xx: Introduce ARCH_MPC832* Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 04/60] mpc83xx: Introduce ARCH_MPC834* Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 05/60] mpc83xx: Introduce ARCH_MPC836* Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 06/60] mpc83xx: Introduce ARCH_MPC837X Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 07/60] keymile: Make distinct kmtegr1, kmvect1, suvd3 configs Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 08/60] keymile: Move config files Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 09/60] keymile: Unroll includes Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 10/60] keymile: Make distinct kmsupx5, tuge1, kmopti2, and kmtepr2 configs Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 11/60] keymile: Unroll km/km83xx-common.h Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 12/60] keymile: Make distinct kmeter1, and kmcoge5ne configs Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 13/60] mpc83xx: Make distinct MPC8313ERDB targets Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 14/60] vme8349: Migrate to CONFIG_TARGET_VME8349 Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 15/60] mpc83xx: Make distinct caddy2 config Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 16/60] powerpc: Add LSDMR config values Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 17/60] mpc83xx: Make distinct MPC8349EMDS_SDRAM board Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 18/60] mpc8315erdb: Merge BR/OR settings Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 19/60] ve8313: " Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 20/60] MPC832XEMDS: Migrate to CONFIG_TARGET_MPC832XEMDS Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 21/60] MPC8349ITX: Migrate to CONFIG_TARGET_MPC8349ITX Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 22/60] hrcon: Migrate to CONFIG_TARGET_HRCON Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 23/60] strider: Migrate to CONFIG_TARGET_STRIDER Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 24/60] MPC8313ERDB: Remove CONFIG_MPC8313ERDB Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 25/60] MPC8315ERDB: Remove CONFIG_MPC8315ERDB Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 26/60] MPC837XEMDS: Remove CONFIG_MPC837XEMDS Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 27/60] MPC837XERDB: Remove CONFIG_MPC837XERDB Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 28/60] mpc83xx: Migrate legacy PCI options to Kconfig Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 29/60] mpc83xx: Replace CONFIG_83XX_CLKIN in calculations Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 30/60] mpc83xx: Get rid of CONFIG_83XX_CLKIN Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 31/60] mpc83xx: Kconfig: Migrate HRCW to Kconfig Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 32/60] mpc83xx: pcie: Read the clock from registers Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 33/60] powerpc: Migrate HIGH_BATS to Kconfig Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 34/60] mpc83xx: Migrate BATS config " Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 35/60] mpc83xx: Migrate LBLAW_* " Mario Six
2019-01-21  8:17 ` [U-Boot] [PATCH v3 36/60] mpc83xx: Normalize BR/OR option lines Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 37/60] tqm834x: Expand CONFIG_SYS_OR_TIMING_FLASH macro Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 38/60] mpc83xx: Simplify BR,OR lines Mario Six
2019-01-21  8:18 ` Mario Six [this message]
2019-01-21  8:18 ` [U-Boot] [PATCH v3 40/60] mpc83xx: Migrate CONFIG_SYS_{BR, OR}*_PRELIM to Kconfig Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 41/60] powerpc: mpc83xx: Fix MPC8308 IMMR memory layout Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 42/60] powerpc: mpc83xx: Implement get_serial_clock() Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 43/60] powerpc: mpc83xx: fdt: Use get_serial_clock() Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 44/60] mpc83xx: Remove last CONFIG_MPC83xx Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 45/60] mpc83xx: Prepare usage of DM gpio driver Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 46/60] mpc83xx: Migrate HID config to Kconfig Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 47/60] mpc83xx: Migrate CONFIG_SYS_IMMR " Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 48/60] mpc8308: Migrate system io config " Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 49/60] mpc83xx: Migrate arbiter " Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 50/60] mpc83xx: Migrate SPCR " Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 51/60] mpc83xx: Migrate CONFIG_LCRR_* " Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 52/60] mpc83xx: Get rid of CONFIG_SYS_DDR_BASE Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 53/60] mpc83xx: Get rid of CONFIG_SYS_DDR_SDRAM_BASE Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 54/60] mpc83xx: Get rid of CONFIG_SYS_LBC_* Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 55/60] mpc83xx: Add arch clock.h to make SDHC work Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 56/60] mpc83xx: Don't define cpu_eth_init for DM eth Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 57/60] mpc83xx: Replace ppcDWstore with inline assembly Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 58/60] mpc83xx: Use pre-defined asm functions Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 59/60] keymile: Remove CONFIG_SYS_APP{1, 2}_{BASE, SIZE} Mario Six
2019-01-21  8:18 ` [U-Boot] [PATCH v3 60/60] keymile: Factor out common includes again Mario Six
2019-01-22 16:16 ` [U-Boot] [PATCH v3 01/60] mpc83xx: Introduce ARCH_MPC830* York Sun
2019-01-28  8:13   ` Mario Six
2019-02-08  7:13     ` Mario Six

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190121081823.6429-39-mario.six@gdsys.cc \
    --to=mario.six@gdsys.cc \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.