mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
Merge "board: ipq50xx: Initialize qpic nand only if rdp's has nand support."
This commit is contained in:
commit
8a67c4a29d
10 changed files with 27 additions and 10 deletions
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
mmc: sdhci@7804000 {
|
||||
compatible = "qcom,sdhci-msm";
|
||||
status = "ok";
|
||||
status = "okay";
|
||||
mmc_gpio {
|
||||
emmc_dat3 {
|
||||
gpio = <4>;
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
usb0 = "/xhci@8a00000";
|
||||
pci0 = "/pci@80000000";
|
||||
pci1 = "/pci@a0000000";
|
||||
nand = "/nand-controller@79B0000";
|
||||
};
|
||||
|
||||
console: serial@78AF000 {
|
||||
|
|
@ -50,7 +51,7 @@
|
|||
};
|
||||
|
||||
nand: nand-controller@79B0000 {
|
||||
status = "ok";
|
||||
status = "okay";
|
||||
nand_gpio {
|
||||
qspi_dat3 {
|
||||
gpio = <4>;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
mmc: sdhci@7804000 {
|
||||
compatible = "qcom,sdhci-msm";
|
||||
status = "ok";
|
||||
status = "okay";
|
||||
mmc_gpio {
|
||||
emmc_dat3 {
|
||||
gpio = <4>;
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
gmac_gpio = "/gmac_gpio";
|
||||
usb0 = "/xhci@8a00000";
|
||||
pci0 = "/pci@80000000";
|
||||
nand = "/nand-controller@79B0000";
|
||||
};
|
||||
|
||||
console: serial@78AF000 {
|
||||
|
|
@ -51,7 +52,7 @@
|
|||
};
|
||||
|
||||
nand: nand-controller@79B0000 {
|
||||
status = "ok";
|
||||
status = "okay";
|
||||
nand_gpio {
|
||||
qspi_dat3 {
|
||||
gpio = <4>;
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
gmac_gpio = "/gmac_gpio";
|
||||
usb0 = "/xhci@8a00000";
|
||||
pci0 = "/pci@80000000";
|
||||
nand = "/nand-controller@79B0000";
|
||||
};
|
||||
|
||||
mmc: sdhci@7804000 {
|
||||
|
|
@ -55,7 +56,7 @@
|
|||
};
|
||||
|
||||
nand: nand-controller@79B0000 {
|
||||
status = "ok";
|
||||
status = "okay";
|
||||
nand_gpio {
|
||||
qspi_dat3 {
|
||||
gpio = <4>;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
mmc: sdhci@7804000 {
|
||||
compatible = "qcom,sdhci-msm";
|
||||
status = "ok";
|
||||
status = "okay";
|
||||
mmc_gpio {
|
||||
emmc_dat3 {
|
||||
gpio = <4>;
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
usb0 = "/xhci@8a00000";
|
||||
pci0 = "/pci@80000000";
|
||||
pci1 = "/pci@a0000000";
|
||||
nand = "/nand-controller@79B0000";
|
||||
};
|
||||
|
||||
console: serial@78AF000 {
|
||||
|
|
@ -50,7 +51,7 @@
|
|||
};
|
||||
|
||||
nand: nand-controller@79B0000 {
|
||||
status = "ok";
|
||||
status = "okay";
|
||||
nand_gpio {
|
||||
qspi_dat3 {
|
||||
gpio = <4>;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
mmc: sdhci@7804000 {
|
||||
compatible = "qcom,sdhci-msm";
|
||||
status = "ok";
|
||||
status = "okay";
|
||||
mmc_gpio {
|
||||
emmc_dat3 {
|
||||
gpio = <4>;
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
usb0 = "/xhci@8a00000";
|
||||
pci0 = "/pci@80000000";
|
||||
pcie1 = "/pci@a0000000";
|
||||
nand = "/nand-controller@79B0000";
|
||||
};
|
||||
|
||||
console: serial@78AF000 {
|
||||
|
|
@ -52,7 +53,7 @@
|
|||
};
|
||||
|
||||
nand: nand-controller@79B0000 {
|
||||
status = "ok";
|
||||
status = "okay";
|
||||
nand_gpio {
|
||||
qspi_dat3 {
|
||||
gpio = <4>;
|
||||
|
|
|
|||
|
|
@ -570,7 +570,19 @@ void qpic_set_clk_rate(unsigned int clk_rate, int blk_type, int req_clk_src_type
|
|||
void board_nand_init(void)
|
||||
{
|
||||
#ifdef CONFIG_QPIC_SERIAL
|
||||
qpic_nand_init(NULL);
|
||||
/* check for nand node in dts
|
||||
* if nand node in dts is disabled then
|
||||
* simply return from here without
|
||||
* initializing
|
||||
*/
|
||||
int node;
|
||||
|
||||
node = fdt_path_offset(gd->fdt_blob, "/nand-controller");
|
||||
if (!fdtdec_get_is_enabled(gd->fdt_blob, node)) {
|
||||
printf("QPIC: disabled, skipping initialization\n");
|
||||
} else {
|
||||
qpic_nand_init(NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_QCA_SPI
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue